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:RoundRobin
Sets the objects at the supplied index.- Specified by:
set
in interfaceRoundRobin<T>
- Parameters:
index
- the indexobject
- the object
-
get
Description copied from interface:RoundRobin
Gets the specific object at that index.- Specified by:
get
in interfaceRoundRobin<T>
- Parameters:
index
- the index- Returns:
- the object
-
getNext
Description copied from interface:RoundRobin
Gets the next object in thisRoundRobin
- Specified by:
getNext
in interfaceRoundRobin<T>
- Returns:
- the next object
-
iterator
-
stream
Description copied from interface:RoundRobin
Gets aStream<T>
from thisRoundRobin<T>
.- Specified by:
stream
in interfaceRoundRobin<T>
- Returns:
- the
Stream<T>
of all elements
-