Package dev.getelements.elements.rt
Class ConcurrentRoundRobin<T>
java.lang.Object
dev.getelements.elements.rt.ConcurrentRoundRobin<T>
- All Implemented Interfaces:
RoundRobin<T>,Iterable<T>
-
Constructor Details
-
ConcurrentRoundRobin
-
-
Method Details
-
set
Description copied from interface:RoundRobinSets the objects at the supplied index.- Specified by:
setin interfaceRoundRobin<T>- Parameters:
index- the indexobject- the object
-
get
Description copied from interface:RoundRobinGets the specific object at that index.- Specified by:
getin interfaceRoundRobin<T>- Parameters:
index- the index- Returns:
- the object
-
getNext
Description copied from interface:RoundRobinGets the next object in thisRoundRobin- Specified by:
getNextin interfaceRoundRobin<T>- Returns:
- the next object
-
iterator
-
stream
Description copied from interface:RoundRobinGets aStream<T>from thisRoundRobin<T>.- Specified by:
streamin interfaceRoundRobin<T>- Returns:
- the
Stream<T>of all elements
-