public class KeyValue
extends java.lang.Object
implements java.io.Serializable
A key value pair.
| コンストラクタと説明 |
|---|
KeyValue()
Default constructor for a new KeyValue object.
|
KeyValue(java.lang.String key,
java.lang.String value)
Constructs a new KeyValue object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The unique identifier of a key value pair.
|
java.lang.String |
getValue()
The value part of the identified key.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The unique identifier of a key value pair.
|
void |
setValue(java.lang.String value)
The value part of the identified key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyValue |
withKey(java.lang.String key)
The unique identifier of a key value pair.
|
KeyValue |
withValue(java.lang.String value)
The value part of the identified key.
|
public KeyValue()
public KeyValue(java.lang.String key,
java.lang.String value)
key - The unique identifier of a key value pair.value - The value part of the identified key.public java.lang.String getKey()
Constraints:
Length: 0 - 10280
Pattern: [ --�𐀀-\r\n\t]*
public void setKey(java.lang.String key)
Constraints:
Length: 0 - 10280
Pattern: [ --�𐀀-\r\n\t]*
key - The unique identifier of a key value pair.public KeyValue withKey(java.lang.String key)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10280
Pattern: [ --�𐀀-\r\n\t]*
key - The unique identifier of a key value pair.public java.lang.String getValue()
Constraints:
Length: 0 - 10280
Pattern: [ --�𐀀-\r\n\t]*
public void setValue(java.lang.String value)
Constraints:
Length: 0 - 10280
Pattern: [ --�𐀀-\r\n\t]*
value - The value part of the identified key.public KeyValue withValue(java.lang.String value)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10280
Pattern: [ --�𐀀-\r\n\t]*
value - The value part of the identified key.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object