Interface JexlArithmetic.MapBuilder

  • All Known Implementing Classes:
    MapBuilder
    Enclosing class:
    JexlArithmetic

    public static interface JexlArithmetic.MapBuilder
    Helper interface used when creating a map literal.

    The default implementation creates a java.util.HashMap.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object create()
      Creates the actual "map" instance.
      void put​(java.lang.Object key, java.lang.Object value)
      Adds a new entry to the map.
    • Method Detail

      • create

        java.lang.Object create()
        Creates the actual "map" instance.
        Returns:
        the map
      • put

        void put​(java.lang.Object key,
                 java.lang.Object value)
        Adds a new entry to the map.
        Parameters:
        key - the map entry key
        value - the map entry value