public class LabelBag extends Object implements Bag
Modifier and Type | Field and Description |
---|---|
static String |
LABEL_KEY
The default key that is associated with label.
|
private Object |
mPartitionID
The value for the partition key.
|
private Object |
mValue
The value for the Label.
|
static String |
PARTITION_KEY
The key that designates the partition to which a node belongs to.
|
Constructor and Description |
---|
LabelBag()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object key,
Object value)
Adds an object to the underlying bag corresponding to a particular key.
|
boolean |
containsKey(Object key)
Returns true if the namespace contains a mapping for the specified key.
|
Object |
get(Object key)
Returns an objects corresponding to the key passed.
|
static void |
setLabelKey(String key)
Sets the label key that is to be associated with the bag.
|
String |
toString()
Returns a textual description of the Bag.
|
public static String LABEL_KEY
public static final String PARTITION_KEY
private Object mValue
private Object mPartitionID
public static void setLabelKey(String key)
public boolean add(Object key, Object value)
public boolean containsKey(Object key)
containsKey
in interface Bag
key
- The key that you want to search for in the bag.Copyright © 2011 The University of Southern California. All Rights Reserved.