MCPcopy Create free account
hub / github.com/antlr/codebuff / unmodifiableNavigableSet

Method unmodifiableNavigableSet

output/java_guava/1.4.17/Sets.java:1491–1497  ·  view source on GitHub ↗

Returns an unmodifiable view of the specified navigable set. This method allows modules to provide users with "read-only" access to internal navigable sets. Query operations on the returned set "read through" to the specified set, and attempts to modify the returned set, whether direct or via its co

(NavigableSet<E> set)

Source from the content-addressed store, hash-verified

1489 */
1490
1491 @GwtIncompatible // NavigableSet
1492 public static <E> NavigableSet<E> unmodifiableNavigableSet(NavigableSet<E> set) {
1493 if (set instanceof ImmutableSortedSet || set instanceof UnmodifiableNavigableSet) {
1494 return set;
1495 }
1496 return new UnmodifiableNavigableSet<E>(set);
1497 }
1498
1499 @GwtIncompatible // NavigableSet
1500 static final class UnmodifiableNavigableSet<E> extends ForwardingSortedSet<E>

Callers 7

navigableKeySetMethod · 0.95
descendingKeySetMethod · 0.95
createElementSetMethod · 0.95
subSetMethod · 0.45
headSetMethod · 0.45
tailSetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected