| Package | Description | 
|---|---|
| com.google.common.collect | This package contains generic collection interfaces and implementations, and
 other utilities for working with collections. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <C extends Comparable<?>>  | Range. all()Returns a range that contains every value of type  C. | 
| static <C extends Comparable<?>>  | Range. atLeast(C endpoint)Returns a range that contains all values greater than or equal to
  endpoint. | 
| static <C extends Comparable<?>>  | Range. atMost(C endpoint)Returns a range that contains all values less than or equal to
  endpoint. | 
| Range<C> | Range. canonical(DiscreteDomain<C> domain)Returns the canonical form of this range in the given domain. | 
| static <C extends Comparable<?>>  | Range. closed(C lower,
            C upper)Returns a range that contains all values greater than or equal to
  lowerand less than or equal toupper. | 
| static <C extends Comparable<?>>  | Range. closedOpen(C lower,
                    C upper)Returns a range that contains all values greater than or equal to
  lowerand strictly less thanupper. | 
| static <C extends Comparable<?>>  | Range. downTo(C endpoint,
            BoundType boundType)Returns a range from the given endpoint, which may be either inclusive
 (closed) or exclusive (open), with no upper bound. | 
| static <C extends Comparable<?>>  | Range. encloseAll(Iterable<C> values)Returns the minimal range that
 contains all of the given values. | 
| static <C extends Comparable<?>>  | Range. greaterThan(C endpoint)Returns a range that contains all values strictly greater than  endpoint. | 
| Range<C> | Range. intersection(Range<C> connectedRange)Returns the maximal range enclosed by both this range and  connectedRange, if such a range exists. | 
| static <C extends Comparable<?>>  | Range. lessThan(C endpoint)Returns a range that contains all values strictly less than  endpoint. | 
| static <C extends Comparable<?>>  | Range. open(C lower,
        C upper)Returns a range that contains all values strictly greater than  lowerand strictly less thanupper. | 
| static <C extends Comparable<?>>  | Range. openClosed(C lower,
                    C upper)Returns a range that contains all values strictly greater than  lowerand less than or equal toupper. | 
| abstract Range<C> | ContiguousSet. range()Returns a range, closed on both ends, whose endpoints are the minimum and maximum values
 contained in this set. | 
| abstract Range<C> | ContiguousSet. range(BoundType lowerBoundType,
          BoundType upperBoundType)Returns the minimal range with the given boundary types for which all values in this set are
 contained within the range. | 
| static <C extends Comparable<?>>  | Range. range(C lower,
          BoundType lowerType,
          C upper,
          BoundType upperType)Returns a range that contains any value from  lowertoupper, where each endpoint may be either inclusive (closed) or exclusive
 (open). | 
| Range<C> | TreeRangeSet. rangeContaining(C value) | 
| Range<C> | ImmutableRangeSet. rangeContaining(C value) | 
| Range<C> | RangeSet. rangeContaining(C value)Returns the unique range from this range set that contains
  value, ornullif this range set does not containvalue. | 
| static <C extends Comparable<?>>  | Range. singleton(C value)Returns a range that contains only
 the given value. | 
| Range<C> | TreeRangeSet. span() | 
| Range<K> | TreeRangeMap. span() | 
| Range<C> | ImmutableRangeSet. span() | 
| Range<C> | RangeSet. span()Returns the minimal range which encloses all ranges
 in this range set. | 
| Range<K> | ImmutableRangeMap. span() | 
| Range<K> | RangeMap. span()Returns the minimal range enclosing the ranges
 in this  RangeMap. | 
| Range<C> | Range. span(Range<C> other)Returns the minimal range that encloses both this range and  other. | 
| static <C extends Comparable<?>>  | Range. upTo(C endpoint,
        BoundType boundType)Returns a range with no lower bound up to the given endpoint, which may be
 either inclusive (closed) or exclusive (open). | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<Range<K>,V> | TreeRangeMap. asDescendingMapOfRanges() | 
| ImmutableMap<Range<K>,V> | ImmutableRangeMap. asDescendingMapOfRanges() | 
| Map<Range<K>,V> | RangeMap. asDescendingMapOfRanges()Returns a view of this range map as an unmodifiable  Map<Range<K>, V>. | 
| Set<Range<C>> | TreeRangeSet. asDescendingSetOfRanges() | 
| ImmutableSet<Range<C>> | ImmutableRangeSet. asDescendingSetOfRanges() | 
| Set<Range<C>> | RangeSet. asDescendingSetOfRanges()Returns a descending view of the disconnected ranges that
 make up this range set. | 
