Class GroupInstance<D extends InstanceData>
java.lang.Object
java.util.AbstractCollection<D>
com.jozufozu.flywheel.core.instancing.GroupInstance<D>
- All Implemented Interfaces:
Iterable<D>,Collection<D>
-
Constructor Summary
ConstructorsConstructorDescriptionGroupInstance(Instancer<D> model) GroupInstance(Instancer<D> model, int size) -
Method Summary
Methods inherited from class java.util.AbstractCollection
add, addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
GroupInstance
-
GroupInstance
-
-
Method Details
-
resize
public boolean resize(int count) - Parameters:
count-- Returns:
- True if the number of elements changed.
-
addInstance
-
get
-
iterator
- Specified by:
iteratorin interfaceCollection<D extends InstanceData>- Specified by:
iteratorin interfaceIterable<D extends InstanceData>- Specified by:
iteratorin classAbstractCollection<D extends InstanceData>
-
size
public int size()- Specified by:
sizein interfaceCollection<D extends InstanceData>- Specified by:
sizein classAbstractCollection<D extends InstanceData>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<D extends InstanceData>- Overrides:
clearin classAbstractCollection<D extends InstanceData>
-