T - Value key type@Immutable @Loggable(value=1) public final class ArraySet<T> extends Object implements Set<T>
This class is truly immutable. This means that it never changes
 its encapsulated values and is annotated with @Immutable
 annotation.
| Constructor and Description | 
|---|
| ArraySet()Public ctor. | 
| ArraySet(Iterable<T> set)Public ctor. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | add(T element) | 
| boolean | addAll(Collection<? extends T> col) | 
| void | clear() | 
| boolean | contains(Object key) | 
| boolean | containsAll(Collection<?> col) | 
| boolean | equals(Object object) | 
| int | hashCode() | 
| boolean | isEmpty() | 
| Iterator<T> | iterator() | 
| boolean | remove(Object obj) | 
| boolean | removeAll(Collection<?> col) | 
| boolean | retainAll(Collection<?> col) | 
| int | size() | 
| Object[] | toArray() | 
| <T> T[] | toArray(T[] array) | 
| String | toString() | 
| ArraySet<T> | with(Collection<T> vals)Make a new one with some extra entries. | 
| ArraySet<T> | with(T value)Make a new one with an extra entry. | 
| ArraySet<T> | without(T value)Make a new one without an extra entry. | 
public ArraySet<T> with(T value)
value - The valuepublic ArraySet<T> with(Collection<T> vals)
vals - Values to addpublic ArraySet<T> without(T value)
value - The valuepublic int hashCode()
public boolean equals(Object object)
public int size()
public boolean isEmpty()
public boolean contains(Object key)
public Object[] toArray()
public <T> T[] toArray(T[] array)
public boolean add(T element)
public boolean remove(Object obj)
public boolean containsAll(Collection<?> col)
containsAll in interface Collection<T>containsAll in interface Set<T>public boolean addAll(Collection<? extends T> col)
public boolean retainAll(Collection<?> col)
public boolean removeAll(Collection<?> col)
Copyright © 2012–2014 jcabi.com. All rights reserved.