org.jplot2d.axtick
Class DateInterval
- java.lang.Object
-
- org.jplot2d.axtick.DateInterval
-
public final class DateInterval extends java.lang.ObjectThis class represent a date in unit and value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classDateInterval.Unit
-
Constructor Summary
Constructors Constructor and Description DateInterval(DateInterval.Unit unit, int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static DateIntervalcreateWithMicros(long interval)static DateIntervalcreateWithMillis(long interval)booleanequals(java.lang.Object obj)longgetTimeInMicros()longgetTimeInMillis()DateInterval.UnitgetUnit()intgetValue()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DateInterval
public DateInterval(DateInterval.Unit unit, int value)
-
-
Method Detail
-
createWithMillis
public static DateInterval createWithMillis(long interval)
-
createWithMicros
public static DateInterval createWithMicros(long interval)
-
getUnit
public DateInterval.Unit getUnit()
- Returns:
- the coefficient
-
getValue
public int getValue()
- Returns:
- the exponent
-
getTimeInMillis
public long getTimeInMillis()
-
getTimeInMicros
public long getTimeInMicros()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG