|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<Byte>
it.unimi.dsi.fastutil.bytes.AbstractByteCollection
it.unimi.dsi.fastutil.bytes.AbstractByteBigList
it.unimi.dsi.fastutil.bytes.AbstractByteBigList.ByteSubList
public static class AbstractByteBigList.ByteSubList
Nested Class Summary |
---|
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteBigList |
---|
AbstractByteBigList.ByteSubList |
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
AbstractByteBigList.ByteSubList(ByteBigList l,
long from,
long to)
|
Method Summary | |
---|---|
boolean |
add(byte k)
|
void |
add(long index,
byte k)
|
boolean |
addAll(long index,
ByteCollection c)
Delegates to a more generic method. |
boolean |
addAll(long index,
ByteList l)
|
boolean |
addAll(long index,
Collection<? extends Byte> c)
Inserts all of the elements in the specified collection into this big list at the specified position (optional operation). |
void |
addElements(long index,
byte[][] a,
long offset,
long length)
Adds elements to this type-specific big list one-by-one. |
void |
clear()
|
byte |
getByte(long index)
|
void |
getElements(long from,
byte[][] a,
long offset,
long length)
Copies element of this type-specific big list into the given big array one-by-one. |
ByteBigListIterator |
listIterator(long index)
Returns a type-specific list iterator on this type-specific big list starting at a given index. |
boolean |
rem(byte 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 o)
Delegates to the type-specific rem() method. |
byte |
removeByte(long index)
|
void |
removeElements(long from,
long to)
Removes elements of this type-specific big list one-by-one. |
byte |
set(long index,
byte k)
|
long |
size64()
Returns the size of this data structure as a long. |
ByteBigList |
subList(long from,
long to)
Returns a type-specific view of the portion of this type-specific big list from the index from , inclusive, to the index to , exclusive. |
Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteBigList |
---|
add, addAll, addAll, addAll, addAll, addAll, addElements, compareTo, contains, equals, get, getByte, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekByte, pop, popByte, push, push, remove, remove, removeByte, set, set, size, size, size, top, topByte, toString |
Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteCollection |
---|
add, byteIterator, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toByteArray, toByteArray |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection |
---|
byteIterator, containsAll, removeAll, retainAll, toArray, toArray, toByteArray, toByteArray |
Methods inherited from interface java.util.Collection |
---|
add, contains, containsAll, isEmpty, removeAll, retainAll, toArray |
Methods inherited from interface it.unimi.dsi.fastutil.Stack |
---|
isEmpty |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public AbstractByteBigList.ByteSubList(ByteBigList l, long from, long to)
Method Detail |
---|
public boolean add(byte k)
add
in interface ByteCollection
add
in class AbstractByteBigList
Collection.add(Object)
public void add(long index, byte k)
add
in interface ByteBigList
add
in class AbstractByteBigList
List.add(int,Object)
public boolean addAll(long index, Collection<? extends Byte> c)
BigList
addAll
in interface BigList<Byte>
addAll
in class AbstractByteBigList
index
- index at which to insert the first element from the specified collection.c
- collection containing elements to be added to this big list.
true
if this big list changed as a result of the callList.addAll(int, Collection)
public byte getByte(long index)
getByte
in interface ByteBigList
BigList.get(long)
public byte removeByte(long index)
removeByte
in interface ByteBigList
removeByte
in class AbstractByteBigList
BigList.remove(long)
public byte set(long index, byte k)
set
in interface ByteBigList
set
in class AbstractByteBigList
BigList.set(long,Object)
public void clear()
clear
in interface Collection<Byte>
clear
in class AbstractCollection<Byte>
public long size64()
Size64
size64
in interface Size64
public void getElements(long from, byte[][] a, long offset, long length)
AbstractByteBigList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements
in interface ByteBigList
getElements
in class AbstractByteBigList
from
- the start index (inclusive).a
- the destination big array.offset
- the offset into the destination big array where to store the first element copied.length
- the number of elements to be copied.public void removeElements(long from, long to)
AbstractByteBigList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements
in interface ByteBigList
removeElements
in class AbstractByteBigList
from
- the start index (inclusive).to
- the end index (exclusive).public void addElements(long index, byte[][] a, long offset, long length)
AbstractByteBigList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements
in interface ByteBigList
addElements
in class AbstractByteBigList
index
- the index at which to add elements.a
- the big array containing the elements.offset
- the offset of the first element to add.length
- the number of elements to add.public ByteBigListIterator listIterator(long index)
ByteBigList
listIterator
in interface BigList<Byte>
listIterator
in interface ByteBigList
listIterator
in class AbstractByteBigList
index
- index of first element to be returned from the big-list iterator.
BigList.listIterator(long)
public ByteBigList subList(long from, long to)
ByteBigList
from
, inclusive, to the index to
, exclusive.
Note that this specification strengthens the one given in BigList.subList(long,long)
.
subList
in interface BigList<Byte>
subList
in interface ByteBigList
subList
in class AbstractByteBigList
from
- the starting element (inclusive).to
- the ending element (exclusive).
BigList.subList(long,long)
public boolean rem(byte k)
ByteCollection
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 ByteCollection
rem
in class AbstractByteBigList
Collection.remove(Object)
public boolean remove(Object o)
AbstractByteCollection
rem()
method.
remove
in interface Collection<Byte>
remove
in class AbstractByteCollection
public boolean addAll(long index, ByteCollection c)
AbstractByteBigList
addAll
in interface ByteBigList
addAll
in class AbstractByteBigList
List.addAll(int,java.util.Collection)
public boolean addAll(long index, ByteList l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |