- java.lang.Object
-
- swim.structure.collections.ValueIterable<T>
-
- swim.structure.collections.ValueCollection<T>
-
- All Implemented Interfaces:
Iterable<T>,Collection<T>
public class ValueCollection<T> extends ValueIterable<T> implements Collection<T>
-
-
Field Summary
-
Fields inherited from class swim.structure.collections.ValueIterable
inner, valueForm
-
-
Constructor Summary
Constructors Constructor Description ValueCollection(Collection<? extends Value> inner, Form<T> valueForm)
-
Method Summary
Modifier and Type Method Description booleanadd(T newObject)booleanaddAll(Collection<? extends T> newObjects)voidclear()booleancontains(Object object)booleancontainsAll(Collection<?> objects)Collection<Value>inner()booleanisEmpty()booleanremove(Object object)booleanremoveAll(Collection<?> objects)booleanretainAll(Collection<?> objects)intsize()Object[]toArray()<T2> T2[]toArray(T2[] a)StringtoString()<T2> ValueCollection<T2>valueClass(Class<T2> valueClass)<T2> ValueCollection<T2>valueForm(Form<T2> valueForm)-
Methods inherited from class swim.structure.collections.ValueIterable
iterator, valueForm
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, iterator, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
ValueCollection
public ValueCollection(Collection<? extends Value> inner, Form<T> valueForm)
-
-
Method Detail
-
inner
public Collection<Value> inner()
- Overrides:
innerin classValueIterable<T>
-
valueForm
public <T2> ValueCollection<T2> valueForm(Form<T2> valueForm)
- Overrides:
valueFormin classValueIterable<T>
-
valueClass
public <T2> ValueCollection<T2> valueClass(Class<T2> valueClass)
- Overrides:
valueClassin classValueIterable<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<T>
-
size
public int size()
- Specified by:
sizein interfaceCollection<T>
-
contains
public boolean contains(Object object)
- Specified by:
containsin interfaceCollection<T>
-
containsAll
public boolean containsAll(Collection<?> objects)
- Specified by:
containsAllin interfaceCollection<T>
-
add
public boolean add(T newObject)
- Specified by:
addin interfaceCollection<T>
-
addAll
public boolean addAll(Collection<? extends T> newObjects)
- Specified by:
addAllin interfaceCollection<T>
-
remove
public boolean remove(Object object)
- Specified by:
removein interfaceCollection<T>
-
removeAll
public boolean removeAll(Collection<?> objects)
- Specified by:
removeAllin interfaceCollection<T>
-
retainAll
public boolean retainAll(Collection<?> objects)
- Specified by:
retainAllin interfaceCollection<T>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<T>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
public <T2> T2[] toArray(T2[] a)
- Specified by:
toArrayin interfaceCollection<T>
-
-