Class StringPair

  • All Implemented Interfaces:
    Serializable

    public class StringPair
    extends Object
    implements Serializable
    A StringPair mimics the behavior of a HashSet<String, String> entry, but with a webservice-friendly implementation. A normal HashMap is serialized in a weird way. The typical use case for this class is when you need to provide a set of parameters in a key-value fashion
    Author:
    Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
    See Also:
    Serialized Form
    • Constructor Detail

      • StringPair

        public StringPair()
        Arg-less constructor is required
      • StringPair

        public StringPair​(String key,
                          String value)
    • Method Detail

      • getKey

        public String getKey()
      • setKey

        public void setKey​(String key)
      • getValue

        public String getValue()
      • setValue

        public void setValue​(String value)
      • asHashMap

        public static HashMap<String,​String> asHashMap​(List<StringPair> theList)
        Converts a StringPair list to a HashMap.
        Parameters:
        theList - The list to be converted.
        Returns: