T - The type for the element to serialize and comparepublic abstract class AbstractElementSerializer<T> extends Object implements ElementSerializer<T>
| Constructor and Description |
|---|
AbstractElementSerializer(Comparator<T> comparator)
Create a new instance of Serializer
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T type1,
T type2)
Returns the comparison of two types.
|
Comparator<T> |
getComparator() |
Class<?> |
getType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserialize, deserialize, fromBytes, fromBytes, serializepublic AbstractElementSerializer(Comparator<T> comparator)
public int compare(T type1, T type2)
compare in interface ElementSerializer<T>type1 - The first type to comparetype2 - The second type to comparepublic Comparator<T> getComparator()
getComparator in interface ElementSerializer<T>public Class<?> getType()
getType in interface ElementSerializer<T>Copyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.