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

Method removeOnlySet

output/java_guava/1.4.17/Maps.java:1045–1062  ·  view source on GitHub ↗
(final Set<E> set)

Source from the content-addressed store, hash-verified

1043 }
1044
1045 private static <E> Set<E> removeOnlySet(final Set<E> set) {
1046 return new ForwardingSet<E>() {
1047 @Override
1048 protected Set<E> delegate() {
1049 return set;
1050 }
1051
1052 @Override
1053 public boolean add(E element) {
1054 throw new UnsupportedOperationException();
1055 }
1056
1057 @Override
1058 public boolean addAll(Collection<? extends E> es) {
1059 throw new UnsupportedOperationException();
1060 }
1061 };
1062 }
1063
1064 private static <E> SortedSet<E> removeOnlySortedSet(final SortedSet<E> set) {
1065 return new ForwardingSortedSet<E>() {

Callers 1

createKeySetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected