org.ojalgo.type
Class CalendarDateDuration

java.lang.Object
  extended by java.lang.Number
      extended by org.ojalgo.type.CalendarDateDuration
All Implemented Interfaces:
Serializable, Comparable<CalendarDateDuration>

public final class CalendarDateDuration
extends Number
implements Comparable<CalendarDateDuration>

See Also:
Serialized Form

Field Summary
 double measure
           
 CalendarDateUnit unit
           
 
Constructor Summary
CalendarDateDuration(double aMeasure, CalendarDateUnit aUnit)
           
 
Method Summary
 int compareTo(CalendarDateDuration aReference)
           
 CalendarDateDuration convertTo(CalendarDateUnit aDestinationUnit)
           
 double doubleValue()
           
 boolean equals(Object obj)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
 long toDurationInMillis()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

measure

public final double measure

unit

public final CalendarDateUnit unit
Constructor Detail

CalendarDateDuration

public CalendarDateDuration(double aMeasure,
                            CalendarDateUnit aUnit)
Method Detail

compareTo

public int compareTo(CalendarDateDuration aReference)
Specified by:
compareTo in interface Comparable<CalendarDateDuration>

convertTo

public CalendarDateDuration convertTo(CalendarDateUnit aDestinationUnit)

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Number

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

floatValue

public float floatValue()
Specified by:
floatValue in class Number

hashCode

public int hashCode()
Overrides:
hashCode in class Object

intValue

public int intValue()
Specified by:
intValue in class Number

longValue

public long longValue()
Specified by:
longValue in class Number

toDurationInMillis

public long toDurationInMillis()