Class ImmutableRangeSet.ComplementRanges

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<Range<C>>, java.util.Collection<Range<C>>, java.util.List<Range<C>>, java.util.RandomAccess
    Enclosing class:
    ImmutableRangeSet<C extends java.lang.Comparable>

    private final class ImmutableRangeSet.ComplementRanges
    extends ImmutableList<Range<C>>
    • Field Detail

      • positiveBoundedBelow

        private final boolean positiveBoundedBelow
      • positiveBoundedAbove

        private final boolean positiveBoundedAbove
      • size

        private final int size
    • Constructor Detail

      • ComplementRanges

        ComplementRanges()
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Range<C extends java.lang.Comparable>>
        Specified by:
        size in interface java.util.List<Range<C extends java.lang.Comparable>>
        Specified by:
        size in class java.util.AbstractCollection<Range<C extends java.lang.Comparable>>
      • get

        public Range<C> get​(int index)
      • isPartialView

        boolean isPartialView()
        Description copied from class: ImmutableCollection
        Returns true if this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods. This is generally used to determine whether copyOf implementations should make an explicit copy to avoid memory leaks.
        Specified by:
        isPartialView in class ImmutableCollection<Range<C extends java.lang.Comparable>>