org.omnaest.utils.structure.collection
Class CollectionAbstract<E>
java.lang.Object
org.omnaest.utils.structure.collection.CollectionAbstract<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- Serializable, Iterable<E>, Collection<E>
- Direct Known Subclasses:
- CollectionComposite, CollectionToCollectionAdapterBase, ListAbstract, SetAbstract
public abstract class CollectionAbstract<E>
- extends Object
- implements Collection<E>, Serializable
Abstract implementation for the Collection interface. Only a few very needed methods are left to be implemented by
derived classes.
- Author:
- Omnaest
- See Also:
- Serialized Form
CollectionAbstract
public CollectionAbstract()
clear
public void clear()
- Specified by:
clear in interface Collection<E>
addAll
public boolean addAll(Collection<? extends E> collection)
- Specified by:
addAll in interface Collection<E>
containsAll
public boolean containsAll(Collection<?> collection)
- Specified by:
containsAll in interface Collection<E>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<E>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll in interface Collection<E>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll in interface Collection<E>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<E>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface Collection<E>
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<E>- Overrides:
hashCode in class Object
equals
public boolean equals(Object object)
- Specified by:
equals in interface Collection<E>- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.