Class DeepImmutableCollection<E>
java.lang.Object
java.util.AbstractCollection<E>
de.cronn.reflection.util.immutable.collection.DeepImmutableCollection<E>
- All Implemented Interfaces:
Immutable,java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>
- Direct Known Subclasses:
DeepImmutableList,DeepImmutableSet
public class DeepImmutableCollection<E> extends java.util.AbstractCollection<E> implements java.util.Collection<E>, Immutable, java.io.Serializable
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DeepImmutableCollection(java.util.Collection<E> delegate) -
Method Summary
Modifier and Type Method Description booleanadd(E t)booleanaddAll(java.util.Collection<? extends E> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)booleanequals(java.lang.Object o)inthashCode()booleanisEmpty()java.util.Iterator<E>iterator()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
public boolean contains(java.lang.Object o) -
iterator
-
containsAll
public boolean containsAll(@Nonnull java.util.Collection<?> c) -
equals
public boolean equals(java.lang.Object o)- Specified by:
equalsin interfacejava.util.Collection<E>- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacejava.util.Collection<E>- Overrides:
hashCodein classjava.lang.Object
-
add
-
remove
public boolean remove(java.lang.Object o) -
addAll
-
removeAll
public boolean removeAll(@Nonnull java.util.Collection<?> c) -
retainAll
public boolean retainAll(@Nonnull java.util.Collection<?> c) -
clear
public void clear()
-