Support the subscript operator for a Map. Looks up an item in a Map for the given key and returns the corresponding value. Iterates through the map transforming items using the supplied closure Returns the first non-null closure result found by passing each map entry to the closure, otherwise the defaultResult is returned. Returns the first non-null closure result found by passing each map entry to the closure, otherwise null is returned.įindResult( Object defaultResult, Closure condition) True when passed each of the dropped entries (or key/value pairs).Īllows a Map to be iterated through using a closure.Ĭompares two Maps treating coerced numerical values as identical.įinds the first entry matching the closure condition.įinds all entries matching the closure condition. Supplied mapping closure and counts the frequency of the created groups.ĭrops the given number of key/value pairs from the head of this map if they are available.Ĭreate a suffix of the given Map by dropping as many entries as possible from theįront of the original Map such that calling the given closure condition evaluates to Groups the members of a map into groups determined by the Projects each item from a source map to a result collection and concatenates (flattens) the resultingĬollections adding them into a collection.ĬollectMany( Object collector, Closure projection)Ĭollections adding them into the collector.Ĭounts the number of occurrences which satisfy the given closure from inside this map. Returning a map of the transformed entries. Iterates through this Map transforming each map entry using the transform closure Iterates through this Map transforming each entry using the transform closureĪnd returning a map of the transformed entries.ĬollectEntries( Map collector, Closure transform) Returning the collector with all transformed values added to it. Iterates through this Map transforming each map entry into a new value using the transform closureĬollect( Object collector, Closure transform) Method names, and values as the implementation. Iterates over the entries of a map, and checks whether a predicate isĬoerce a map instance to a boolean value.Ī convenience method for creating an immutable Map.Ī convenience method for creating a synchronized Map.Ĭoerces this map to the given type, using the map's keys as the public
0 Comments
Leave a Reply. |