public class MockSetHolder extends MockValueHolder<SetType> implements SetHolder
Constructor and Description |
---|
MockSetHolder(Collection<?> values)
Creates new instance of
MockSetHolder . |
MockSetHolder(Object... values)
Creates new instance of
MockSetHolder . |
MockSetHolder(SetType t)
Creates a new set holder for specified type.
|
MockSetHolder(SetType t,
Collection<?> values)
Creates new instance of
MockSetHolder . |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object e) |
boolean |
addAll(Collection<? extends Object> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
Type |
getItemType()
Returns the type of the items stored in this collection.
|
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Object> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
getId, getNotCompiledValueHolder, getType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getNotCompiledValueHolder
spliterator
parallelStream, removeIf, stream
public MockSetHolder(SetType t)
t
- type of data in holderpublic MockSetHolder(SetType t, Collection<?> values)
MockSetHolder
.t
- values
- public MockSetHolder(Object... values)
MockSetHolder
.values
- public MockSetHolder(Collection<?> values)
MockSetHolder
.values
- public Type getItemType()
CollectionHolder
getItemType
in interface CollectionHolder
public boolean add(Object e)
public boolean addAll(Collection<? extends Object> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Object>
containsAll
in interface Set<Object>
public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.