|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.bytes.AbstractByteCollection
it.unimi.dsi.fastutil.bytes.AbstractByteSet
it.unimi.dsi.fastutil.bytes.ByteSets.Singleton
An immutable class representing a type-specific singleton set.
This class may be useful to implement your own in case you subclass a type-specific set.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
boolean |
add(byte k)
|
boolean |
addAll(ByteCollection c)
Adds all elements of the given type-specific collection to this collection. |
boolean |
addAll(ByteList l)
|
boolean |
addAll(Collection c)
Adds all elements of the given collection to this collection. |
boolean |
addAll(List l)
|
ByteIterator |
byteIterator()
Returns a type-specific iterator on the collection. |
Object |
clone()
|
boolean |
contains(byte k)
|
boolean |
removeAll(ByteCollection c)
Remove from this collection all elements in the given type-specific collection. |
boolean |
removeAll(Collection c)
Remove from this collection all elements in the given collection. |
boolean |
retainAll(ByteCollection c)
Retains in this collection only elements from the given type-specific collection. |
boolean |
retainAll(Collection c)
Retains in this collection only elements from the given collection. |
int |
size()
|
byte[] |
toByteArray()
Returns a primitive type array containing the items of this collection. |
| Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteSet |
equals, hashCode, iterator, rem, remove, remove |
| Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteCollection |
add, clear, contains, containsAll, containsAll, isEmpty, iterator, rem, toArray, toArray, toArray, toByteArray, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
add, clear, contains, containsAll, isEmpty, iterator, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection |
containsAll, toArray, toByteArray |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public boolean add(byte k)
add in interface ByteCollectionadd in class AbstractByteCollectionpublic boolean contains(byte k)
contains in interface ByteCollectionCollection.contains(Object)public boolean addAll(List l)
public boolean addAll(Collection c)
AbstractByteCollection
addAll in interface SetaddAll in class AbstractByteCollectionc - a collection.
true if this collection changed as a result of the call.public boolean removeAll(Collection c)
AbstractByteCollection
removeAll in interface SetremoveAll in class AbstractByteCollectionc - a collection.
true if this collection changed as a result of the call.public boolean retainAll(Collection c)
AbstractByteCollection
retainAll in interface SetretainAll in class AbstractByteCollectionc - a collection.
true if this collection changed as a result of the call.public boolean addAll(ByteList l)
public boolean addAll(ByteCollection c)
AbstractByteCollection
addAll in interface ByteCollectionaddAll in class AbstractByteCollectionc - a type-specific collection.
true if this collection changed as a result of the call.public boolean removeAll(ByteCollection c)
AbstractByteCollection
removeAll in interface ByteCollectionremoveAll in class AbstractByteCollectionc - a type-specific collection.
true if this collection changed as a result of the call.public boolean retainAll(ByteCollection c)
AbstractByteCollection
retainAll in interface ByteCollectionretainAll in class AbstractByteCollectionc - a type-specific collection.
true if this collection changed as a result of the call.public byte[] toByteArray()
ByteCollection
toByteArray in interface ByteCollectiontoByteArray in class AbstractByteCollectionpublic ByteIterator byteIterator()
ByteCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
byteIterator in interface ByteCollectionCollection.iterator()public int size()
size in interface Setpublic Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||