Package com.google.common.collect
Interface SortedIterable<T>
- All Superinterfaces:
Iterable<T>
- All Known Subinterfaces:
SortedMultiset<E>
- All Known Implementing Classes:
AbstractSortedMultiset
,ContiguousSet
,DescendingImmutableSortedMultiset
,DescendingImmutableSortedSet
,DescendingMultiset
,EmptyContiguousSet
,ForwardingSortedMultiset
,ForwardingSortedMultiset.StandardDescendingMultiset
,ImmutableRangeSet.AsSet
,ImmutableSortedAsList
,ImmutableSortedMultiset
,ImmutableSortedSet
,RegularContiguousSet
,RegularImmutableSortedMultiset
,RegularImmutableSortedSet
,TreeMultiset
,UnmodifiableSortedMultiset
An
Iterable
whose elements are sorted relative to a Comparator
, typically
provided at creation time.-
Method Summary
Modifier and TypeMethodDescriptionComparator
<? super T> Returns theComparator
by which the elements of this iterable are ordered, orOrdering.natural()
if the elements are ordered by their natural ordering.iterator()
Returns an iterator over elements of typeT
.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
comparator
Comparator<? super T> comparator()Returns theComparator
by which the elements of this iterable are ordered, orOrdering.natural()
if the elements are ordered by their natural ordering. -
iterator
Returns an iterator over elements of typeT
. The elements are returned in nondecreasing order according to the associatedcomparator()
.
-