Top Description Methods
com.google.common.collect

pack-priv Interface SortedIterable<T extends @Nullable Object>

extends Iterable<T extends @Nullable Object>
Known Direct Subinterfaces
com.google.common.collect.SortedMultiset
Known Direct Implementers
com.google.common.collect.ImmutableSortedAsList, com.google.common.collect.ImmutableSortedSet
Annotations
@GwtCompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtCompatible, java.util.Comparator, .Iterator, org.checkerframework.checker.nullness.qual.Nullable

An Iterable whose elements are sorted relative to a Comparator, typically provided at creation time.
Author
Louis Wasserman

Method Summary

Modifier and TypeMethod and Description
public Comparator<? super T>
comparator()

Returns the Comparator by which the elements of this iterable are ordered, or Ordering.natural() if the elements are ordered by their natural ordering.

public Iterator<T>
iterator()

Redeclares java.lang.Iterable.iterator.

Returns an iterator over elements of type T.
Inherited from java.lang.Iterable:
forEachspliterator

Method Detail

comparatorback to summary
public Comparator<? super T> comparator()

Returns the Comparator by which the elements of this iterable are ordered, or Ordering.natural() if the elements are ordered by their natural ordering.

iteratorback to summary
public Iterator<T> iterator()

Redeclares java.lang.Iterable.iterator.

Returns an iterator over elements of type T. The elements are returned in nondecreasing order according to the associated comparator.

Returns:Iterator<T>

Doc from java.lang.Iterable.iterator.

an Iterator.

Annotations
@Override