ch.javasoft.util.intcoll
Class AbstractIntList
java.lang.Object
ch.javasoft.util.intcoll.AbstractIntCollection
ch.javasoft.util.intcoll.AbstractIntList
- All Implemented Interfaces:
- IntCollection, IntIterable, IntList, Cloneable, Iterable<Integer>, Collection<Integer>, List<Integer>
- Direct Known Subclasses:
- DefaultIntList
public abstract class AbstractIntList
- extends AbstractIntCollection
- implements IntList, Cloneable
| Methods inherited from class ch.javasoft.util.intcoll.AbstractIntCollection |
add, addAll, addAll, addAll, clone, contains, containsAll, equals, first, firstInt, hashCode, isEmpty, iterator, last, lastInt, remove, removeAll, retainAll, toArray, toArray, toArrayInternal, toIntArray, toIntArray, toIntArrayInternal, toString |
| Methods inherited from interface java.util.List |
add, addAll, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
AbstractIntList
public AbstractIntList()
AbstractIntList
public AbstractIntList(int[] values)
AbstractIntList
public AbstractIntList(IntCollection set)
addInt
public abstract boolean addInt(int index,
int value)
- Specified by:
addInt in interface IntList
getInt
public abstract int getInt(int index)
- Specified by:
getInt in interface IntList
setInt
public abstract int setInt(int index,
int value)
- Specified by:
setInt in interface IntList
clear
public abstract void clear()
- Specified by:
clear in interface Collection<Integer>- Specified by:
clear in interface List<Integer>- Specified by:
clear in class AbstractIntCollection
removeIntAt
public abstract int removeIntAt(int index)
- Specified by:
removeIntAt in interface IntList
size
public abstract int size()
- Specified by:
size in interface Collection<Integer>- Specified by:
size in interface List<Integer>- Specified by:
size in class AbstractIntCollection
subList
public abstract IntList subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface IntList- Specified by:
subList in interface List<Integer>
listIterator
public abstract IntListIterator listIterator(int index)
- Specified by:
listIterator in interface IntList- Specified by:
listIterator in interface List<Integer>
addInt
public boolean addInt(int value)
- Specified by:
addInt in interface IntCollection- Specified by:
addInt in class AbstractIntCollection
add
public void add(int index,
Integer element)
- Specified by:
add in interface List<Integer>
addAll
public boolean addAll(int index,
Collection<? extends Integer> c)
- Specified by:
addAll in interface List<Integer>
get
public Integer get(int index)
- Specified by:
get in interface List<Integer>
indexOfInt
public int indexOfInt(int value)
indexOf
public int indexOf(Object o)
- Specified by:
indexOf in interface List<Integer>
lastIndexOfInt
public int lastIndexOfInt(int value)
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf in interface List<Integer>
containsInt
public boolean containsInt(int value)
- Specified by:
containsInt in interface IntCollection- Specified by:
containsInt in interface IntList- Overrides:
containsInt in class AbstractIntCollection
remove
public Integer remove(int index)
- Specified by:
remove in interface List<Integer>
removeInt
public boolean removeInt(int value)
- Specified by:
removeInt in interface IntCollection- Specified by:
removeInt in class AbstractIntCollection
listIterator
public IntListIterator listIterator()
- Specified by:
listIterator in interface List<Integer>
intIterator
public IntIterator intIterator()
- Specified by:
intIterator in interface IntCollection- Specified by:
intIterator in interface IntIterable- Specified by:
intIterator in interface IntList- Specified by:
intIterator in class AbstractIntCollection
set
public Integer set(int index,
Integer element)
- Specified by:
set in interface List<Integer>