Class Configuration.StrictMap<V>

    • Constructor Detail

      • StrictMap

        public StrictMap​(String name,
                         int initialCapacity,
                         float loadFactor)
      • StrictMap

        public StrictMap​(String name,
                         int initialCapacity)
      • StrictMap

        public StrictMap​(String name)
    • Method Detail

      • conflictMessageProducer

        public Configuration.StrictMap<V> conflictMessageProducer​(BiFunction<V,​V,​String> conflictMessageProducer)
        Assign a function for producing a conflict error message when contains value with the same key.

        function arguments are 1st is saved value and 2nd is target value.

        Parameters:
        conflictMessageProducer - A function for producing a conflict error message
        Returns:
        a conflict error message
        Since:
        3.5.0