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.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
int |
hashCode() |
String |
toString() |
static KeyValuePair |
valueOf(String asString)
Parses a string assumed to be of the form key=value into its parts.
|
public static KeyValuePair valueOf(String asString)
asString
- key-value stringNullPointerException
- if stringRepresentation
is null
Copyright © 2014. All rights reserved.