public class OrderedSet extends AbstractSet implements Set, Serializable
Constructor and Description |
---|
OrderedSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object o)
Adds the specified element to this set if it is not already present
(optional operation).
|
boolean |
addAll(Set s)
Adds all entries in the given Set to this Set.
|
Object |
get(int index)
Returns the object of an given index.
|
Iterator |
iterator()
Returns an iterator over the elements in this set.
|
void |
removeAll(Integer[] array)
Deletes entries of a given array of indices.
|
void |
set(int index,
Object value)
Set value to the list.
|
int |
size()
Returns the number of elements in this set (its cardinality).
|
equals, hashCode, removeAll
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
protected List list
public boolean add(Object o)
add
in interface Collection
add
in interface Set
add
in class AbstractCollection
o
- Object to be addedpublic Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface Set
iterator
in class AbstractCollection
public int size()
size
in interface Collection
size
in interface Set
size
in class AbstractCollection
public boolean addAll(Set s)
public void removeAll(Integer[] array)
array
- Array of indices.public Object get(int index)
index
- Index of which object residespublic void set(int index, Object value)
index
- Index of object.value
- Value of object.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.