Class RangeSetSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<com.google.common.collect.RangeSet>
org.aksw.commons.kryo.guava.RangeSetSerializer
public class RangeSetSerializer
extends com.esotericsoftware.kryo.Serializer<com.google.common.collect.RangeSet>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<T>>
com.google.common.collect.RangeSet<T> com.google.common.collect.RangeSetread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<com.google.common.collect.RangeSet> type) static <T extends Comparable<T>>
Set<com.google.common.collect.Range<T>> toSet(com.google.common.collect.RangeSet<T> rangeSet) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.google.common.collect.RangeSet object) Methods inherited from class com.esotericsoftware.kryo.Serializer
copy, getAcceptsNull, isImmutable, setAcceptsNull, setGenerics, setImmutable
-
Constructor Details
-
RangeSetSerializer
public RangeSetSerializer()
-
-
Method Details
-
toSet
public static <T extends Comparable<T>> Set<com.google.common.collect.Range<T>> toSet(com.google.common.collect.RangeSet<T> rangeSet) -
fromSet
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> fromSet(Set<com.google.common.collect.Range<T>> set) -
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.google.common.collect.RangeSet object) - Specified by:
writein classcom.esotericsoftware.kryo.Serializer<com.google.common.collect.RangeSet>
-
read
public com.google.common.collect.RangeSet read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<com.google.common.collect.RangeSet> type) - Specified by:
readin classcom.esotericsoftware.kryo.Serializer<com.google.common.collect.RangeSet>
-