ch.elca.el4j.util.observer.impl
Enum LiveValue.Currency

java.lang.Object
  extended by java.lang.Enum<LiveValue.Currency>
      extended by ch.elca.el4j.util.observer.impl.LiveValue.Currency
All Implemented Interfaces:
Serializable, Comparable<LiveValue.Currency>
Enclosing class:
LiveValue<T>

protected static enum LiveValue.Currency
extends Enum<LiveValue.Currency>

a cached value's degree of currency.


Enum Constant Summary
current
          the cached value is up to date.
dirty
          the cached value is outdated.
updating
          the cached value is currently beeing updated.
 
Method Summary
static LiveValue.Currency valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LiveValue.Currency[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

dirty

public static final LiveValue.Currency dirty
the cached value is outdated.


updating

public static final LiveValue.Currency updating
the cached value is currently beeing updated.


current

public static final LiveValue.Currency current
the cached value is up to date.

Method Detail

values

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

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

valueOf

public static LiveValue.Currency 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
NullPointerException - if the argument is null


Copyright © 2005-2011 ELCA. All Rights Reserved.