Class PMap.Builder

  • Enclosing class:
    PMap

    public static class PMap.Builder
    extends Object
    A PMap builder.
    • Method Detail

      • put

        public PMap.Builder put​(String key,
                                Value value)
        Add a mapping for the given key and value.
        Parameters:
        key - map key
        value - mapped value
        Returns:
        this
      • put

        public PMap.Builder put​(String key,
                                boolean value)
        Add a mapping for the given key and value.
        Parameters:
        key - map key
        value - mapped value
        Returns:
        this
      • put

        public PMap.Builder put​(String key,
                                int value)
        Add a mapping for the given key and value.
        Parameters:
        key - map key
        value - mapped value
        Returns:
        this
      • put

        public PMap.Builder put​(String key,
                                double value)
        Add a mapping for the given key and value.
        Parameters:
        key - map key
        value - mapped value
        Returns:
        this
      • put

        public PMap.Builder put​(String key,
                                String value)
        Add a mapping for the given key and value.
        Parameters:
        key - map key
        value - mapped value
        Returns:
        this
      • put

        public PMap.Builder put​(String key,
                                Object value)
        Add a mapping for the given key and value.
        Parameters:
        key - map key
        value - mapped value
        Returns:
        this
      • build

        public PMap build()
        Build the PMap.
        Returns:
        new PMap