public class MockListHolder extends MockValueHolder<ListType> implements ListHolder
Constructor and Description |
---|
MockListHolder(Collection<?> values)
Creates new instance of
MockListHolder . |
MockListHolder(ListType t)
Creates a new list holder for specified type.
|
MockListHolder(ListType t,
Collection<?> values)
Creates new instance of
MockListHolder . |
MockListHolder(Object... values)
Creates new instance of
MockListHolder . |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object element) |
boolean |
add(Object e) |
boolean |
addAll(Collection<? extends Object> c) |
boolean |
addAll(int index,
Collection<? extends Object> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
Object |
get(int index) |
Type |
getItemType()
Returns the type of the items stored in this collection.
|
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<Object> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Object> |
listIterator() |
ListIterator<Object> |
listIterator(int index) |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
Object |
set(int index,
Object element) |
int |
size() |
List<Object> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
getId, getNotCompiledValueHolder, getType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
getId, getNotCompiledValueHolder
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public MockListHolder(ListType t)
t
- type of data in holderpublic MockListHolder(ListType t, Collection<?> values)
MockListHolder
.t
- values
- public MockListHolder(Collection<?> values)
MockListHolder
.values
- public MockListHolder(Object... values)
MockListHolder
.values
- public Type getItemType()
CollectionHolder
getItemType
in interface CollectionHolder
public boolean add(Object e)
public boolean addAll(Collection<? extends Object> c)
public boolean addAll(int index, 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 List<Object>
public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Object>
public ListIterator<Object> listIterator()
listIterator
in interface List<Object>
public ListIterator<Object> listIterator(int index)
listIterator
in interface List<Object>
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.