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, removeAlladdAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected List list
public boolean add(Object o)
add in interface Collectionadd in interface Setadd in class AbstractCollectiono - Object to be addedpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in class AbstractCollectionpublic int size()
size in interface Collectionsize in interface Setsize in class AbstractCollectionpublic 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–2023 Open Identity Platform Community. All rights reserved.