Class BaseKeyValuePair

    • Constructor Detail

      • BaseKeyValuePair

        public BaseKeyValuePair()
        Initializes the string with length 0.
      • BaseKeyValuePair

        public BaseKeyValuePair​(String key,
                                String value)
        Initializes the object with the key/value pair.
        Parameters:
        key - the key to use
        value - the value to use
      • BaseKeyValuePair

        public BaseKeyValuePair​(String s)
        Initializes the object with the string to parse.
        Parameters:
        s - the string to parse
    • Method Detail

      • isValid

        public boolean isValid​(String value)
        Checks whether the string value is a valid presentation for this class.
        Overrides:
        isValid in class AbstractBaseString
        Parameters:
        value - the string value to check
        Returns:
        true if non-null
      • getTipText

        public String getTipText()
        Returns a tool tip for the GUI editor (ignored if null is returned).
        Specified by:
        getTipText in class AbstractBaseString
        Returns:
        the tool tip
      • pairValue

        public String pairValue()
        Returns the backquoted String pair.
        Returns:
        the backquoted pair
      • getPairKey

        public String getPairKey()
        Returns the key.
        Returns:
        the key
      • getPairValue

        public String getPairValue()
        Returns the value.
        Returns:
        the value
      • toMap

        public static Map<String,​String> toMap​(BaseKeyValuePair[] pairs)
        Turns the array into a string map.
        Parameters:
        pairs - the key/value pairs to use
        Returns:
        the generated map
      • fromMap

        public static BaseKeyValuePair[] fromMap​(Map<String,​String> map)
        Turns the string map into pairs.
        Parameters:
        map - the map
        Returns:
        the generated pairs