Package com.xero.models.assets
Enum BookDepreciationSetting.DepreciationCalculationMethodEnum
- java.lang.Object
-
- java.lang.Enum<BookDepreciationSetting.DepreciationCalculationMethodEnum>
-
- com.xero.models.assets.BookDepreciationSetting.DepreciationCalculationMethodEnum
-
- All Implemented Interfaces:
Serializable,Comparable<BookDepreciationSetting.DepreciationCalculationMethodEnum>
- Enclosing class:
- BookDepreciationSetting
public static enum BookDepreciationSetting.DepreciationCalculationMethodEnum extends Enum<BookDepreciationSetting.DepreciationCalculationMethodEnum>
See Depreciation Calculation Methods
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BookDepreciationSetting.DepreciationCalculationMethodEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic BookDepreciationSetting.DepreciationCalculationMethodEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static BookDepreciationSetting.DepreciationCalculationMethodEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RATE
public static final BookDepreciationSetting.DepreciationCalculationMethodEnum RATE
RATE
-
LIFE
public static final BookDepreciationSetting.DepreciationCalculationMethodEnum LIFE
LIFE
-
NONE
public static final BookDepreciationSetting.DepreciationCalculationMethodEnum NONE
NONE
-
-
Method Detail
-
values
public static BookDepreciationSetting.DepreciationCalculationMethodEnum[] 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 (BookDepreciationSetting.DepreciationCalculationMethodEnum c : BookDepreciationSetting.DepreciationCalculationMethodEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BookDepreciationSetting.DepreciationCalculationMethodEnum 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
-
getValue
public String getValue()
getValue- Returns:
- String value
-
toString
public String toString()
toString- Overrides:
toStringin classEnum<BookDepreciationSetting.DepreciationCalculationMethodEnum>- Returns:
- String value
-
fromValue
public static BookDepreciationSetting.DepreciationCalculationMethodEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-