nl.lxtreme.ols.api.data
Class Sample

java.lang.Object
  extended by nl.lxtreme.ols.api.data.Sample
All Implemented Interfaces:
Cloneable

Deprecated.

@Deprecated
public final class Sample
extends Object
implements Cloneable

Denotes a sample of data, which has a value and a timestamp.


Constructor Summary
Sample(long aTimestamp, int aValue)
          Deprecated. Creates a new 32-bit Sample instance.
Sample(long aTimestamp, int aValue, int aWidth)
          Deprecated. Creates a new 32-bit Sample instance.
 
Method Summary
 Sample clone()
          Deprecated. Creates a copy of this sample.
 boolean equals(Object aObject)
          Deprecated.  
 long getTimestamp()
          Deprecated. Returns the timestamp.
 int getValue()
          Deprecated. Returns the sample value.
 int getWidth()
          Deprecated. Returns the width of this sample.
 int hashCode()
          Deprecated.  
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sample

public Sample(long aTimestamp,
              int aValue)
Deprecated. 
Creates a new 32-bit Sample instance.

Parameters:
aTimestamp - the timestamp of this sample;
aValue - the sample value.

Sample

public Sample(long aTimestamp,
              int aValue,
              int aWidth)
Deprecated. 
Creates a new 32-bit Sample instance.

Parameters:
aTimestamp - the timestamp of this sample;
aValue - the sample value;
aWidth - the width of this sample, in bytes.
Method Detail

clone

public Sample clone()
             throws CloneNotSupportedException
Deprecated. 
Creates a copy of this sample.

Overrides:
clone in class Object
Returns:
a new copy of this sample, never null.
Throws:
CloneNotSupportedException
See Also:
Object.clone()

equals

public boolean equals(Object aObject)
Deprecated. 
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getTimestamp

public long getTimestamp()
Deprecated. 
Returns the timestamp.

Returns:
the timestamp, as long value.

getValue

public int getValue()
Deprecated. 
Returns the sample value.

Returns:
the value, as 32-bit integer.

getWidth

public int getWidth()
Deprecated. 
Returns the width of this sample.

Returns:
the width, in bytes.

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.