| Map<Range<K>,V> | TreeRangeMap. asMapOfRanges() | 
| ImmutableMap<Range<K>,V> | ImmutableRangeMap. asMapOfRanges() | 
| Map<Range<K>,V> | RangeMap. asMapOfRanges()Returns a view of this range map as an unmodifiable  Map<Range<K>, V>. | 
| Set<Range<C>> | TreeRangeSet. asRanges() | 
| ImmutableSet<Range<C>> | ImmutableRangeSet. asRanges() | 
| Set<Range<C>> | RangeSet. asRanges()Returns a view of the disconnected ranges that make up this
 range set. | 
| Map.Entry<Range<K>,V> | TreeRangeMap. getEntry(K key) | 
| Map.Entry<Range<K>,V> | ImmutableRangeMap. getEntry(K key) | 
| Map.Entry<Range<K>,V> | RangeMap. getEntry(K key)Returns the range containing this key and its associated value, if such a range is present
 in the range map, or  nullotherwise. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | TreeRangeSet. add(Range<C> rangeToAdd) | 
| void | ImmutableRangeSet. add(Range<C> range) | 
| ImmutableRangeSet.Builder<C> | ImmutableRangeSet.Builder. add(Range<C> range)Add the specified range to this builder. | 
| void | RangeSet. add(Range<C> range)Adds the specified range to this  RangeSet(optional operation). | 
| static <C extends Comparable>  | ContiguousSet. create(Range<C> range,
            DiscreteDomain<C> domain)Returns a  ContiguousSetcontaining the same values in the given domain
 contained by the range. | 
| boolean | TreeRangeSet. encloses(Range<C> range) | 
| boolean | ImmutableRangeSet. encloses(Range<C> otherRange) | 
| boolean | RangeSet. encloses(Range<C> otherRange)Returns  trueif there exists a member range in this range set which
 encloses the specified range. | 
| boolean | Range. encloses(Range<C> other)Returns  trueif the bounds ofotherdo not extend outside the bounds of this
 range. | 
| Range<C> | Range. intersection(Range<C> connectedRange)Returns the maximal range enclosed by both this range and  connectedRange, if such a range exists. | 
| boolean | Range. isConnected(Range<C> other)Returns  trueif there exists a (possibly empty) range which is enclosed by both this range andother. | 
| static <C extends Comparable>  | ImmutableRangeSet. of(Range<C> range)Returns an immutable range set containing the specified single range. | 
| static <K extends Comparable<?>,V>  | ImmutableRangeMap. of(Range<K> range,
    V value)Returns an immutable range map mapping a single range to a single value. | 
| void | TreeRangeMap. put(Range<K> range,
      V value) | 
| void | ImmutableRangeMap. put(Range<K> range,
      V value) | 
| ImmutableRangeMap.Builder<K,V> | ImmutableRangeMap.Builder. put(Range<K> range,
      V value)Associates the specified range with the specified value. | 
| void | RangeMap. put(Range<K> range,
      V value)Maps a range to a specified value (optional operation). | 
| void | TreeRangeSet. remove(Range<C> rangeToRemove) | 
| void | ImmutableRangeSet. remove(Range<C> range) | 
| void | RangeSet. remove(Range<C> range)Removes the specified range from this  RangeSet(optional operation). | 
| void | TreeRangeMap. remove(Range<K> rangeToRemove) | 
| void | ImmutableRangeMap. remove(Range<K> range) | 
| void | RangeMap. remove(Range<K> range)Removes all associations from this range map in the specified range (optional operation). | 
| Range<C> | Range. span(Range<C> other)Returns the minimal range that encloses both this range and  other. | 
| RangeMap<K,V> | TreeRangeMap. subRangeMap(Range<K> subRange) | 
| ImmutableRangeMap<K,V> | ImmutableRangeMap. subRangeMap(Range<K> range) | 
| RangeMap<K,V> | RangeMap. subRangeMap(Range<K> range)Returns a view of the part of this range map that intersects with  range. | 
| RangeSet<C> | TreeRangeSet. subRangeSet(Range<C> view) | 
| ImmutableRangeSet<C> | ImmutableRangeSet. subRangeSet(Range<C> range)Returns a view of the intersection of this range set with the given range. | 
| RangeSet<C> | RangeSet. subRangeSet(Range<C> view)Returns a view of the intersection of this  RangeSetwith the specified range. | 
Copyright © 2010-2015. All Rights Reserved.