|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet
org.norther.tammi.acorn.util.StringKeyHashSet
public class StringKeyHashSet
An implementation of the OrderedSet interface applying string
representations of set elements as keys in comparisons.
| Constructor Summary | |
|---|---|
StringKeyHashSet()
Constructs a new set. |
|
StringKeyHashSet(Collection c)
Constructs a new set containing the elements in the specified collection. |
|
StringKeyHashSet(int capacity)
Constructs a new set with the specified capacity. |
|
StringKeyHashSet(int capacity,
float loadFactor)
Constructs a new set with the specified capacity and load factor. |
|
| Method Summary | |
|---|---|
boolean |
add(int index,
Object value)
Adds the specified element to the specified index in this set. |
boolean |
add(Object value)
|
void |
clear()
|
Object |
clone()
Returns a shallow copy of this set. |
boolean |
contains(Object o)
|
Object |
get(int index)
Gets the indexed element in this set. |
int |
indexOf(Object value)
Returns the index of the specified element, or -1 if not found. |
boolean |
isEmpty()
|
boolean |
isModifiable()
Checks whether this set is modifiable. |
Iterator |
iterator()
Returns an ordered iterator over the elements in this set. |
ListIterator |
listIterator()
Returns a list iterator over the elements in this set. |
ListIterator |
listIterator(int index)
Returns a list iterator with a start index over the elements in this set. |
Object |
remove(int index)
Removes the indexed element in this set. |
boolean |
remove(Object value)
|
int |
size()
|
List |
valueList()
Returns an ordered list of set values. |
| 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 |
| Constructor Detail |
|---|
public StringKeyHashSet()
public StringKeyHashSet(Collection c)
c - an initial collection.public StringKeyHashSet(int capacity)
capacity - the initial capacity.
public StringKeyHashSet(int capacity,
float loadFactor)
capacity - the initial capacity.loadFactor - the load factor.| Method Detail |
|---|
public Object clone()
clone in class Objectpublic boolean isModifiable()
OrderedSet
isModifiable in interface OrderedSetpublic int indexOf(Object value)
OrderedSet
indexOf in interface OrderedSetvalue - the element.
public Object get(int index)
OrderedSet
get in interface OrderedSetindex - the index.
public boolean add(int index,
Object value)
OrderedSet
add in interface OrderedSetindex - the index.value - the element.
public boolean add(Object value)
add in interface Collectionadd in interface Setadd in class AbstractCollectionpublic Object remove(int index)
OrderedSet
remove in interface OrderedSetindex - the index.
public boolean remove(Object value)
remove in interface Collectionremove in interface Setremove in class AbstractCollectionpublic void clear()
clear in interface Collectionclear in interface Setclear in class AbstractCollectionpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setcontains in class AbstractCollectionpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetisEmpty in class AbstractCollectionpublic int size()
size in interface Collectionsize in interface Setsize in class AbstractCollectionpublic Iterator iterator()
OrderedSet
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in interface OrderedSetiterator in class AbstractCollectionpublic ListIterator listIterator()
OrderedSet
listIterator in interface OrderedSetpublic ListIterator listIterator(int index)
OrderedSet
listIterator in interface OrderedSetindex - the start index.
public List valueList()
OrderedSet
valueList in interface OrderedSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||