Package com.floragunn.fluent.collections
Class AbstractImmutableCollection<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.floragunn.fluent.collections.AbstractImmutableCollection<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>
public abstract class AbstractImmutableCollection<E> extends AbstractCollection<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcachedToString
-
Constructor Summary
Constructors Constructor Description AbstractImmutableCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanadd(E e)Deprecated.booleanaddAll(Collection<? extends E> c)Deprecated.Eany()voidclear()Deprecated.Eonly()booleanremove(Object o)Deprecated.booleanremoveAll(Collection<?> c)Deprecated.booleanremoveIf(Predicate<? super E> filter)Deprecated.booleanretainAll(Collection<?> c)Deprecated.StringtoString()-
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, iterator, size, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, spliterator, stream
-
-
-
-
Field Detail
-
cachedToString
protected String cachedToString
-
-
Method Detail
-
any
public E any()
-
only
public E only()
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<E>
-
add
@Deprecated public boolean add(E e)
Deprecated.- Specified by:
addin interfaceCollection<E>- Overrides:
addin classAbstractCollection<E>
-
remove
@Deprecated public boolean remove(Object o)
Deprecated.- Specified by:
removein interfaceCollection<E>- Overrides:
removein classAbstractCollection<E>
-
addAll
@Deprecated public boolean addAll(Collection<? extends E> c)
Deprecated.- Specified by:
addAllin interfaceCollection<E>- Overrides:
addAllin classAbstractCollection<E>
-
retainAll
@Deprecated public boolean retainAll(Collection<?> c)
Deprecated.- Specified by:
retainAllin interfaceCollection<E>- Overrides:
retainAllin classAbstractCollection<E>
-
removeAll
@Deprecated public boolean removeAll(Collection<?> c)
Deprecated.- Specified by:
removeAllin interfaceCollection<E>- Overrides:
removeAllin classAbstractCollection<E>
-
clear
@Deprecated public void clear()
Deprecated.- Specified by:
clearin interfaceCollection<E>- Overrides:
clearin classAbstractCollection<E>
-
removeIf
@Deprecated public boolean removeIf(Predicate<? super E> filter)
Deprecated.
-
-