@Beta public abstract class AbstractIntSet extends Object implements IntSet
| Constructor and Description |
|---|
AbstractIntSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int o)
Adds the specified element to this set if it is not already
present.
|
boolean |
contains(int o)
Returns true if this set contains the specified element.
|
boolean |
containsAll(IntSet c)
Returns true if this set contains all of the elements in the specified set
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty()
Returns true if this set contains no elements.
|
int[] |
toArray()
Returns an array containing all of the elements in this collection.
|
public int[] toArray()
This implementation allocates the array to be returned, and iterates over the elements in the collection, storing each object reference in the next consecutive element of the array, starting with element 0.
public boolean isEmpty()
IntSetpublic boolean contains(int o)
IntSetpublic boolean containsAll(IntSet c)
IntSetcontainsAll in interface IntSetpublic boolean add(int o)
IntSetCopyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.