E
- public class SortedIntList<E> extends java.lang.Object implements java.lang.Iterable<SortedIntList.Node<E>>
限定符和类型 | 类和说明 |
---|---|
static class |
SortedIntList.Node<E> |
构造器和说明 |
---|
SortedIntList()
Creates an ascending list
|
public E insert(int index, E value)
index
- Index of the elementvalue
- Element to insertpublic E get(int index)
index
- Index of the element to retrievepublic void clear()
public int size()
public java.util.Iterator<SortedIntList.Node<E>> iterator()
iterator
在接口中 java.lang.Iterable<SortedIntList.Node<E>>