|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbb.util.Collections2
public class Collections2
Adds functionality that is missing from Collections
.
There is no reason for this class other than oversight on Sun's part: if I could convince Sun to include this stuff in their Collections class then could eliminate this.
This class is multithread safe: it is stateless.
Nested Class Summary | |
---|---|
static class |
Collections2.UnitTest
See the Overview page of the project's javadocs for a general description of this unit test class. |
(package private) static class |
Collections2.UnmodifiableNavigableSet<E>
|
Constructor Summary | |
---|---|
private |
Collections2()
This private constructor suppresses the default (public) constructor, ensuring non-instantiability. |
Method Summary | ||
---|---|---|
static
|
unmodifiableNavigableSet(NavigableSet<E> navigableSet)
Returns an unmodifiable view of navigableSet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private Collections2()
Method Detail |
---|
public static <E> NavigableSet<E> unmodifiableNavigableSet(NavigableSet<E> navigableSet)
UnsupportedOperationException
.
The returned collection will be Serializable
if navigableSet is Serializable.
navigableSet
- the NavigableSet for which an unmodifiable view is to be returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |