com.jniwrapper
Class Int

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.DelegatingParameter
          extended by com.jniwrapper.Int
All Implemented Interfaces:
IntegerParameter
Direct Known Subclasses:
IntBool

public class Int
extends DelegatingParameter

C-like int value.


Field Summary
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
Int()
          Constructs a new int parameter.
Int(IntegerParameter t)
          Constructs a new int parameter with the same value as in the passed object.
Int(long val)
          Constructs a new int 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

Int

public Int()
Constructs a new int parameter.


Int

public Int(long val)
Constructs a new int parameter.

Parameters:
val - initial value.

Int

public Int(IntegerParameter t)
Constructs a new int parameter with the same value as in the passed object.

Parameters:
t - a parameter to take the 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()