Package ch.njol.yggdrasil
Class Fields.FieldContext
java.lang.Object
ch.njol.yggdrasil.Fields.FieldContext
- Enclosing class:
Fields
Holds a field's name and value, and throws
StreamCorruptedException
s
if primitives or objects are used incorrectly.-
Method Summary
Modifier and TypeMethodDescriptionboolean
getID()
@Nullable Object
<T> T
<T> T
getPrimitive
(Class<T> expectedType) @Nullable Class
<?> getType()
int
hashCode()
boolean
void
void
void
setPrimitive
(Object value)
-
Method Details
-
getID
-
isPrimitive
public boolean isPrimitive() -
getType
-
getObject
- Throws:
StreamCorruptedException
-
getObject
- Throws:
StreamCorruptedException
-
getPrimitive
- Throws:
StreamCorruptedException
-
getPrimitive
- Throws:
StreamCorruptedException
-
setObject
-
setPrimitive
-
setField
public void setField(Object object, Field field, Yggdrasil yggdrasil) throws StreamCorruptedException - Throws:
StreamCorruptedException
-
hashCode
public int hashCode() -
equals
-