public static class CompactArray.TypeDesc
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CompactArray.TypeDesc.Type |
Constructor and Description |
---|
TypeDesc(CompactArray.TypeDesc.Type type) |
TypeDesc(java.lang.Object value,
CompactArray.TypeDesc.Type type) |
Modifier and Type | Method and Description |
---|---|
CompactArray.TypeDesc.Type |
getType() |
<T> T |
getValue()
Get the value of the compact array.
|
public TypeDesc(java.lang.Object value, CompactArray.TypeDesc.Type type) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public TypeDesc(CompactArray.TypeDesc.Type type) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public <T> T getValue()
The value is null if its not of type CompactArray.TypeDesc.Type.ARRAY
or CompactArray.TypeDesc.Type.STRUCTURE
.
T
- either CompactArray.TypeDesc.Type.ARRAY
or CompactArray.TypeDesc.Type.STRUCTURE
public CompactArray.TypeDesc.Type getType()