public class IntList extends List
List but ignores objects except Integer objects and List objects that are not
purely made out of Integers.| Constructor and Description |
|---|
IntList() |
| Modifier and Type | Method and Description |
|---|---|
static int |
addValues(IntList ints)
Sums up all values of an IntList and returns the result.
|
void |
append(java.lang.Object o)
Adds the specified object to the end of the list.
|
void |
concat(List l)
Concatenates a specified list to the list.
|
void |
insert(java.lang.Object o)
If there is a currently selected object the specified element is added before it.
|
static int |
multiplyValues(IntList ints)
Multiplies all values of an IntList and returns the result.
|
void |
print()
Prints the whole IntList one Integer per line and moves the 'current' reference to the first entry.
|
void |
setObject(java.lang.Object o)
Replaces the content of the currently selected object with the specified content if there is any.
|
public void setObject(java.lang.Object o)
Listpublic void append(java.lang.Object o)
Listpublic void insert(java.lang.Object o)
Listpublic void concat(List l)
Listpublic void print()
public static int multiplyValues(IntList ints)
ints - any IntList.public static int addValues(IntList ints)
ints - any IntList.