org.infinispan.schematic.document
Class Timestamp
java.lang.Object
org.infinispan.schematic.document.Timestamp
@Immutable
@SerializeWith(value=Timestamp.Externalizer.class)
public final class Timestamp
- extends Object
A timestamp value for use within a BSON object. Note that using Date is
recommended for most applications and use cases, as they are more generally suited for representing instants in time.
- Since:
- 5.1
- Author:
- Randall Hauch (C) 2011 Red Hat Inc.
Timestamp
public Timestamp()
Timestamp
public Timestamp(Date date)
Timestamp
public Timestamp(int timeInSeconds,
int inc)
getTime
public int getTime()
getInc
public int getInc()
getAsDate
public Date getAsDate()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.