Class SetView<E>
java.lang.Object
com.blazebit.persistence.view.impl.metamodel.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 boolean
add(E e)
boolean
addAll(Collection<? extends E> coll)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> coll)
boolean
isEmpty()
Iterator<E>
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection<?> coll)
boolean
retainAll(Collection<?> coll)
int
size()
Object[]
toArray()
<T> T[]
toArray(T[] a)
String
toString()
-
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:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceSet<E>
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear()
-