pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.time
Enum IHasDurationComparator.Mode

java.lang.Object
  extended by java.lang.Enum<IHasDurationComparator.Mode>
      extended by org.torweg.pulse.util.time.IHasDurationComparator.Mode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IHasDurationComparator.Mode>
Enclosing class:
IHasDurationComparator

public static enum IHasDurationComparator.Mode
extends java.lang.Enum<IHasDurationComparator.Mode>

The values for the mode of the IHasDurationComparator.

The mode defines whether to use the start milliseconds or the end milliseconds or the length of the Duration of the given IHasDuration for comparison.

Version:
$Revision: 1933 $
Author:
Daniel Dietz

Enum Constant Summary
END
          Compare by end milliseconds.
LENGTH
          Compare by length.
START
          Compare by start milliseconds.
 
Method Summary
static IHasDurationComparator.Mode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IHasDurationComparator.Mode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

START

public static final IHasDurationComparator.Mode START
Compare by start milliseconds.


END

public static final IHasDurationComparator.Mode END
Compare by end milliseconds.


LENGTH

public static final IHasDurationComparator.Mode LENGTH
Compare by length.

Method Detail

values

public static final IHasDurationComparator.Mode[] 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(IHasDurationComparator.Mode c : IHasDurationComparator.Mode.values())
        System.out.println(c);

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

valueOf

public static IHasDurationComparator.Mode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name