|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrderedSet
An extension to Set maintaining the definition order of the
elements of the set.
| Method Summary | |
|---|---|
boolean |
add(int index,
Object object)
Adds the specified element to the specified index in this set. |
Object |
get(int index)
Gets the indexed element in this set. |
int |
indexOf(Object object)
Returns the index of the specified element, or -1 if not found. |
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. |
List |
valueList()
Returns an ordered list of set values. |
| Methods inherited from interface java.util.Set |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
| Method Detail |
|---|
boolean isModifiable()
int indexOf(Object object)
object - the element.
Object get(int index)
index - the index.
IndexOutOfBoundsException - if the index is out of range.
boolean add(int index,
Object object)
index - the index.object - the element.
IndexOutOfBoundsException - if the index is out of range.Object remove(int index)
index - the index.
IndexOutOfBoundsException - if the index is out of range.Iterator iterator()
iterator in interface Collectioniterator in interface Iterableiterator in interface SetListIterator listIterator()
ListIterator listIterator(int index)
index - the start index.
List valueList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||