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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends Comparable<T>>
    com.google.common.collect.RangeSet<T>
    fromSet(Set<com.google.common.collect.Range<T>> set)
     
    com.google.common.collect.RangeSet
    read(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)
     
    void
    write(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      write in class com.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:
      read in class com.esotericsoftware.kryo.Serializer<com.google.common.collect.RangeSet>