Package ch.njol.yggdrasil
@NonNullByDefault({PARAMETER,RETURN_TYPE,FIELD})
package ch.njol.yggdrasil
-
InterfaceDescriptionMarks a class as serialisable by Yggdrasil.A class that has transient fields or more generally wants to exactly define which fields to write to/read from stream should implement this interface.Provides a method to resolve missing enum constants.A class that has had fields added, changed, or removed from it should implement this interface to handle the now invalid/missing fields that may still be read from stream.
-
ClassDescriptionHolds a field's name and value, and throws
StreamCorruptedException
s if primitives or objects are used incorrectly.PseudoEnum<T extends PseudoEnum<T>>A class that acts as a "pseudo-enum", i.e.Yggdrasil is a simple data format to store object graphs.Utility to be able to save and load classes with Yggdrasil that the user has no control of, e.g. -
ExceptionDescriptionThrown if the object(s) that should be saved/loaded with Yggdrasil do not comply with its requirements, or if Yggdrasil is used incorrectly.
-
Annotation InterfaceDescriptionCan be used to set a class's or field's id used by Yggdrasil.