Class RangeSetOps

java.lang.Object
org.aksw.commons.collection.rangeset.RangeSetOps

public class RangeSetOps extends Object
Operators that return actual RangeSet instances. RangeSetUtils is only for Set views.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <I extends Comparable<I>, O extends Comparable<O>>
    com.google.common.collect.RangeSet<O>
    convert(com.google.common.collect.RangeSet<I> rangeSet, com.google.common.base.Converter<I,O> endpointConverter)
     
    static com.google.common.collect.RangeSet<Long>
    shiftLong(com.google.common.collect.RangeSet<Long> rangeSet, long shiftValue)
    Create a view of a shifted range set of longs where each endpoint has a constant (possibly negative) value added to it
    static <T extends Comparable<T>>
    RangeSetUnion<T>
    union(com.google.common.collect.RangeSet<T> first, com.google.common.collect.RangeSet<T> second)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RangeSetOps

      public RangeSetOps()
  • Method Details

    • union

      public static <T extends Comparable<T>> RangeSetUnion<T> union(com.google.common.collect.RangeSet<T> first, com.google.common.collect.RangeSet<T> second)
    • convert

      public static <I extends Comparable<I>, O extends Comparable<O>> com.google.common.collect.RangeSet<O> convert(com.google.common.collect.RangeSet<I> rangeSet, com.google.common.base.Converter<I,O> endpointConverter)
    • shiftLong

      public static com.google.common.collect.RangeSet<Long> shiftLong(com.google.common.collect.RangeSet<Long> rangeSet, long shiftValue)
      Create a view of a shifted range set of longs where each endpoint has a constant (possibly negative) value added to it