Package com.xero.models.assets
Enum BookDepreciationSetting.DepreciationMethodEnum
java.lang.Object
java.lang.Enum<BookDepreciationSetting.DepreciationMethodEnum>
com.xero.models.assets.BookDepreciationSetting.DepreciationMethodEnum
- All Implemented Interfaces:
Serializable,Comparable<BookDepreciationSetting.DepreciationMethodEnum>,java.lang.constant.Constable
- Enclosing class:
BookDepreciationSetting
public static enum BookDepreciationSetting.DepreciationMethodEnum
extends Enum<BookDepreciationSetting.DepreciationMethodEnum>
The method of depreciation applied to this asset. See Depreciation Methods
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDIMINISHINGVALUE100DIMINISHINGVALUE150DIMINISHINGVALUE200FULLDEPRECIATIONNODEPRECIATIONSTRAIGHTLINE -
Method Summary
-
Enum Constant Details
-
NODEPRECIATION
NODEPRECIATION -
STRAIGHTLINE
STRAIGHTLINE -
DIMINISHINGVALUE100
DIMINISHINGVALUE100 -
DIMINISHINGVALUE150
DIMINISHINGVALUE150 -
DIMINISHINGVALUE200
DIMINISHINGVALUE200 -
FULLDEPRECIATION
FULLDEPRECIATION
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
toString
toString- Overrides:
toStringin classEnum<BookDepreciationSetting.DepreciationMethodEnum>- Returns:
- String value
-
fromValue
fromValue- Parameters:
value- String
-