HopperSerializable

public interface HopperSerializable

This class is the preferred serialization class for elements that use HopperConfig It just adds quick methods to serialize and deserialize objects, for a cleaner look when coding It'd be the same as implementing ConfigurationSerializable and calling HopperConfig manually. This object MUST have a constructor that accepts a single SerializationMap.

Inheritors

Types

Link copied to clipboard
public class SerializationMap
This class will automatically call the serialize() method in those classes that have it It also has helper methods to retrieve info more easily

Functions

Link copied to clipboard
public List<T> deserializeList<T>(Object obj, Class<T> clazz)
Link copied to clipboard
public T deserializeObject<T>(Object obj, Class<T> clazz)
Link copied to clipboard
Link copied to clipboard
public List<? extends Object> serializeList<T>(List<T> list)
public List<? extends Object> serializeList<T>(List<T> list, boolean shouldAddType)
Link copied to clipboard
public Object serializeObject<T>(T object)
public Object serializeObject<T>(T object, boolean shouldAddType)