zombie.util.set
Class AbstractIntSet
java.lang.Object
zombie.util.AbstractIntCollection
zombie.util.set.AbstractIntSet
- All Implemented Interfaces:
- IntCollection, IntSet
- Direct Known Subclasses:
- IntOpenHashSet
public abstract class AbstractIntSet
- extends AbstractIntCollection
- implements IntSet
This class represents an abstract base for implementing
sets of int values. All operations that can be implemented
using iterators and the get() and set() methods
are implemented as such. In most cases, this is
hardly an efficient solution, and at least some of those
methods should be overridden by sub-classes.
- Since:
- 1.0
- Version:
- 1.1 2003/1/10
- Author:
- Søren Bak
|
Method Summary |
boolean |
equals(java.lang.Object obj)
Indicates whether this collection is equal to some object. |
int |
hashCode()
Returns a hash code value for this collection. |
| Methods inherited from class zombie.util.AbstractIntCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface zombie.util.IntCollection |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize |
equals
public boolean equals(java.lang.Object obj)
- Description copied from interface:
IntCollection
- Indicates whether this collection is equal to some object.
- Specified by:
equals in interface IntCollection- Overrides:
equals in class java.lang.Object
- Parameters:
obj - the object with which to compare this collection.
- Returns:
- true if this collection is equals to
obj; returns false otherwise.
hashCode
public int hashCode()
- Description copied from interface:
IntCollection
- Returns a hash code value for this collection.
- Specified by:
hashCode in interface IntCollection- Overrides:
hashCode in class java.lang.Object
- Returns:
- a hash code value for this collection.