com.jniwrapper
Class UShortInt

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.DelegatingParameter
          extended by com.jniwrapper.UShortInt
All Implemented Interfaces:
IntegerParameter

public class UShortInt
extends DelegatingParameter

C-like unsigned short value.


Field Summary
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
UShortInt()
          Constructs a new unsigned short parameter.
UShortInt(IntegerParameter t)
          Constructs a new unsigned short parameter.
UShortInt(long val)
          Constructs a new unsigned short parameter.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
          Compares this Parameter object to a given object.
 java.lang.String getDebugInfo()
          Return debug info for JNIWrapper parameter.
 long getValue()
          Returns an integer value converted to long
 int hashCode()
           
 void setValue(long val)
          Sets an integer value.
 java.lang.Long toLong()
           
 java.lang.String toString()
           
 
Methods inherited from class com.jniwrapper.DelegatingParameter
acceptIOPerformer, getDataBuffer, getDataBufferOffset, getLength, getValueObject, pop, push, read, setDataBuffer, setValueObject, write
 
Methods inherited from class com.jniwrapper.Parameter
asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UShortInt

public UShortInt()
Constructs a new unsigned short parameter.


UShortInt

public UShortInt(long val)
Constructs a new unsigned short parameter.

Parameters:
val - the initial value.

UShortInt

public UShortInt(IntegerParameter t)
Constructs a new unsigned short parameter.

Parameters:
t - a parameter to get initial value from.
Method Detail

clone

public java.lang.Object clone()

getValue

public long getValue()
Description copied from interface: IntegerParameter
Returns an integer value converted to long

Specified by:
getValue in interface IntegerParameter

setValue

public void setValue(long val)
Description copied from interface: IntegerParameter
Sets an integer value.

Specified by:
setValue in interface IntegerParameter

equals

public boolean equals(java.lang.Object obj)
Description copied from class: Parameter
Compares this Parameter object to a given object. Two Parameter objects are considered equal if their byte representations are equal and they are of the same type. Subclasses may override this method as appropriate.

Overrides:
equals in class Parameter
Parameters:
obj - a value to compare this object to.
Returns:
true if two objects are equal.

hashCode

public int hashCode()
Overrides:
hashCode in class Parameter

getDebugInfo

public java.lang.String getDebugInfo()
Description copied from class: Parameter
Return debug info for JNIWrapper parameter.

Overrides:
getDebugInfo in class DelegatingParameter
Returns:
debug info

toString

public java.lang.String toString()
Overrides:
toString in class DelegatingParameter

toLong

public java.lang.Long toLong()