Class KeyValue
java.lang.Object
com.amazonaws.services.elasticmapreduce.model.KeyValue
- All Implemented Interfaces:
Serializable
,Cloneable
A key value pair.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getKey()
The unique identifier of a key value pair.getValue()
The value part of the identified key.int
hashCode()
void
The unique identifier of a key value pair.void
The value part of the identified key.toString()
Returns a string representation of this object; useful for testing and debugging.The unique identifier of a key value pair.The value part of the identified key.
-
Constructor Details
-
KeyValue
public KeyValue()Default constructor for KeyValue object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
KeyValue
Constructs a new KeyValue object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
key
- The unique identifier of a key value pair.value
- The value part of the identified key.
-
-
Method Details
-
setKey
The unique identifier of a key value pair.
- Parameters:
key
- The unique identifier of a key value pair.
-
getKey
The unique identifier of a key value pair.
- Returns:
- The unique identifier of a key value pair.
-
withKey
The unique identifier of a key value pair.
- Parameters:
key
- The unique identifier of a key value pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
The value part of the identified key.
- Parameters:
value
- The value part of the identified key.
-
getValue
The value part of the identified key.
- Returns:
- The value part of the identified key.
-
withValue
The value part of the identified key.
- Parameters:
value
- The value part of the identified key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-