Package joptsimple.util
Class KeyValuePair
- java.lang.Object
-
- joptsimple.util.KeyValuePair
-
public final class KeyValuePair extends Object
A 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.- Author:
- Paul Holser
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object that)inthashCode()StringtoString()static KeyValuePairvalueOf(String asString)Parses a string assumed to be of the formkey=valueinto its parts.
-
-
-
Method Detail
-
valueOf
public static KeyValuePair valueOf(String asString)
Parses a string assumed to be of the formkey=valueinto its parts.- Parameters:
asString- key-value string- Returns:
- a key-value pair
- Throws:
NullPointerException- ifstringRepresentationisnull
-
-