public class KeyObjectPair extends Object
| Constructor and Description |
|---|
KeyObjectPair(String name)
Construct an instance with a null value.
|
KeyObjectPair(String name,
Object value)
New instance with name and value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
The KeyObjectPair name, which has been trimmed to remove leading and trailing spaces.
|
Object |
getValue()
The value exactly as passed in the constructor, which may be null.
|
String |
toString()
String representation: name : "value"
If the value is null, the string [null] is used.
|
public KeyObjectPair(String name) throws ParsingException
name - A name that will be trimmed to remove all leading and trailing spaces.ParsingException - If the name is empty after trimming.public KeyObjectPair(String name, Object value) throws ParsingException
name - A name that will be trimmed to remove all leading and trailing spaces.value - The value, which will not be trimmed or modified.ParsingException - If the name is empty after trimming.Copyright © 2022. All rights reserved.