final class ArraySet extends Object implements Set
| Modifier and Type | Class and Description |
|---|---|
private class |
ArraySet.Iter
Simple iterator.
|
| Constructor and Description |
|---|
ArraySet(Object[] elements)
Creates an instance from an array.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object o)
Always throws UnsupportedOperationException.
|
boolean |
addAll(Collection c)
Always throws UnsupportedOperationException.
|
void |
clear()
Always throws UnsupportedOperationException.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object o)
Always throws UnsupportedOperationException.
|
boolean |
removeAll(Collection c)
Always throws UnsupportedOperationException.
|
boolean |
retainAll(Collection c)
Always throws UnsupportedOperationException.
|
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratorparallelStream, removeIf, streamprivate final Object[] elements
ArraySet(Object[] elements)
public int size()
size in interface Collectionsize in interface Setpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Setpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setpublic Iterator iterator()
public Object[] toArray()
toArray in interface CollectiontoArray in interface Setpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface Setpublic boolean add(Object o)
add in interface Collectionadd in interface Setpublic boolean remove(Object o)
remove in interface Collectionremove in interface Setpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Setpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface Setpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Setpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Setpublic void clear()
clear in interface Collectionclear in interface Setpublic boolean equals(Object o)
public int hashCode()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.