diff options
Diffstat (limited to 'guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java')
-rw-r--r-- | guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java b/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java index ee93d9b1f..93fc4bd24 100644 --- a/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java +++ b/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java @@ -22,9 +22,9 @@ import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.io.Serializable; import java.util.AbstractCollection; import java.util.Collection; -import java.util.Collections; import java.util.Iterator; import java.util.Spliterator; +import java.util.function.Predicate; import org.checkerframework.checker.nullness.qual.Nullable; /** @@ -37,9 +37,6 @@ public abstract class ImmutableCollection<E> extends AbstractCollection<E> imple static final int SPLITERATOR_CHARACTERISTICS = Spliterator.IMMUTABLE | Spliterator.NONNULL | Spliterator.ORDERED; - static final ImmutableCollection<Object> EMPTY_IMMUTABLE_COLLECTION = - new ForwardingImmutableCollection<Object>(Collections.emptyList()); - ImmutableCollection() {} public abstract UnmodifiableIterator<E> iterator(); @@ -64,6 +61,10 @@ public abstract class ImmutableCollection<E> extends AbstractCollection<E> imple throw new UnsupportedOperationException(); } + public final boolean removeIf(Predicate<? super E> predicate) { + throw new UnsupportedOperationException(); + } + public final boolean retainAll(Collection<?> elementsToKeep) { throw new UnsupportedOperationException(); } |