T - the type of input objects.public interface Serializer<T>
byte[] serialize(T item)
Any instance of T must be accepted and have a non null return value:
for any o, o instanceof T implies serialize(o) != null.
The output must be consistent, an identical output should be returned if called twice on the equal
objects: for any o1 and o2, o1.equals(o2) implies
Arrays.equals(serialize(o1), serialize(o2)).
item - the object to serialize.Copyright © 2014. All rights reserved.