Package com.braintreegateway
Enum TransactionLineItem.Kind
- java.lang.Object
-
- java.lang.Enum<TransactionLineItem.Kind>
-
- com.braintreegateway.TransactionLineItem.Kind
-
- All Implemented Interfaces:
Serializable,Comparable<TransactionLineItem.Kind>
- Enclosing class:
- TransactionLineItem
public static enum TransactionLineItem.Kind extends Enum<TransactionLineItem.Kind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREDITDEBITUNRECOGNIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static TransactionLineItem.KindvalueOf(String name)Returns the enum constant of this type with the specified name.static TransactionLineItem.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEBIT
public static final TransactionLineItem.Kind DEBIT
-
CREDIT
public static final TransactionLineItem.Kind CREDIT
-
UNRECOGNIZED
public static final TransactionLineItem.Kind UNRECOGNIZED
-
-
Field Detail
-
name
private final String name
-
-
Constructor Detail
-
Kind
private Kind(String name)
-
-
Method Detail
-
values
public static TransactionLineItem.Kind[] 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 (TransactionLineItem.Kind c : TransactionLineItem.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionLineItem.Kind 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 nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<TransactionLineItem.Kind>
-
-