org.geebis.books.model.terms
Enum TermsStatus

java.lang.Object
  extended by java.lang.Enum<TermsStatus>
      extended by org.geebis.books.model.terms.TermsStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TermsStatus>

public enum TermsStatus
extends java.lang.Enum<TermsStatus>

TermsStatus represents the various statuses of a date with respect to a terms.


Enum Constant Summary
DISCOUNT
          DISCOUNT means that a discount may be taken
DUE
          DUE means that the invoice is due
FUTURE
          FUTURE means that a discount may not be taken, but the invoice is not due until later
OVERDUE
          OVERDUE means that the invoice is overdue
 
Method Summary
static TermsStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TermsStatus[] 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

DISCOUNT

public static final TermsStatus DISCOUNT
DISCOUNT means that a discount may be taken


FUTURE

public static final TermsStatus FUTURE
FUTURE means that a discount may not be taken, but the invoice is not due until later


DUE

public static final TermsStatus DUE
DUE means that the invoice is due


OVERDUE

public static final TermsStatus OVERDUE
OVERDUE means that the invoice is overdue

Method Detail

values

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

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

valueOf

public static TermsStatus 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