java.lang.Object
Util.Collections.AbstrRelation
Util.Collections.AbstrRelationMapBased
Util.Collections.LightRelation
- All Implemented Interfaces:
- java.lang.Cloneable, Relation, java.io.Serializable
- public class LightRelation
- extends AbstrRelationMapBased
- implements java.io.Serializable
LightRelation
- Version:
- $Id: LightRelation.java,v 1.2 2003/05/12 10:05:21 joewhaley Exp $
| Methods inherited from class Util.Collections.AbstrRelation |
contains, containsKey, equals, forAllEntries, hashCode, isEmpty, remove, removeKeys, removeObjects, removeValues, select, toString, union, values |
LightRelation
public LightRelation()
- Creates a
RelationLight.
getEmptyRelation
protected Relation getEmptyRelation()
- Overrides:
getEmptyRelation in class AbstrRelation
add
public boolean add(java.lang.Object key,
java.lang.Object value)
- Description copied from interface:
Relation
- Adds the pair
<key, value> to the relation.
Returns true if the new relation is bigger.
- Specified by:
add in interface Relation- Overrides:
add in class AbstrRelation
addAll
public boolean addAll(java.lang.Object key,
java.util.Collection values)
- Description copied from interface:
Relation
- Adds a relation from
key to each element of the set
values. values should not contain
duplicated elements.
Returns true if the new relation is bigger.
- Specified by:
addAll in interface Relation- Overrides:
addAll in class AbstrRelation
removeAll
public void removeAll(java.lang.Object key,
java.util.Collection values)
- Description copied from interface:
Relation
- Removes the relation between
key and
any element from values.
- Specified by:
removeAll in interface Relation- Overrides:
removeAll in class AbstrRelation
clone
public java.lang.Object clone()
- Description copied from interface:
Relation
- Clones this relation.
- Specified by:
clone in interface Relation- Overrides:
clone in class AbstrRelation