Return type | Name and parameters |
---|---|
BlockingQueue
|
leftShift(Object value)
Overloads the left shift operator to provide an easy way to append objects to a BlockingQueue. |
addAll
, asBoolean
, asImmutable
, asSynchronized
, asType
, collect
, collect
, collect
, collectAll
, collectAll
, collectNested
, containsAll
, disjoint
, eachPermutation
, find
, find
, findAll
, findAll
, findResult
, findResult
, flatten
, flatten
, getAt
, grep
, grep
, groupBy
, inject
, inject
, intersect
, isCase
, leftShift
, multiply
, plus
, plus
, plus
, removeAll
, removeAll
, retainAll
, retainAll
, sort
, split
, toList
, toListString
, toListString
, toSet
, unique
, unique
, unique
, unique
, unique
, unique
any
, asList
, collectEntries
, collectEntries
, collectEntries
, collectEntries
, collectMany
, collectMany
, collectNested
, collectNested
, combinations
, combinations
, count
, count
, countBy
, drop
, dropWhile
, each
, eachCombination
, eachWithIndex
, every
, findResults
, first
, flatten
, flatten
, getAt
, groupBy
, groupBy
, groupBy
, join
, last
, max
, max
, max
, min
, min
, min
, sort
, sort
, sort
, sort
, sort
, sum
, sum
, sum
, sum
, take
, takeWhile
, toList
Overloads the left shift operator to provide an easy way to append objects to a BlockingQueue. In case of bounded queue the method will block till space in the queue become available
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.