|
Groovy JDK | |||||||||
| Method Summary | |
|---|---|
BlockingQueue
|
leftShift(Object value)
Overloads the left shift operator to provide an easy way to append objects to a BlockingQueue. |
| Method Detail |
|---|
public BlockingQueue leftShift(Object value)
def list = new java.util.concurrent.LinkedBlockingQueue ()
list << 3 << 2 << 1
assert list.iterator().collect{it} == [3,2,1]value - an Object to be added to the collection..
|
Groovy JDK | |||||||||