org.bridj
Class TimeT

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

public final class TimeT
extends Number

Wraps a value which size is the same as the 'time_t' C type (defined in time.h)

Author:
Olivier
See Also:
Serialized Form

Nested Class Summary
static class TimeT.timeval
           
static class TimeT.timeval_customizer
           
 
Field Summary
static int SIZE
           
protected  long value
           
 
Constructor Summary
TimeT(long value)
           
 
Method Summary
 double doubleValue()
           
 boolean equals(Object o)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
static int safeIntCast(long value)
           
 Date toDate()
           
 String toString()
           
static TimeT valueOf(Date value)
           
static TimeT 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

TimeT

public TimeT(long value)
Method Detail

toDate

public Date toDate()

valueOf

public static TimeT valueOf(long value)

valueOf

public static TimeT valueOf(Date value)

toString

public String toString()

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


Copyright © 2009-2012. All Rights Reserved.