|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.linkedin.restli.common.CompoundKey
public class CompoundKey
Represents a compound identifier.
| Nested Class Summary | |
|---|---|
static class |
CompoundKey.TypeInfo
|
| Constructor Summary | |
|---|---|
CompoundKey()
|
|
| Method Summary | |
|---|---|
CompoundKey |
append(java.lang.String name,
java.lang.Object value)
Add the key with the given name and value to the CompoundKey. |
boolean |
equals(java.lang.Object obj)
|
static CompoundKey |
fromValues(com.linkedin.data.DataMap fieldValues,
java.util.Map<java.lang.String,CompoundKey.TypeInfo> fieldTypes)
Initialize and return a CompoundKey. |
int |
getNumParts()
|
java.lang.Object |
getPart(java.lang.String name)
Get the Object associated with the given key name. |
java.lang.Integer |
getPartAsInt(java.lang.String name)
Get the Object associated with the given key name as an Integer. |
java.lang.Long |
getPartAsLong(java.lang.String name)
Get the Object associated with the given key name as a Long. |
java.lang.String |
getPartAsString(java.lang.String name)
Get the Object associated with the given key name as a String. |
java.util.Set<java.lang.String> |
getPartKeys()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundKey()
| Method Detail |
|---|
public static CompoundKey fromValues(com.linkedin.data.DataMap fieldValues,
java.util.Map<java.lang.String,CompoundKey.TypeInfo> fieldTypes)
fieldValues - DataMap representing the CompoundKeyfieldTypes - Map of key name to it's CompoundKey.TypeInfo (also accepts Class> for backward compatibility).
public CompoundKey append(java.lang.String name,
java.lang.Object value)
name - name of the keyvalue - value of the key
public java.lang.Object getPart(java.lang.String name)
name - name of the key
public java.lang.Integer getPartAsInt(java.lang.String name)
name - name of the key
public java.lang.Long getPartAsLong(java.lang.String name)
name - name of the key
public java.lang.String getPartAsString(java.lang.String name)
name - name of the key
public int getNumParts()
public java.util.Set<java.lang.String> getPartKeys()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||