- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T newObject)
boolean
addAll(Collection<? extends T> newObjects)
void
clear()
boolean
contains(Object object)
boolean
containsAll(Collection<?> objects)
Collection<Value>
inner()
boolean
isEmpty()
boolean
remove(Object object)
boolean
removeAll(Collection<?> objects)
boolean
retainAll(Collection<?> objects)
int
size()
Object[]
toArray()
<T2> T2[]
toArray(T2[] a)
String
toString()
<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:
inner
in classValueIterable<T>
-
valueForm
public <T2> ValueCollection<T2> valueForm(Form<T2> valueForm)
- Overrides:
valueForm
in classValueIterable<T>
-
valueClass
public <T2> ValueCollection<T2> valueClass(Class<T2> valueClass)
- Overrides:
valueClass
in classValueIterable<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<T>
-
size
public int size()
- Specified by:
size
in interfaceCollection<T>
-
contains
public boolean contains(Object object)
- Specified by:
contains
in interfaceCollection<T>
-
containsAll
public boolean containsAll(Collection<?> objects)
- Specified by:
containsAll
in interfaceCollection<T>
-
add
public boolean add(T newObject)
- Specified by:
add
in interfaceCollection<T>
-
addAll
public boolean addAll(Collection<? extends T> newObjects)
- Specified by:
addAll
in interfaceCollection<T>
-
remove
public boolean remove(Object object)
- Specified by:
remove
in interfaceCollection<T>
-
removeAll
public boolean removeAll(Collection<?> objects)
- Specified by:
removeAll
in interfaceCollection<T>
-
retainAll
public boolean retainAll(Collection<?> objects)
- Specified by:
retainAll
in interfaceCollection<T>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<T>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
public <T2> T2[] toArray(T2[] a)
- Specified by:
toArray
in interfaceCollection<T>
-
-