com.limegroup.gnutella.util
Class FixedSizeSortedSet
java.lang.Object
com.limegroup.gnutella.util.FixedSizeSortedSet
- public class FixedSizeSortedSet
- extends java.lang.Object
Method Summary |
boolean |
add(java.lang.Object o)
Adding an item that is already in map will replace it with the new Object |
boolean |
addAll(java.util.Collection c)
|
void |
clear()
|
java.lang.Object |
clone()
|
boolean |
contains(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
first()
|
java.lang.Object |
get(java.lang.Object o)
|
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
java.lang.Object |
last()
|
boolean |
remove(java.lang.Object o)
|
int |
size()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
FixedSizeSortedSet
public FixedSizeSortedSet()
- constructor for default size
FixedSizeSortedSet
public FixedSizeSortedSet(int size)
FixedSizeSortedSet
public FixedSizeSortedSet(java.util.Comparator c)
FixedSizeSortedSet
public FixedSizeSortedSet(java.util.Comparator c,
int maxSize)
clone
public java.lang.Object clone()
add
public boolean add(java.lang.Object o)
- Adding an item that is already in map will replace it with the new Object
addAll
public boolean addAll(java.util.Collection c)
get
public java.lang.Object get(java.lang.Object o)
last
public java.lang.Object last()
first
public java.lang.Object first()
remove
public boolean remove(java.lang.Object o)
clear
public void clear()
contains
public boolean contains(java.lang.Object o)
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
isEmpty
public boolean isEmpty()
iterator
public java.util.Iterator iterator()
size
public int size()