com.omnipilot.lassopro
Class IntValue

java.lang.Object
  extended byjava.lang.Number
      extended bycom.omnipilot.lassopro.IntValue
All Implemented Interfaces:
java.io.Serializable

public class IntValue
extends java.lang.Number

Wrapper for a primitive type int or long. Used for returning values from LassoCall methods which in LCAPI would require passing parameters of type pointer: int*, long* and DescType*.

	IntValue outLen = new IntValue();
	if ( lasso.arrayGetSize( myArray, outLen ) == ERR_NOERR ) {
	    lasso.outputTagData( "Array size: " + outLen.toString() );
	}
 	

See Also:
Serialized Form

Constructor Summary
IntValue()
           
IntValue(int value)
           
IntValue(long value)
           
 
Method Summary
 boolean booleanValue()
          Returns the value of this object as boolean.
 byte byteValue()
          Returns the value of this object as a byte.
 double doubleValue()
          Sets the value of this object to a specified double.
 float floatValue()
          Sets the value of this object to a specified float.
static java.lang.String IntToFourCharString(int v)
          Casts the value of the specified int to a four-character String.
 int intValue()
          Returns the value of this object as an int.
 long longValue()
          Returns the value of this object as a long.
 void setByte(byte value)
          Sets the value of this object to a specified byte.
 void setInt(int value)
          Sets the value of this object to a specified int.
 void setLong(long value)
          Sets the value of this object to a specified long.
 void setShort(short value)
          Sets the value of this object to a specified short.
 short shortValue()
          Returns the value of this object as a short.
 java.lang.String toDescType()
          Casts the value of this object to a four-character String.
 java.lang.String toString()
          Converts the value of this object to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntValue

public IntValue()

IntValue

public IntValue(int value)

IntValue

public IntValue(long value)
Method Detail

toString

public java.lang.String toString()
Converts the value of this object to a String.


setByte

public void setByte(byte value)
Sets the value of this object to a specified byte.


setShort

public void setShort(short value)
Sets the value of this object to a specified short.


setInt

public void setInt(int value)
Sets the value of this object to a specified int.


setLong

public void setLong(long value)
Sets the value of this object to a specified long.


booleanValue

public boolean booleanValue()
Returns the value of this object as boolean.


byteValue

public byte byteValue()
Returns the value of this object as a byte.


shortValue

public short shortValue()
Returns the value of this object as a short.


intValue

public int intValue()
Returns the value of this object as an int.


longValue

public long longValue()
Returns the value of this object as a long.


floatValue

public float floatValue()
Sets the value of this object to a specified float.


doubleValue

public double doubleValue()
Sets the value of this object to a specified double.


toDescType

public java.lang.String toDescType()
Casts the value of this object to a four-character String.


IntToFourCharString

public static java.lang.String IntToFourCharString(int v)
Casts the value of the specified int to a four-character String.