public class IdentitySet extends Object implements Set
Constructor and Description |
---|
IdentitySet()
Create an IdentitySet with default sizing.
|
IdentitySet(int sizing)
Create an IdentitySet with the given sizing.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
boolean |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, spliterator
parallelStream, removeIf, stream
public IdentitySet()
public IdentitySet(int sizing)
sizing
- The sizing of the set to create.public int size()
size
in interface Collection
size
in interface Set
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface Set
public boolean contains(Object o)
contains
in interface Collection
contains
in interface Set
public Iterator iterator()
public Object[] toArray()
toArray
in interface Collection
toArray
in interface Set
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface Set
public boolean add(Object o)
add
in interface Collection
add
in interface Set
public boolean remove(Object o)
remove
in interface Collection
remove
in interface Set
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface Set
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface Set
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface Set
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface Set
public void clear()
clear
in interface Collection
clear
in interface Set
Copyright © 2017 JBoss by Red Hat. All rights reserved.