public class ComparableSetBinding extends ComparableBinding
ComparableBinding,
ComparableSet| Modifier and Type | Field and Description |
|---|---|
static ComparableSetBinding |
BINDING |
| Constructor and Description |
|---|
ComparableSetBinding()
To support sets of EntityStore custom property types, there should be an ability to
create a separate ComparableSetBinding instance with overriden
getType(Class)
and getBinding(int) methods. |
| Modifier and Type | Method and Description |
|---|---|
static ArrayByteIterable |
comparableSetToEntry(@NotNull ComparableSet object)
Serializes
ComparableSet value to the ArrayByteIterable entry. |
static ComparableSet |
entryToComparableSet(@NotNull ByteIterable entry)
De-serializes ByteIterable entry to a
ComparableSet value. |
protected ComparableBinding |
getBinding(int valueTypeId) |
protected ComparableValueType |
getType(@NotNull java.lang.Class<? extends java.lang.Comparable> itemClass) |
ComparableSet |
readObject(@NotNull java.io.ByteArrayInputStream stream) |
void |
writeObject(@NotNull LightOutputStream output,
@NotNull java.lang.Comparable object) |
entryToObject, objectToEntrypublic static final ComparableSetBinding BINDING
public ComparableSetBinding()
getType(Class)
and getBinding(int) methods.public ComparableSet readObject(@NotNull @NotNull java.io.ByteArrayInputStream stream)
readObject in class ComparableBindingpublic void writeObject(@NotNull
@NotNull LightOutputStream output,
@NotNull
@NotNull java.lang.Comparable object)
writeObject in class ComparableBindingprotected ComparableValueType getType(@NotNull @NotNull java.lang.Class<? extends java.lang.Comparable> itemClass)
protected ComparableBinding getBinding(int valueTypeId)
public static ComparableSet entryToComparableSet(@NotNull @NotNull ByteIterable entry)
ComparableSet value.entry - ByteIterable instancepublic static ArrayByteIterable comparableSetToEntry(@NotNull @NotNull ComparableSet object)
ComparableSet value to the ArrayByteIterable entry.object - value to serialize