urv.olsr.data.mpr
Class OLSRPairSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<OLSRNodePair>
urv.olsr.data.mpr.OLSRPairSet
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<OLSRNodePair>, java.util.Collection<OLSRNodePair>, java.util.Set<OLSRNodePair>, BandwidthUpdatable
- Direct Known Subclasses:
- NeighborsOfNeighborsSet
public class OLSRPairSet
- extends java.util.HashSet<OLSRNodePair>
- implements BandwidthUpdatable
This class contains a set of OLSRPairs, which are a tuple of
- Author:
- Marcel Arrufat Arias
- See Also:
- Serialized Form
Methods inherited from class java.util.HashSet |
isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
OLSRPairSet
public OLSRPairSet()
add
public boolean add(OLSRNodePair node)
- Specified by:
add
in interface java.util.Collection<OLSRNodePair>
- Specified by:
add
in interface java.util.Set<OLSRNodePair>
- Overrides:
add
in class java.util.HashSet<OLSRNodePair>
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<OLSRNodePair>
- Specified by:
clear
in interface java.util.Set<OLSRNodePair>
- Overrides:
clear
in class java.util.HashSet<OLSRNodePair>
clone
public java.lang.Object clone()
- Creates a new instance of the Set
- Overrides:
clone
in class java.util.HashSet<OLSRNodePair>
contains
public boolean contains(java.lang.Object node)
- Specified by:
contains
in interface java.util.Collection<OLSRNodePair>
- Specified by:
contains
in interface java.util.Set<OLSRNodePair>
- Overrides:
contains
in class java.util.HashSet<OLSRNodePair>
updateBwOf
public void updateBwOf(OLSRNode node)
- Specified by:
updateBwOf
in interface BandwidthUpdatable
setCopyOfSet
public void setCopyOfSet(java.util.Set<OLSRNodePair> set)
- Adds all elements to the data set
The data elements cannot be retrieved during
the copy operation
- Parameters:
list
-