org.omnaest.utils.structure.collection.set
Class SetComposite<E>
java.lang.Object
org.omnaest.utils.structure.collection.CollectionAbstract<E>
org.omnaest.utils.structure.collection.set.SetAbstract<E>
org.omnaest.utils.structure.collection.set.SetComposite<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- Serializable, Iterable<E>, Collection<E>, Set<E>
public class SetComposite<E>
- extends SetAbstract<E>
Composite Set consisting of multiple given Set instances of the same type
The add(Object) method will add new elements to the Set with the smallest size.
- Author:
- Omnaest
- See Also:
SetUtils.composite(Collection),
Serialized Form
SetComposite
public SetComposite(Set<E>... sets)
- Parameters:
sets - - See Also:
SetComposite
SetComposite
public SetComposite(Collection<Set<E>> setCollection)
size
public int size()
contains
public boolean contains(Object o)
iterator
public Iterator<E> iterator()
add
public boolean add(E e)
remove
public boolean remove(Object o)
Copyright © 2013. All Rights Reserved.