Enum Class FillDataType
- All Implemented Interfaces:
Serializable
,Comparable<FillDataType>
,Constable
The fill unit for a fill of values in memory.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FillDataType
Returns the enum constant of this class with the specified name.static FillDataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.void
writeTo
(int value, ByteBuffer buffer) Write a value to the buffer in an appropriate way for this fill unit.
-
Enum Constant Details
-
WORD
Fill by words (4 bytes). -
HALF_WORD
Fill by half words (2 bytes). -
BYTE
Fill by single bytes.
-
-
Field Details
-
size
public final int sizeThe encoding of the fill unit size.
-
-
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
-
writeTo
Write a value to the buffer in an appropriate way for this fill unit.- Parameters:
value
- The value to write.buffer
- The buffer to write to.
-