Class RangeExtent

java.lang.Object
net.hydromatic.morel.type.RangeExtent

public class RangeExtent extends Object
A type and a range set.
  • Field Details

    • rangeSet

      public final com.google.common.collect.RangeSet rangeSet
    • type

      public final Type type
    • iterable

      private final Iterable iterable
    • BOOLEANS

      private static final List<Boolean> BOOLEANS
  • Constructor Details

    • RangeExtent

      public RangeExtent(com.google.common.collect.RangeSet rangeSet, Type type)
      Creates a RangeExtent.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toIterable

      public Iterable toIterable()
      Returns the collection of values in the range.
    • toIterable

      private Iterable toIterable(Type type, com.google.common.collect.RangeSet<?> rangeSet)
      Returns the collection of values in the range.
    • toIterable

      private Iterable toIterable(Type type, com.google.common.collect.Range range)
      Returns the collection of values in the range.
    • discreteDomain

      private com.google.common.collect.DiscreteDomain<? extends Comparable> discreteDomain(Type type)
    • concat

      private static <E> Iterable<? extends E> concat(List<? extends Iterable<? extends E>> iterableList)
      Calls Iterables.concat(Iterable), optimizing for the case with 0 or 1 entries.