org.bridj
Class CLong

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

public final class CLong
extends Number

Wraps a value which size is the same as the 'long' C type (32 bits on a 32 bits platform, 64 bits on a 64 bits platform with GCC and still 32 bits with MSVC++ on 64 bits platforms)

Author:
Olivier
See Also:
Serialized Form

Field Summary
static int SIZE
           
protected  long value
           
 
Constructor Summary
CLong(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 CLong 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

CLong

public CLong(long value)
Method Detail

valueOf

public static CLong 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.