public abstract class DynamicValueList
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
protected long |
defaultValue
The default value
|
protected long[] |
elementInts
The array buffer into which the elements of the DynamicValueList are stored.
|
限定符 | 构造器和说明 |
---|---|
protected |
DynamicValueList(long defaultValue)
Constructs an empty list with an initial capacity of ten.
|
protected |
DynamicValueList(long defaultValue,
int initialCapacity)
Constructs an empty list with the specified initial capacity.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone()
Clone
|
boolean |
equals(java.lang.Object o)
判断是否相等
|
protected long |
getDefaultLongValue() |
protected long |
getRangeLongValue(int fromIndex,
int toIndex) |
protected long |
getRangeLongValueExcludeHidden(int endIndex,
java.util.HashSet hidden) |
protected long |
getRangeLongValueExcludeHidden(int fromIndex,
int toIndex,
java.util.HashSet hidden) |
protected long |
getRangeLongValueFromZero(int endIndex) |
protected long |
getValue(int index)
Returns the value at the specified position in this list.
|
protected int |
getValueIndex(long value) |
protected int |
getValueIndex(long value,
int fromIndex) |
void |
insert(int index)
Inserts the default value at the specified position in this
list.
|
void |
insert(int index,
int count)
Inserts the default value at the specified position in this
list.
|
protected long |
removeValue(int index)
Removes the value at the specified position in this list.
|
void |
reset()
Reset with the default value.
|
protected void |
set(int index,
long intValue)
Replaces the value at the specified position in this list with
the specified value.
|
protected void |
setDefaultValue(long defaultValue) |
int |
size() |
protected long[] elementInts
protected long defaultValue
protected DynamicValueList(long defaultValue)
protected DynamicValueList(long defaultValue, int initialCapacity)
initialCapacity
- the initial capacity of the list.java.lang.IllegalArgumentException
- if the specified initial capacity
is negativeprotected long getDefaultLongValue()
protected void setDefaultValue(long defaultValue)
public int size()
protected long getValue(int index)
index
- index of element to return.protected void set(int index, long intValue)
index
- index of element to replace.intValue
- int value to be stored at the specified position.public void insert(int index)
index
- index at which the default value is to be inserted.public void insert(int index, int count)
index
- index at which the default value is to be inserted.count
- the count of inserted value..protected long removeValue(int index)
index
- the index of the value to removed.public void reset()
protected long getRangeLongValueFromZero(int endIndex)
protected long getRangeLongValueExcludeHidden(int endIndex, java.util.HashSet hidden)
protected long getRangeLongValue(int fromIndex, int toIndex)
protected long getRangeLongValueExcludeHidden(int fromIndex, int toIndex, java.util.HashSet hidden)
protected int getValueIndex(long value)
protected int getValueIndex(long value, int fromIndex)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object