Class SetView<E>
java.lang.Object
com.blazebit.persistence.impl.util.SetView<E>
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,Set<E>
public class SetView<E> extends Object implements Set<E>, Serializable
A set implementation that allows to provide a set view of a collection.
- Since:
- 1.2.0
- Author:
- Christian Beikov
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SetView(Collection<? extends E> c) -
Method Summary
Modifier and Type Method Description booleanadd(E e)booleanaddAll(Collection<? extends E> coll)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> coll)booleanisEmpty()Iterator<E>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> coll)booleanretainAll(Collection<?> coll)intsize()Object[]toArray()<T> T[]toArray(T[] a)StringtoString()
-
Constructor Details
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
toString
-
iterator
-
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear()
-