org.bridj
Class SizeT
java.lang.Object
java.lang.Number
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
|
Constructor Summary |
SizeT(long value)
|
SIZE
public static final int SIZE
ZERO
public static final SizeT ZERO
ONE
public static final SizeT ONE
SizeT
public SizeT(long value)
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-2013. All Rights Reserved.