public class IntList extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IntList.IntIterator
to iterate on the content of the list
not an actual iterator to avoid autoboxing
|
| Constructor and Description |
|---|
IntList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int i) |
IntList.IntIterator |
iterator()
(not an actual Iterable)
|
int |
size() |
public void add(int i)
i - value to append to the end of the listpublic IntList.IntIterator iterator()
public int size()
Copyright © 2019 The Apache Software Foundation. All rights reserved.