public class Entry extends Object
SystemCapability.Data#DATA_DISTRIBUTEDDATAMGR| 构造器 | 说明 |
|---|---|
Entry() |
An no-argument constructor used to create an
Entry instance. |
Entry(String key,
Value value) |
A parameterized constructor used to create an
Entry instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object obj) |
Checks whether a specified key-value pair is the same as the current key-value pair.
|
String |
getKey() |
Obtains the key of a key-value pair.
|
Value |
getValue() |
Obtains the value of a key-value pair.
|
int |
hashCode() |
Obtains the hash code value of a key-value pair.
|
void |
setKey(String key) |
Sets the key of a key-value pair.
|
void |
setValue(Value value) |
Sets the value of a key-value pair.
|
public Entry()
Entry instance.public void setKey(String key)
key - Indicates the key to be set.public String getKey()
public Value getValue()
public void setValue(Value value)
value - Indicates the value of a key-value pair.public int hashCode()
hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public boolean equals(Object obj)
equals 在类中 Objectobj - Indicates the specified key-value pair.true if the key-value pairs are the same; returns false otherwise.Object.hashCode(),
HashMap