joptsimple.util
Class KeyValuePair
- java.lang.Object
-
- joptsimple.util.KeyValuePair
-
public final class KeyValuePair extends java.lang.ObjectA simple string key/string value pair.
This is useful as an argument type for options whose values take on the form key=value, such as JVM command line system properties.
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.Stringkeyjava.lang.Stringvalue
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object that)inthashCode()java.lang.StringtoString()static KeyValuePairvalueOf(java.lang.String stringRepresentation)Parses a string assumed to be of the form key=value into its parts.
-
-
-
Method Detail
-
valueOf
public static KeyValuePair valueOf(java.lang.String stringRepresentation)
Parses a string assumed to be of the form key=value into its parts.- Parameters:
stringRepresentation- key-value string- Returns:
- a key-value pair
- Throws:
java.lang.NullPointerException- ifstringRepresentationisnull
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG