org.ddogleg.struct
Class GrowQueue_I64
- java.lang.Object
-
- org.ddogleg.struct.GrowQueue_I64
-
public class GrowQueue_I64 extends java.lang.ObjectThis is a queue that is composed of integers. Elements are added and removed from the tail
-
-
Constructor Summary
Constructors Constructor and Description GrowQueue_I64()GrowQueue_I64(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(long value)voidaddAll(GrowQueue_I64 queue)voidaddAll(long[] array, int startIndex, int endIndex)voidfill(long value)longget(int index)voidinsert(int index, long value)Inserts the value at the specified index and shifts all the other values down.longpop()voidpush(long val)voidremove(int index)longremoveTail()voidreset()voidresize(int size)voidset(int index, long value)voidsetMaxSize(int size)voidsetTo(GrowQueue_I64 original)intsize()longunsafe_get(int index)
-
-
-
Constructor Detail
-
GrowQueue_I64
public GrowQueue_I64(int maxSize)
-
GrowQueue_I64
public GrowQueue_I64()
-
-
Method Detail
-
reset
public void reset()
-
addAll
public void addAll(GrowQueue_I64 queue)
-
addAll
public void addAll(long[] array, int startIndex, int endIndex)
-
add
public void add(long value)
-
push
public void push(long val)
-
get
public long get(int index)
-
unsafe_get
public long unsafe_get(int index)
-
set
public void set(int index, long value)
-
setTo
public void setTo(GrowQueue_I64 original)
-
remove
public void remove(int index)
-
insert
public void insert(int index, long value)Inserts the value at the specified index and shifts all the other values down.
-
removeTail
public long removeTail()
-
resize
public void resize(int size)
-
fill
public void fill(long value)
-
setMaxSize
public void setMaxSize(int size)
-
size
public int size()
-
pop
public long pop()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG