sounds
Class Sample

java.lang.Object
  extended by sounds.Sample

public class Sample
extends java.lang.Object

LICENSE: This is open-source software released under the terms of the
GPL (http://www.gnu.org/licenses/gpl.html).

This class represents a sample that contains an integer value.


Field Summary
static int MAX_VALUE
          The maximum value of a sample.
static int MIN_VALUE
          The minimum value of a sample.
 
Constructor Summary
Sample()
          Creates a Sample with a value of 0.
Sample(int v)
          Creates a Sample from given integer value.
 
Method Summary
 int getValue()
          Returns the value of the sample.
 void setValue(int v)
          Resets the sample's value.
 java.lang.String toString()
          Returns the string representation of the of the sample.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_VALUE

public static int MAX_VALUE
The maximum value of a sample.


MIN_VALUE

public static int MIN_VALUE
The minimum value of a sample.

Constructor Detail

Sample

public Sample()
Creates a Sample with a value of 0.


Sample

public Sample(int v)
Creates a Sample from given integer value.

Parameters:
v - the integer value
Method Detail

getValue

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

Returns:
the sample's value

setValue

public void setValue(int v)
Resets the sample's value.

Parameters:
v - the new value

toString

public java.lang.String toString()
Returns the string representation of the of the sample.

Overrides:
toString in class java.lang.Object
Returns:
a string containing the value