org.hsqldb.types
Class IntervalSecondData
- java.lang.Object
-
- org.hsqldb.types.IntervalSecondData
-
public class IntervalSecondData extends java.lang.ObjectImplementation of data item for INTERVAL SECOND.- Since:
- 1.9.0
-
-
Field Summary
Fields Modifier and Type Field and Description static IntervalSecondDataoneDay
-
Constructor Summary
Constructors Constructor and Description IntervalSecondData(long seconds, int nanos)IntervalSecondData(long seconds, int nanos, IntervalType type)IntervalSecondData(long seconds, long nanos, IntervalType type, boolean normalise)normalise is a marker, values are always normalised
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompareTo(IntervalSecondData b)booleanequals(java.lang.Object other)intgetNanos()longgetSeconds()inthashCode()static IntervalSecondDatanewInterval(double value, int typeCode)static IntervalSecondDatanewIntervalDay(long days, IntervalType type)static IntervalSecondDatanewIntervalHour(long hours, IntervalType type)static IntervalSecondDatanewIntervalMinute(long minutes, IntervalType type)static IntervalSecondDatanewIntervalSeconds(long seconds, IntervalType type)java.lang.StringtoString()
-
-
-
Field Detail
-
oneDay
public static final IntervalSecondData oneDay
-
-
Constructor Detail
-
IntervalSecondData
public IntervalSecondData(long seconds, int nanos, IntervalType type)
-
IntervalSecondData
public IntervalSecondData(long seconds, int nanos)
-
IntervalSecondData
public IntervalSecondData(long seconds, long nanos, IntervalType type, boolean normalise)normalise is a marker, values are always normalised
-
-
Method Detail
-
newInterval
public static IntervalSecondData newInterval(double value, int typeCode)
-
newIntervalDay
public static IntervalSecondData newIntervalDay(long days, IntervalType type)
-
newIntervalHour
public static IntervalSecondData newIntervalHour(long hours, IntervalType type)
-
newIntervalMinute
public static IntervalSecondData newIntervalMinute(long minutes, IntervalType type)
-
newIntervalSeconds
public static IntervalSecondData newIntervalSeconds(long seconds, IntervalType type)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(IntervalSecondData b)
-
getSeconds
public long getSeconds()
-
getNanos
public int getNanos()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG