public class CompositeKey extends AbstractKey
Constructor and Description |
---|
CompositeKey() |
Modifier and Type | Method and Description |
---|---|
Key |
addKey(KeyNameMapper keyMapper,
String name,
Key key)
This adds a child Key to the key, in case the mapper cannot map will not add to child keys
and just ignore the added key
|
Key |
cloneKey()
Clone the current key without influencing this instance
|
Key |
cloneKey(boolean includeChildren)
Clone the current key without influencing this instance, whilst leaving the values
|
CompareResult |
compare(Key otherKey,
CompareMethod method) |
boolean |
equals(Object obj) |
CompositeKey |
getValue() |
int |
hashCode() |
Key |
setKeys(KeyNameMapper keyMapper,
Map<String,Key> keyFields)
This sets all the key payload values
|
void |
setValueMarker(int valueMarker) |
String |
toString() |
compareTo, getChildrenAsComposite, getKey, getKey, getKeyCount, getKeys, getKeysByName, hasChildren, setKeys, size
public boolean equals(Object obj)
public Key addKey(KeyNameMapper keyMapper, String name, Key key)
Key
addKey
in interface Key
addKey
in class AbstractKey
keyMapper
- the mapper to map from name to indexname
- The name that represents the field / keykey
- The child Key to add to the payload of this keypublic Key setKeys(KeyNameMapper keyMapper, Map<String,Key> keyFields)
Key
setKeys
in interface Key
setKeys
in class AbstractKey
keyMapper
- the mapper to map from name to indexkeyFields
- the child keys to addpublic Key cloneKey()
Key
public void setValueMarker(int valueMarker)
public Key cloneKey(boolean includeChildren)
Key
includeChildren
- True if child keys need to be included;public CompareResult compare(Key otherKey, CompareMethod method)
public CompositeKey getValue()
public int hashCode()
Copyright © 2015. All rights reserved.