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
StreamCorruptedExceptions
if primitives or objects are used incorrectly.-
Method Summary
Modifier and TypeMethodDescriptionbooleangetID()@Nullable Object<T> T<T> TgetPrimitive(Class<T> expectedType) @Nullable Class<?> getType()inthashCode()booleanvoidvoidvoidsetPrimitive(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
-