org.ojalgo.type
Enum TimeUnit

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

public enum TimeUnit
extends Enum<TimeUnit>


Enum Constant Summary
CENTURY
           
DAY
           
DECADE
           
HOUR
           
MILLENIUM
           
MILLIS
           
MINUTE
           
MONTH
           
QUARTER
           
SECOND
           
WEEK
           
YEAR
           
 
Method Summary
 long count(Calendar aToCalendar)
           
 long count(Calendar aFromCalendar, Calendar aToCalendar)
           
 long count(Date aToDate)
           
 long count(Date aFromDate, Date aToDate)
           
 Calendar round(Calendar aCalendar)
           
 Date round(Date aDate)
           
 long size()
           
 void strip(Calendar aCalendar)
           
static TimeUnit valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TimeUnit[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MILLIS

public static final TimeUnit MILLIS

SECOND

public static final TimeUnit SECOND

MINUTE

public static final TimeUnit MINUTE

HOUR

public static final TimeUnit HOUR

DAY

public static final TimeUnit DAY

WEEK

public static final TimeUnit WEEK

MONTH

public static final TimeUnit MONTH

QUARTER

public static final TimeUnit QUARTER

YEAR

public static final TimeUnit YEAR

DECADE

public static final TimeUnit DECADE

CENTURY

public static final TimeUnit CENTURY

MILLENIUM

public static final TimeUnit MILLENIUM
Method Detail

values

public static final TimeUnit[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TimeUnit c : TimeUnit.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static TimeUnit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

count

public long count(Calendar aToCalendar)

count

public long count(Calendar aFromCalendar,
                  Calendar aToCalendar)

count

public long count(Date aToDate)

count

public long count(Date aFromDate,
                  Date aToDate)

round

public Calendar round(Calendar aCalendar)

round

public Date round(Date aDate)

size

public long size()

strip

public void strip(Calendar aCalendar)