![]() The closure as a comparator to determine the ordering. Sorts the elements from the given map into a new ordered map using Provides an easy way to append multiple Map.Entry values to a Map.Ī helper method to allow maps to work with subscript operatorsĪllows a Map to be iterated through in reverse order using a closure. Returns a new Map containing all entries from self and entries, Returns a new Map containing all entries from left and right, Selects an entry in the map having the minimumĬreate a Map composed of the entries of the first map minus the Selects an entry in the map having the maximumĬalculated value as determined by the supplied closure. Overloads the left shift operator to provide an easy way to put Overloads the left shift operator to provide an easy way to append Value obtained using the 'switch' operand as key. 'Case' implementation for maps which tests the groovy truth Groups all map entries into groups determined by theĬreate a Map composed of the intersection of both maps. Groups the members of a map into sub maps determined by the Support the subscript operator for a Map. There is no entry for the given key in which case add the default value Looks up an item in a Map for the given key and returns the value - unless Returns the first non-null closure result by passing each map entry to the closure. Returns the first non-null closure result by passing each map entry to the closure, Supplied mapping closure and counts the frequency of the created groups.Ī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.įindResult( Object defaultResult, Closure closure) Groups the members of a map into groups determined by the Iterates through this Map transforming each entry using the closureĪs a transformer, returning a map of the transformed entries.Ĭounts the number of occurrences which satisfy the given closure from inside this map. Iterates through this Map transforming each entry into a new value using the closureĪs a transformer, returning a list of transformed values.ĬollectEntries( Map result, Closure closure) Method names, and values as the implementation.Ĭollect( Collection collection, Closure closure) 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |