L
- keys on the leftR
- keys on the rightpublic class OneToOneMap<L,R>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
OneToOneMap.OneToOneMapException |
Constructor and Description |
---|
OneToOneMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsLeftAsKey(L l) |
boolean |
containsRightAsKey(R r) |
java.util.Set<java.util.Map.Entry<L,R>> |
entrySetLeftAsKey() |
java.util.Set<java.util.Map.Entry<R,L>> |
entrySetRightAsKey() |
R |
getLeftAsKey(L l) |
L |
getRightAsKey(R r) |
boolean |
isEmpty() |
void |
put(L l,
R r) |
R |
removeLeftAsKey(L l) |
L |
removeRightAsKey(R r) |
int |
size() |
java.util.Collection<R> |
valuesLeftAsKey() |
java.util.Collection<L> |
valuesRightAsKey() |
public boolean isEmpty()
public int size()
public void put(L l, R r) throws OneToOneMap.OneToOneMapException
OneToOneMap.OneToOneMapException
public java.util.Collection<R> valuesLeftAsKey()
public java.util.Collection<L> valuesRightAsKey()
public boolean containsLeftAsKey(L l)
public boolean containsRightAsKey(R r)
public void clear()