Package groovy.lang

Class SpreadMap

All Implemented Interfaces:
Serializable, Cloneable, Map

public class SpreadMap
extends HashMap
Helper to turn a list with an even number of elements into a Map.
See Also:
Serialized Form
  • Constructor Details

    • SpreadMap

      public SpreadMap​(Object[] values)
    • SpreadMap

      public SpreadMap​(Map map)
    • SpreadMap

      public SpreadMap​(List list)
      Parameters:
      list - the list to make spreadable
      Since:
      1.8.0
  • Method Details