MCPcopy
hub / github.com/google/guava / removeOnlySet

Method removeOnlySet

guava/src/com/google/common/collect/Maps.java:1111–1128  ·  view source on GitHub ↗
(Set<E> set)

Source from the content-addressed store, hash-verified

1109 }
1110
1111 private static <E extends @Nullable Object> Set<E> removeOnlySet(Set<E> set) {
1112 return new ForwardingSet<E>() {
1113 @Override
1114 protected Set<E> delegate() {
1115 return set;
1116 }
1117
1118 @Override
1119 public boolean add(@ParametricNullness E element) {
1120 throw new UnsupportedOperationException();
1121 }
1122
1123 @Override
1124 public boolean addAll(Collection<? extends E> es) {
1125 throw new UnsupportedOperationException();
1126 }
1127 };
1128 }
1129
1130 private static <E extends @Nullable Object> SortedSet<E> removeOnlySortedSet(SortedSet<E> set) {
1131 return new ForwardingSortedSet<E>() {

Callers 1

createKeySetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected