org.bridj
Class SizeT

java.lang.Object
  extended by java.lang.Number
      extended by org.bridj.SizeT
All Implemented Interfaces:
Serializable

public final class SizeT
extends Number

Wraps a value which size is the same as the 'size_t' C type (32 bits on a 32 bits platform, 64 bits on a 64 bits platform)

Author:
Olivier
See Also:
Serialized Form

Field Summary
static int SIZE
           
protected  long value
           
 
Constructor Summary
SizeT(long value)
           
 
Method Summary
 double doubleValue()
           
 boolean equals(Object o)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
static int safeIntCast(long value)
           
 String toString()
           
static SizeT valueOf(long value)
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SIZE

public static final int SIZE

value

protected final long value
Constructor Detail

SizeT

public SizeT(long value)
Method Detail

valueOf

public static SizeT valueOf(long value)

safeIntCast

public static int safeIntCast(long value)

intValue

public int intValue()
Specified by:
intValue in class Number

longValue

public long longValue()
Specified by:
longValue in class Number

floatValue

public float floatValue()
Specified by:
floatValue in class Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Number

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012. All Rights Reserved.