Class MultivaluedStringMap

    • Constructor Detail

      • MultivaluedStringMap

        public MultivaluedStringMap​(int initialCapacity,
                                    float loadFactor)
      • MultivaluedStringMap

        public MultivaluedStringMap​(int initialCapacity)
      • MultivaluedStringMap

        public MultivaluedStringMap()
    • Method Detail

      • addFirstNull

        protected void addFirstNull​(List<String> values)
        Description copied from class: AbstractMultivaluedMap

        Define the behavior for adding a null values to the first position in the value list.

        Default implementation is a no-op, i.e. the null values are ignored. Overriding implementations may modify this behavior by providing their own definitions of this method.
        Overrides:
        addFirstNull in class AbstractMultivaluedMap<String,​String>
        Parameters:
        values - value list where the null value addition is being requested.
      • addNull

        protected void addNull​(List<String> values)
        Description copied from class: AbstractMultivaluedMap

        Define the behavior for adding a null values to the value list.

        Default implementation is a no-op, i.e. the null values are ignored. Overriding implementations may modify this behavior by providing their own definitions of this method.
        Overrides:
        addNull in class AbstractMultivaluedMap<String,​String>
        Parameters:
        values - value list where the null value addition is being requested.
      • getFirst

        public final <A> A getFirst​(String key,
                                    Class<A> type)
      • getFirst

        public final <A> A getFirst​(String key,
                                    A defaultValue)