Package org.spongepowered.api.data
Enum Class DataTransactionResult.Type
- All Implemented Interfaces:
Serializable
,Comparable<DataTransactionResult.Type>
,Constable
- Enclosing class:
- DataTransactionResult
The type of transaction result.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn operation was cancelled by a third party (eg.TheValue
operation failed because an unexpected condition occurred.TheValue
operation failed for an expected reason (such as theValue
being incompatible with theDataHolder
.The item data operation succeeded.The actual result of the operation is undefined, this probably indicates that something went wrong with the operation that theValue
couldn't handle or didn't expect. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataTransactionResult.Type
Returns the enum constant of this class with the specified name.static DataTransactionResult.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
-
SUCCESS
The item data operation succeeded. -
FAILURE
TheValue
operation failed for an expected reason (such as theValue
being incompatible with theDataHolder
. The condition of theValue
is unchanged. -
ERROR
-
CANCELLED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-