|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectml.shifu.guagua.util.MemoryLimitedList<T>
public class MemoryLimitedList<T>
A simple wrapper list with limited byte size.
Only two stages support in such kind of list. The first one is WRITE, the next is read. So far random WRITE and READ are not supported in this list.
If current size is over limited size, a GuaguaRuntimeException is added when #add(Object).
| 嵌套类摘要 |
|---|
| 从接口 ml.shifu.guagua.util.AppendList 继承的嵌套类/接口 |
|---|
AppendList.State |
| 构造方法摘要 | |
|---|---|
MemoryLimitedList(List<T> delegationList)
Constructor with delegation list |
|
MemoryLimitedList(long maxSize,
List<T> delegationList)
Constructor with max bytes size limit and delegation list. |
|
| 方法摘要 | |
|---|---|
boolean |
append(T t)
Append object to this list |
void |
clear()
Clear all elements. |
Iterator<T> |
iterator()
|
long |
size()
Return size of this list. |
void |
switchState()
After appending, switch state from WRITE to READ to allow iterating. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public MemoryLimitedList(long maxSize,
List<T> delegationList)
public MemoryLimitedList(List<T> delegationList)
| 方法详细信息 |
|---|
public boolean append(T t)
AppendList 复制的描述
AppendList<T> 中的 appendt - the object to append
public Iterator<T> iterator()
Iterable<T> 中的 iteratorpublic void switchState()
AppendList 复制的描述
AppendList<T> 中的 switchStatepublic long size()
AppendList 复制的描述
AppendList<T> 中的 sizepublic void clear()
AppendList 复制的描述
AppendList<T> 中的 clear
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||