public class PlanEdge extends MultiMap<Operator,Operator>
Modifier and Type | Method and Description |
---|---|
void |
put(Operator key,
Operator value,
int pos)
Add an element to the map.
|
Pair<Operator,java.lang.Integer> |
removeWithPosition(Operator key,
Operator value)
Remove one value from an existing key and return which position in
the arraylist the value was at..
|
PlanEdge |
shallowClone() |
public PlanEdge()
public PlanEdge(int size)
size
- Initial size of the mappublic void put(Operator key, Operator value, int pos)
key
- The key to store the value under. If the key already
exists the value will be added to the collection for that key, it
will not replace the existing value (as in a standard map).value
- value to store.pos
- position in the arraylist to store the new value at.
Positions are zero based.public Pair<Operator,java.lang.Integer> removeWithPosition(Operator key, Operator value)
key
- Key to remove the value from.value
- Value to remove.public PlanEdge shallowClone()
Copyright © 2007-2017 The Apache Software Foundation