|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList
databionics.util.IntegerList
public class IntegerList
LinkedList of Integers.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
IntegerList()
Standard constructor without arguments. |
|
IntegerList(java.util.Collection collection)
Constructor with a collection of objects. |
|
IntegerList(IntegerList list)
|
Method Summary | |
---|---|
IntegerList |
getDistinct()
Get IntegerList without duplicates. |
int |
getDistinctCount()
Get count of distinct numbers. |
int |
getFirstInt()
Get first number without casting. |
java.lang.Integer |
getFirstInteger()
Get first number without casting. |
int |
getInt(int index)
Get a number by index without casting. |
java.lang.Integer |
getInteger(int index)
Get a number by index without casting. |
int |
getLastInt()
Get last number without casting. |
java.lang.Integer |
getLastInteger()
Get last number without casting. |
java.lang.Integer |
getLeastFrequent()
Find least frequent number in list. |
int |
getMax()
Get maximum number in list. |
int |
getMin()
Get minimum number in list. |
java.lang.Integer |
getMostFrequent()
Find most frequent number in list. |
java.lang.String |
toString()
Get string representation, numbers seperated with space. |
StringList |
toStringList()
Get list of numbers as strings. |
Methods inherited from class java.util.LinkedList |
---|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
Methods inherited from class java.util.AbstractSequentialList |
---|
iterator |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, isEmpty, removeAll, retainAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public IntegerList()
public IntegerList(IntegerList list)
public IntegerList(java.util.Collection collection)
v
- Collection of objects.Method Detail |
---|
public java.lang.Integer getInteger(int index)
index
- Index of number in list
public int getInt(int index)
index
- Index of number in list
public java.lang.Integer getFirstInteger()
public int getFirstInt()
public java.lang.Integer getLastInteger()
public int getLastInt()
public java.lang.String toString()
toString
in class java.util.AbstractCollection
public StringList toStringList()
public java.lang.Integer getMostFrequent()
public java.lang.Integer getLeastFrequent()
public IntegerList getDistinct()
public int getDistinctCount()
public int getMin()
public int getMax()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |