things.data
Enum Receipt.Type

java.lang.Object
  extended by java.lang.Enum<Receipt.Type>
      extended by things.data.Receipt.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Receipt.Type>
Enclosing class:
Receipt

public static enum Receipt.Type
extends java.lang.Enum<Receipt.Type>


Enum Constant Summary
ACCEPTANCE
           
COLLECTION
           
COMPLETION
           
DELIVERY
           
ERRORED
           
ETERNAL_HAPPINESS
           
IRRELEVENT
           
NOT_VALID
           
PREPARATION
           
REJECTED
           
UNDERWAY
           
UNSPECIFIED
           
UNWANTED
           
 
Method Summary
 boolean isCompleteAndOk()
          Returns true the RESULT is both complete and OK, as opposed to BAD and/or not complete.
 boolean isOk()
          Returns true the RESULT is OK, as opposed to BAD.
 boolean isTerminal()
          Returns true the STATE is TERMINAL, as opposed to PENDING.
static Receipt.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Receipt.Type[] 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

NOT_VALID

public static final Receipt.Type NOT_VALID

UNSPECIFIED

public static final Receipt.Type UNSPECIFIED

PREPARATION

public static final Receipt.Type PREPARATION

COLLECTION

public static final Receipt.Type COLLECTION

UNWANTED

public static final Receipt.Type UNWANTED

DELIVERY

public static final Receipt.Type DELIVERY

ACCEPTANCE

public static final Receipt.Type ACCEPTANCE

UNDERWAY

public static final Receipt.Type UNDERWAY

COMPLETION

public static final Receipt.Type COMPLETION

REJECTED

public static final Receipt.Type REJECTED

ERRORED

public static final Receipt.Type ERRORED

IRRELEVENT

public static final Receipt.Type IRRELEVENT

ETERNAL_HAPPINESS

public static final Receipt.Type ETERNAL_HAPPINESS
Method Detail

values

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

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

valueOf

public static Receipt.Type 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
java.lang.NullPointerException - if the argument is null

isCompleteAndOk

public boolean isCompleteAndOk()
Returns true the RESULT is both complete and OK, as opposed to BAD and/or not complete.

Returns:
true if it is, otherwise false.

isOk

public boolean isOk()
Returns true the RESULT is OK, as opposed to BAD.

Returns:
true if it is RESULT=OK, else false.

isTerminal

public boolean isTerminal()
Returns true the STATE is TERMINAL, as opposed to PENDING.

Returns:
true if it is STATE=TERMINAL, else false.


Things.