|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.longs.LongCollections.UnmodifiableCollection
An unmodifiable wrapper class for collections.
Field Summary | |
static long |
serialVersionUID
|
Method Summary | |
boolean |
add(long k)
|
boolean |
add(Object k)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(LongCollection c)
|
void |
clear()
|
boolean |
contains(long o)
|
boolean |
contains(Object k)
|
boolean |
containsAll(Collection c)
|
boolean |
containsAll(LongCollection c)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
LongIterator |
longIterator()
Returns a type-specific iterator on the collection. |
boolean |
rem(long k)
Note that this method should be called remove() , but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
remove(Object ok)
|
boolean |
removeAll(Collection c)
|
boolean |
removeAll(LongCollection c)
|
boolean |
retainAll(Collection c)
|
boolean |
retainAll(LongCollection c)
|
int |
size()
|
Object[] |
toArray()
|
long[] |
toArray(long[] a)
Builds a primitive type array containing the items of this collection. |
Object[] |
toArray(Object[] a)
|
long[] |
toLongArray()
Returns a primitive type array containing the items of this collection. |
long[] |
toLongArray(long[] a)
Builds a primitive type array containing the items of this collection. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
equals, hashCode |
Field Detail |
public static final long serialVersionUID
Method Detail |
public int size()
size
in interface Collection
public boolean isEmpty()
isEmpty
in interface Collection
public boolean contains(long o)
contains
in interface LongCollection
Collection.contains(Object)
public long[] toLongArray()
LongCollection
toLongArray
in interface LongCollection
Collection.toArray()
public long[] toLongArray(long[] a)
LongCollection
toLongArray
in interface LongCollection
a
- if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])
public Iterator iterator()
iterator
in interface Collection
public LongIterator longIterator()
LongCollection
The iterator returned by the Collection.iterator()
method and by this
method are identical; however, using this method you can save a type casting.
longIterator
in interface LongCollection
Collection.iterator()
public boolean add(long k)
add
in interface LongCollection
Collection.add(Object)
public boolean rem(long k)
LongCollection
remove()
, but the clash
with the similarly named index-based method in the List
interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove()
.
rem
in interface LongCollection
Collection.remove(Object)
public boolean remove(Object ok)
remove
in interface Collection
public boolean addAll(Collection c)
addAll
in interface Collection
public boolean containsAll(Collection c)
containsAll
in interface Collection
public boolean removeAll(Collection c)
removeAll
in interface Collection
public boolean retainAll(Collection c)
retainAll
in interface Collection
public boolean addAll(LongCollection c)
addAll
in interface LongCollection
Collection.addAll(Collection)
public boolean containsAll(LongCollection c)
containsAll
in interface LongCollection
Collection.containsAll(Collection)
public boolean removeAll(LongCollection c)
removeAll
in interface LongCollection
Collection.removeAll(Collection)
public boolean retainAll(LongCollection c)
retainAll
in interface LongCollection
Collection.retainAll(Collection)
public void clear()
clear
in interface Collection
public String toString()
public boolean add(Object k)
add
in interface Collection
public boolean contains(Object k)
contains
in interface Collection
public Object[] toArray()
toArray
in interface Collection
public Object[] toArray(Object[] a)
toArray
in interface Collection
public long[] toArray(long[] a)
LongCollection
toArray
in interface LongCollection
a
- if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |