it.unimi.dsi.fastutil
Class Lists.EmptyList

java.lang.Object
  extended byit.unimi.dsi.fastutil.objects.AbstractObjectCollection
      extended byit.unimi.dsi.fastutil.Collections.EmptyCollection
          extended byit.unimi.dsi.fastutil.Lists.EmptyList
All Implemented Interfaces:
BooleanCollection, BooleanList, ByteCollection, ByteList, CharCollection, CharList, Cloneable, Collection, Comparable, DoubleCollection, DoubleList, FloatCollection, FloatList, IntCollection, IntList, List, LongCollection, LongList, ObjectCollection, ObjectList, ReferenceCollection, ReferenceList, Serializable, ShortCollection, ShortList
Enclosing class:
Lists

public static class Lists.EmptyList
extends Collections.EmptyCollection
implements BooleanList, ByteList, ShortList, IntList, LongList, CharList, FloatList, DoubleList, ObjectList, ReferenceList, Serializable, Cloneable

An immutable class representing the empty list and implementing all type-specific list interfaces.

This class may be useful to implement your own in case you subclass a type-specific list.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Method Summary
 boolean add(boolean k)
           
 boolean add(byte k)
           
 boolean add(char k)
           
 boolean add(double k)
           
 boolean add(float k)
           
 boolean add(int k)
           
 void add(int i, boolean k)
           
 void add(int i, byte k)
           
 void add(int i, char k)
           
 void add(int i, double k)
           
 void add(int i, float k)
           
 void add(int i, int k)
           
 void add(int i, long k)
           
 void add(int i, Object k)
           
 void add(int i, short k)
           
 boolean add(long k)
           
 boolean add(Object k)
           
 boolean add(short k)
           
 boolean addAll(int i, BooleanCollection c)
           
 boolean addAll(int i, BooleanList c)
           
 boolean addAll(int i, ByteCollection c)
           
 boolean addAll(int i, ByteList c)
           
 boolean addAll(int i, CharCollection c)
           
 boolean addAll(int i, CharList c)
           
 boolean addAll(int i, Collection c)
           
 boolean addAll(int i, DoubleCollection c)
           
 boolean addAll(int i, DoubleList c)
           
 boolean addAll(int i, FloatCollection c)
           
 boolean addAll(int i, FloatList c)
           
 boolean addAll(int i, IntCollection c)
           
 boolean addAll(int i, IntList c)
           
 boolean addAll(int i, List c)
           
 boolean addAll(int i, LongCollection c)
           
 boolean addAll(int i, LongList c)
           
 boolean addAll(int i, ShortCollection c)
           
 boolean addAll(int i, ShortList c)
           
 void addElements(int index, boolean[] a)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, boolean[] a, int offset, int length)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, byte[] a)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, byte[] a, int offset, int length)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, char[] a)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, char[] a, int offset, int length)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, double[] a)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, double[] a, int offset, int length)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, float[] a)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, float[] a, int offset, int length)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, int[] a)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, int[] a, int offset, int length)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, long[] a)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, long[] a, int offset, int length)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, Object[] a)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, Object[] a, int offset, int length)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, short[] a)
          Add (hopefully quickly) elements to this type-specific list.
 void addElements(int index, short[] a, int offset, int length)
          Add (hopefully quickly) elements to this type-specific list.
 BooleanListIterator booleanListIterator()
          Returns a type-specific list iterator on the list.
 BooleanListIterator booleanListIterator(int i)
          Returns a type-specific list iterator on the list starting at a given index.
 BooleanList booleanSubList(int from, int to)
           
 ByteListIterator byteListIterator()
          Returns a type-specific list iterator on the list.
 ByteListIterator byteListIterator(int i)
          Returns a type-specific list iterator on the list starting at a given index.
 ByteList byteSubList(int from, int to)
           
 CharListIterator charListIterator()
          Returns a type-specific list iterator on the list.
 CharListIterator charListIterator(int i)
          Returns a type-specific list iterator on the list starting at a given index.
 CharList charSubList(int from, int to)
           
 Object clone()
           
 int compareTo(Object o)
           
 DoubleListIterator doubleListIterator()
          Returns a type-specific list iterator on the list.
 DoubleListIterator doubleListIterator(int i)
          Returns a type-specific list iterator on the list starting at a given index.
 DoubleList doubleSubList(int from, int to)
           
 FloatListIterator floatListIterator()
          Returns a type-specific list iterator on the list.
 FloatListIterator floatListIterator(int i)
          Returns a type-specific list iterator on the list starting at a given index.
 FloatList floatSubList(int from, int to)
           
 Object get(int i)
           
 boolean getBoolean(int i)
           
 byte getByte(int i)
           
 char getChar(int i)
           
 double getDouble(int i)
           
 void getElements(int from, boolean[] a, int offset, int length)
          Copies (hopefully quickly) elements of this type-specific list into the given array.
 void getElements(int from, byte[] a, int offset, int length)
          Copies (hopefully quickly) elements of this type-specific list into the given array.
 void getElements(int from, char[] a, int offset, int length)
          Copies (hopefully quickly) elements of this type-specific list into the given array.
 void getElements(int from, double[] a, int offset, int length)
          Copies (hopefully quickly) elements of this type-specific list into the given array.
 void getElements(int from, float[] a, int offset, int length)
          Copies (hopefully quickly) elements of this type-specific list into the given array.
 void getElements(int from, int[] a, int offset, int length)
          Copies (hopefully quickly) elements of this type-specific list into the given array.
 void getElements(int from, long[] a, int offset, int length)
          Copies (hopefully quickly) elements of this type-specific list into the given array.
 void getElements(int from, Object[] a, int offset, int length)
          Copies (hopefully quickly) elements of this type-specific list into the given array.
 void getElements(int from, short[] a, int offset, int length)
          Copies (hopefully quickly) elements of this type-specific list into the given array.
 float getFloat(int i)
           
 int getInt(int i)
           
 long getLong(int i)
           
 short getShort(int i)
           
 int indexOf(boolean k)
           
 int indexOf(byte k)
           
 int indexOf(char k)
           
 int indexOf(double k)
           
 int indexOf(float k)
           
 int indexOf(int k)
           
 int indexOf(long k)
           
 int indexOf(Object k)
           
 int indexOf(short k)
           
 IntListIterator intListIterator()
          Returns a type-specific list iterator on the list.
 IntListIterator intListIterator(int i)
          Returns a type-specific list iterator on the list starting at a given index.
 IntList intSubList(int from, int to)
           
 ByteBidirectionalIterator iterator(int i)
           
 int lastIndexOf(boolean k)
           
 int lastIndexOf(byte k)
           
 int lastIndexOf(char k)
           
 int lastIndexOf(double k)
           
 int lastIndexOf(float k)
           
 int lastIndexOf(int k)
           
 int lastIndexOf(long k)
           
 int lastIndexOf(Object k)
           
 int lastIndexOf(short k)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int i)
           
 LongListIterator longListIterator()
          Returns a type-specific list iterator on the list.
 LongListIterator longListIterator(int i)
          Returns a type-specific list iterator on the list starting at a given index.
 LongList longSubList(int from, int to)
           
 ObjectListIterator objectListIterator()
          Returns a type-specific list iterator on the list.
 ObjectListIterator objectListIterator(int i)
          Returns a type-specific list iterator on the list starting at a given index.
 ObjectList objectSubList(int from, int to)
           
 ObjectListIterator referenceListIterator()
           
 ReferenceList referenceSubList(int from, int to)
           
 Object remove(int k)
           
 boolean remove(Object k)
           
 boolean removeBoolean(int k)
           
 byte removeByte(int k)
           
 char removeChar(int k)
           
 double removeDouble(int k)
           
 void removeElements(int from, int to)
          Removes (hopefully quickly) elements of this type-specific list.
 float removeFloat(int k)
           
 int removeInt(int k)
           
 long removeLong(int k)
           
 short removeShort(int k)
           
 boolean set(int i, boolean k)
           
 byte set(int i, byte k)
           
 char set(int i, char k)
           
 double set(int i, double k)
           
 float set(int i, float k)
           
 int set(int i, int k)
           
 long set(int i, long k)
           
 Object set(int i, Object k)
           
 short set(int i, short k)
           
 ShortListIterator shortListIterator()
          Returns a type-specific list iterator on the list.
 ShortListIterator shortListIterator(int i)
          Returns a type-specific list iterator on the list starting at a given index.
 ShortList shortSubList(int from, int to)
           
 void size(int s)
          Sets the size of this list.
 List subList(int from, int to)
           
 
Methods inherited from class it.unimi.dsi.fastutil.Collections.EmptyCollection
addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, booleanIterator, byteIterator, charIterator, clear, contains, contains, contains, contains, contains, contains, contains, contains, contains, containsAll, containsAll, containsAll, containsAll, containsAll, containsAll, containsAll, containsAll, doubleIterator, equals, floatIterator, hashCode, intIterator, iterator, longIterator, objectIterator, referenceIterator, rem, rem, rem, rem, rem, rem, rem, rem, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, retainAll, retainAll, retainAll, retainAll, retainAll, retainAll, retainAll, retainAll, shortIterator, size, toArray, toArray, toArray, toArray, toArray, toArray, toArray, toArray, toArray, toBooleanArray, toBooleanArray, toByteArray, toByteArray, toCharArray, toCharArray, toDoubleArray, toDoubleArray, toFloatArray, toFloatArray, toIntArray, toIntArray, toLongArray, toLongArray, toShortArray, toShortArray
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection
addAll, containsAll, isEmpty, rem, removeAll, retainAll, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanList
addAll
 
Methods inherited from interface java.util.List
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanCollection
addAll, booleanIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toBooleanArray, toBooleanArray
 
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteList
addAll
 
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection
addAll, byteIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toByteArray, toByteArray
 
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortList
addAll
 
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortCollection
addAll, contains, containsAll, rem, removeAll, retainAll, shortIterator, toArray, toShortArray, toShortArray
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntList
addAll
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntCollection
addAll, contains, containsAll, intIterator, rem, removeAll, retainAll, toArray, toIntArray, toIntArray
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongList
addAll
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection
addAll, contains, containsAll, longIterator, rem, removeAll, retainAll, toArray, toLongArray, toLongArray
 
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharList
addAll
 
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection
addAll, charIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toCharArray, toCharArray
 
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatList
addAll
 
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection
addAll, contains, containsAll, floatIterator, rem, removeAll, retainAll, toArray, toFloatArray, toFloatArray
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleList
addAll
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleCollection
addAll, contains, containsAll, doubleIterator, rem, removeAll, retainAll, toArray, toDoubleArray, toDoubleArray
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectCollection
objectIterator
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceCollection
objectIterator
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

add

public boolean add(Object k)
Specified by:
add in interface List
Overrides:
add in class AbstractObjectCollection

remove

public boolean remove(Object k)
Specified by:
remove in interface List
Overrides:
remove in class AbstractObjectCollection

add

public boolean add(boolean k)
Specified by:
add in interface BooleanCollection
Overrides:
add in class Collections.EmptyCollection

add

public boolean add(byte k)
Specified by:
add in interface ByteCollection
Overrides:
add in class Collections.EmptyCollection

add

public boolean add(char k)
Specified by:
add in interface CharCollection
Overrides:
add in class Collections.EmptyCollection

add

public boolean add(short k)
Specified by:
add in interface ShortCollection
Overrides:
add in class Collections.EmptyCollection

add

public boolean add(int k)
Specified by:
add in interface IntCollection
Overrides:
add in class Collections.EmptyCollection

add

public boolean add(long k)
Specified by:
add in interface LongCollection
Overrides:
add in class Collections.EmptyCollection

add

public boolean add(float k)
Specified by:
add in interface FloatCollection
Overrides:
add in class Collections.EmptyCollection

add

public boolean add(double k)
Specified by:
add in interface DoubleCollection
Overrides:
add in class Collections.EmptyCollection

add

public void add(int i,
                Object k)
Specified by:
add in interface List

add

public void add(int i,
                boolean k)
Specified by:
add in interface BooleanList
See Also:
List.add(int,Object)

add

public void add(int i,
                byte k)
Specified by:
add in interface ByteList
See Also:
List.add(int,Object)

add

public void add(int i,
                char k)
Specified by:
add in interface CharList
See Also:
List.add(int,Object)

add

public void add(int i,
                short k)
Specified by:
add in interface ShortList
See Also:
List.add(int,Object)

add

public void add(int i,
                int k)
Specified by:
add in interface IntList
See Also:
List.add(int,Object)

add

public void add(int i,
                long k)
Specified by:
add in interface LongList
See Also:
List.add(int,Object)

add

public void add(int i,
                float k)
Specified by:
add in interface FloatList
See Also:
List.add(int,Object)

add

public void add(int i,
                double k)
Specified by:
add in interface DoubleList
See Also:
List.add(int,Object)

set

public Object set(int i,
                  Object k)
Specified by:
set in interface List

set

public boolean set(int i,
                   boolean k)
Specified by:
set in interface BooleanList
See Also:
List.set(int,Object)

set

public byte set(int i,
                byte k)
Specified by:
set in interface ByteList
See Also:
List.set(int,Object)

set

public char set(int i,
                char k)
Specified by:
set in interface CharList
See Also:
List.set(int,Object)

set

public short set(int i,
                 short k)
Specified by:
set in interface ShortList
See Also:
List.set(int,Object)

set

public int set(int i,
               int k)
Specified by:
set in interface IntList
See Also:
List.set(int,Object)

set

public long set(int i,
                long k)
Specified by:
set in interface LongList
See Also:
List.set(int,Object)

set

public float set(int i,
                 float k)
Specified by:
set in interface FloatList
See Also:
List.set(int,Object)

set

public double set(int i,
                  double k)
Specified by:
set in interface DoubleList
See Also:
List.set(int,Object)

get

public Object get(int i)
Specified by:
get in interface List

getBoolean

public boolean getBoolean(int i)
Specified by:
getBoolean in interface BooleanList
See Also:
List.get(int)

getByte

public byte getByte(int i)
Specified by:
getByte in interface ByteList
See Also:
List.get(int)

getChar

public char getChar(int i)
Specified by:
getChar in interface CharList
See Also:
List.get(int)

getShort

public short getShort(int i)
Specified by:
getShort in interface ShortList
See Also:
List.get(int)

getInt

public int getInt(int i)
Specified by:
getInt in interface IntList
See Also:
List.get(int)

getLong

public long getLong(int i)
Specified by:
getLong in interface LongList
See Also:
List.get(int)

getFloat

public float getFloat(int i)
Specified by:
getFloat in interface FloatList
See Also:
List.get(int)

getDouble

public double getDouble(int i)
Specified by:
getDouble in interface DoubleList
See Also:
List.get(int)

indexOf

public int indexOf(Object k)
Specified by:
indexOf in interface List

indexOf

public int indexOf(boolean k)
Specified by:
indexOf in interface BooleanList
See Also:
List.indexOf(Object)

indexOf

public int indexOf(byte k)
Specified by:
indexOf in interface ByteList
See Also:
List.indexOf(Object)

indexOf

public int indexOf(char k)
Specified by:
indexOf in interface CharList
See Also:
List.indexOf(Object)

indexOf

public int indexOf(short k)
Specified by:
indexOf in interface ShortList
See Also:
List.indexOf(Object)

indexOf

public int indexOf(int k)
Specified by:
indexOf in interface IntList
See Also:
List.indexOf(Object)

indexOf

public int indexOf(long k)
Specified by:
indexOf in interface LongList
See Also:
List.indexOf(Object)

indexOf

public int indexOf(float k)
Specified by:
indexOf in interface FloatList
See Also:
List.indexOf(Object)

indexOf

public int indexOf(double k)
Specified by:
indexOf in interface DoubleList
See Also:
List.indexOf(Object)

lastIndexOf

public int lastIndexOf(Object k)
Specified by:
lastIndexOf in interface List

lastIndexOf

public int lastIndexOf(boolean k)
Specified by:
lastIndexOf in interface BooleanList
See Also:
List.lastIndexOf(Object)

lastIndexOf

public int lastIndexOf(byte k)
Specified by:
lastIndexOf in interface ByteList
See Also:
List.lastIndexOf(Object)

lastIndexOf

public int lastIndexOf(char k)
Specified by:
lastIndexOf in interface CharList
See Also:
List.lastIndexOf(Object)

lastIndexOf

public int lastIndexOf(short k)
Specified by:
lastIndexOf in interface ShortList
See Also:
List.lastIndexOf(Object)

lastIndexOf

public int lastIndexOf(int k)
Specified by:
lastIndexOf in interface IntList
See Also:
List.lastIndexOf(Object)

lastIndexOf

public int lastIndexOf(long k)
Specified by:
lastIndexOf in interface LongList
See Also:
List.lastIndexOf(Object)

lastIndexOf

public int lastIndexOf(float k)
Specified by:
lastIndexOf in interface FloatList
See Also:
List.lastIndexOf(Object)

lastIndexOf

public int lastIndexOf(double k)
Specified by:
lastIndexOf in interface DoubleList
See Also:
List.lastIndexOf(Object)

addAll

public boolean addAll(int i,
                      Collection c)
Specified by:
addAll in interface List

addAll

public boolean addAll(int i,
                      BooleanCollection c)
Specified by:
addAll in interface BooleanList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      ByteCollection c)
Specified by:
addAll in interface ByteList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      CharCollection c)
Specified by:
addAll in interface CharList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      ShortCollection c)
Specified by:
addAll in interface ShortList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      IntCollection c)
Specified by:
addAll in interface IntList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      LongCollection c)
Specified by:
addAll in interface LongList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      FloatCollection c)
Specified by:
addAll in interface FloatList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      DoubleCollection c)
Specified by:
addAll in interface DoubleList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      List c)

addAll

public boolean addAll(int i,
                      BooleanList c)
Specified by:
addAll in interface BooleanList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      ByteList c)
Specified by:
addAll in interface ByteList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      CharList c)
Specified by:
addAll in interface CharList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      ShortList c)
Specified by:
addAll in interface ShortList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      IntList c)
Specified by:
addAll in interface IntList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      LongList c)
Specified by:
addAll in interface LongList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      FloatList c)
Specified by:
addAll in interface FloatList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int i,
                      DoubleList c)
Specified by:
addAll in interface DoubleList
See Also:
List.add(int,Object)

remove

public Object remove(int k)
Specified by:
remove in interface List

removeBoolean

public boolean removeBoolean(int k)
Specified by:
removeBoolean in interface BooleanList
See Also:
List.remove(int)

removeByte

public byte removeByte(int k)
Specified by:
removeByte in interface ByteList
See Also:
List.remove(int)

removeChar

public char removeChar(int k)
Specified by:
removeChar in interface CharList
See Also:
List.remove(int)

removeShort

public short removeShort(int k)
Specified by:
removeShort in interface ShortList
See Also:
List.remove(int)

removeInt

public int removeInt(int k)
Specified by:
removeInt in interface IntList
See Also:
List.remove(int)

removeLong

public long removeLong(int k)
Specified by:
removeLong in interface LongList
See Also:
List.remove(int)

removeFloat

public float removeFloat(int k)
Specified by:
removeFloat in interface FloatList
See Also:
List.remove(int)

removeDouble

public double removeDouble(int k)
Specified by:
removeDouble in interface DoubleList
See Also:
List.remove(int)

iterator

public ByteBidirectionalIterator iterator(int i)

booleanListIterator

public BooleanListIterator booleanListIterator()
Description copied from interface: BooleanList
Returns a type-specific list iterator on the list.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
booleanListIterator in interface BooleanList
See Also:
List.listIterator()

byteListIterator

public ByteListIterator byteListIterator()
Description copied from interface: ByteList
Returns a type-specific list iterator on the list.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
byteListIterator in interface ByteList
See Also:
List.listIterator()

charListIterator

public CharListIterator charListIterator()
Description copied from interface: CharList
Returns a type-specific list iterator on the list.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
charListIterator in interface CharList
See Also:
List.listIterator()

shortListIterator

public ShortListIterator shortListIterator()
Description copied from interface: ShortList
Returns a type-specific list iterator on the list.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
shortListIterator in interface ShortList
See Also:
List.listIterator()

intListIterator

public IntListIterator intListIterator()
Description copied from interface: IntList
Returns a type-specific list iterator on the list.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
intListIterator in interface IntList
See Also:
List.listIterator()

longListIterator

public LongListIterator longListIterator()
Description copied from interface: LongList
Returns a type-specific list iterator on the list.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
longListIterator in interface LongList
See Also:
List.listIterator()

floatListIterator

public FloatListIterator floatListIterator()
Description copied from interface: FloatList
Returns a type-specific list iterator on the list.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
floatListIterator in interface FloatList
See Also:
List.listIterator()

doubleListIterator

public DoubleListIterator doubleListIterator()
Description copied from interface: DoubleList
Returns a type-specific list iterator on the list.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
doubleListIterator in interface DoubleList
See Also:
List.listIterator()

objectListIterator

public ObjectListIterator objectListIterator()
Description copied from interface: ObjectList
Returns a type-specific list iterator on the list.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
objectListIterator in interface ObjectList
See Also:
List.listIterator()

referenceListIterator

public ObjectListIterator referenceListIterator()

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator(int i)
Specified by:
listIterator in interface List

booleanListIterator

public BooleanListIterator booleanListIterator(int i)
Description copied from interface: BooleanList
Returns a type-specific list iterator on the list starting at a given index.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
booleanListIterator in interface BooleanList
See Also:
List.listIterator(int)

byteListIterator

public ByteListIterator byteListIterator(int i)
Description copied from interface: ByteList
Returns a type-specific list iterator on the list starting at a given index.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
byteListIterator in interface ByteList
See Also:
List.listIterator(int)

charListIterator

public CharListIterator charListIterator(int i)
Description copied from interface: CharList
Returns a type-specific list iterator on the list starting at a given index.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
charListIterator in interface CharList
See Also:
List.listIterator(int)

shortListIterator

public ShortListIterator shortListIterator(int i)
Description copied from interface: ShortList
Returns a type-specific list iterator on the list starting at a given index.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
shortListIterator in interface ShortList
See Also:
List.listIterator(int)

intListIterator

public IntListIterator intListIterator(int i)
Description copied from interface: IntList
Returns a type-specific list iterator on the list starting at a given index.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
intListIterator in interface IntList
See Also:
List.listIterator(int)

longListIterator

public LongListIterator longListIterator(int i)
Description copied from interface: LongList
Returns a type-specific list iterator on the list starting at a given index.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
longListIterator in interface LongList
See Also:
List.listIterator(int)

floatListIterator

public FloatListIterator floatListIterator(int i)
Description copied from interface: FloatList
Returns a type-specific list iterator on the list starting at a given index.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
floatListIterator in interface FloatList
See Also:
List.listIterator(int)

doubleListIterator

public DoubleListIterator doubleListIterator(int i)
Description copied from interface: DoubleList
Returns a type-specific list iterator on the list starting at a given index.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
doubleListIterator in interface DoubleList
See Also:
List.listIterator(int)

objectListIterator

public ObjectListIterator objectListIterator(int i)
Description copied from interface: ObjectList
Returns a type-specific list iterator on the list starting at a given index.

The iterator returned by the List.listIterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
objectListIterator in interface ObjectList
See Also:
List.listIterator(int)

subList

public List subList(int from,
                    int to)
Specified by:
subList in interface List

booleanSubList

public BooleanList booleanSubList(int from,
                                  int to)
Specified by:
booleanSubList in interface BooleanList
See Also:
List.subList(int,int)

byteSubList

public ByteList byteSubList(int from,
                            int to)
Specified by:
byteSubList in interface ByteList
See Also:
List.subList(int,int)

charSubList

public CharList charSubList(int from,
                            int to)
Specified by:
charSubList in interface CharList
See Also:
List.subList(int,int)

shortSubList

public ShortList shortSubList(int from,
                              int to)
Specified by:
shortSubList in interface ShortList
See Also:
List.subList(int,int)

intSubList

public IntList intSubList(int from,
                          int to)
Specified by:
intSubList in interface IntList
See Also:
List.subList(int,int)

longSubList

public LongList longSubList(int from,
                            int to)
Specified by:
longSubList in interface LongList
See Also:
List.subList(int,int)

floatSubList

public FloatList floatSubList(int from,
                              int to)
Specified by:
floatSubList in interface FloatList
See Also:
List.subList(int,int)

doubleSubList

public DoubleList doubleSubList(int from,
                                int to)
Specified by:
doubleSubList in interface DoubleList
See Also:
List.subList(int,int)

objectSubList

public ObjectList objectSubList(int from,
                                int to)
Specified by:
objectSubList in interface ObjectList
See Also:
List.subList(int,int)

referenceSubList

public ReferenceList referenceSubList(int from,
                                      int to)
Specified by:
referenceSubList in interface ReferenceList
See Also:
List.subList(int,int)

getElements

public void getElements(int from,
                        boolean[] a,
                        int offset,
                        int length)
Description copied from interface: BooleanList
Copies (hopefully quickly) elements of this type-specific list into the given array.

Specified by:
getElements in interface BooleanList
Parameters:
from - the start index (inclusive).
a - the destination array.
offset - the offset into the destination array where to store the first element copied.
length - the number of elements to be copied.

getElements

public void getElements(int from,
                        byte[] a,
                        int offset,
                        int length)
Description copied from interface: ByteList
Copies (hopefully quickly) elements of this type-specific list into the given array.

Specified by:
getElements in interface ByteList
Parameters:
from - the start index (inclusive).
a - the destination array.
offset - the offset into the destination array where to store the first element copied.
length - the number of elements to be copied.

getElements

public void getElements(int from,
                        char[] a,
                        int offset,
                        int length)
Description copied from interface: CharList
Copies (hopefully quickly) elements of this type-specific list into the given array.

Specified by:
getElements in interface CharList
Parameters:
from - the start index (inclusive).
a - the destination array.
offset - the offset into the destination array where to store the first element copied.
length - the number of elements to be copied.

getElements

public void getElements(int from,
                        short[] a,
                        int offset,
                        int length)
Description copied from interface: ShortList
Copies (hopefully quickly) elements of this type-specific list into the given array.

Specified by:
getElements in interface ShortList
Parameters:
from - the start index (inclusive).
a - the destination array.
offset - the offset into the destination array where to store the first element copied.
length - the number of elements to be copied.

getElements

public void getElements(int from,
                        int[] a,
                        int offset,
                        int length)
Description copied from interface: IntList
Copies (hopefully quickly) elements of this type-specific list into the given array.

Specified by:
getElements in interface IntList
Parameters:
from - the start index (inclusive).
a - the destination array.
offset - the offset into the destination array where to store the first element copied.
length - the number of elements to be copied.

getElements

public void getElements(int from,
                        long[] a,
                        int offset,
                        int length)
Description copied from interface: LongList
Copies (hopefully quickly) elements of this type-specific list into the given array.

Specified by:
getElements in interface LongList
Parameters:
from - the start index (inclusive).
a - the destination array.
offset - the offset into the destination array where to store the first element copied.
length - the number of elements to be copied.

getElements

public void getElements(int from,
                        float[] a,
                        int offset,
                        int length)
Description copied from interface: FloatList
Copies (hopefully quickly) elements of this type-specific list into the given array.

Specified by:
getElements in interface FloatList
Parameters:
from - the start index (inclusive).
a - the destination array.
offset - the offset into the destination array where to store the first element copied.
length - the number of elements to be copied.

getElements

public void getElements(int from,
                        double[] a,
                        int offset,
                        int length)
Description copied from interface: DoubleList
Copies (hopefully quickly) elements of this type-specific list into the given array.

Specified by:
getElements in interface DoubleList
Parameters:
from - the start index (inclusive).
a - the destination array.
offset - the offset into the destination array where to store the first element copied.
length - the number of elements to be copied.

getElements

public void getElements(int from,
                        Object[] a,
                        int offset,
                        int length)
Description copied from interface: ObjectList
Copies (hopefully quickly) elements of this type-specific list into the given array.

Specified by:
getElements in interface ObjectList
Parameters:
from - the start index (inclusive).
a - the destination array.
offset - the offset into the destination array where to store the first element copied.
length - the number of elements to be copied.

removeElements

public void removeElements(int from,
                           int to)
Description copied from interface: BooleanList
Removes (hopefully quickly) elements of this type-specific list.

Specified by:
removeElements in interface BooleanList
Parameters:
from - the start index (inclusive).
to - the end index (exclusive).

addElements

public void addElements(int index,
                        boolean[] a,
                        int offset,
                        int length)
Description copied from interface: BooleanList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface BooleanList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.
offset - the offset of the first element to add.
length - the number of elements to add.

addElements

public void addElements(int index,
                        boolean[] a)
Description copied from interface: BooleanList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface BooleanList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.

addElements

public void addElements(int index,
                        byte[] a,
                        int offset,
                        int length)
Description copied from interface: ByteList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface ByteList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.
offset - the offset of the first element to add.
length - the number of elements to add.

addElements

public void addElements(int index,
                        byte[] a)
Description copied from interface: ByteList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface ByteList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.

addElements

public void addElements(int index,
                        char[] a,
                        int offset,
                        int length)
Description copied from interface: CharList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface CharList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.
offset - the offset of the first element to add.
length - the number of elements to add.

addElements

public void addElements(int index,
                        char[] a)
Description copied from interface: CharList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface CharList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.

addElements

public void addElements(int index,
                        short[] a,
                        int offset,
                        int length)
Description copied from interface: ShortList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface ShortList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.
offset - the offset of the first element to add.
length - the number of elements to add.

addElements

public void addElements(int index,
                        short[] a)
Description copied from interface: ShortList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface ShortList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.

addElements

public void addElements(int index,
                        int[] a,
                        int offset,
                        int length)
Description copied from interface: IntList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface IntList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.
offset - the offset of the first element to add.
length - the number of elements to add.

addElements

public void addElements(int index,
                        int[] a)
Description copied from interface: IntList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface IntList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.

addElements

public void addElements(int index,
                        long[] a,
                        int offset,
                        int length)
Description copied from interface: LongList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface LongList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.
offset - the offset of the first element to add.
length - the number of elements to add.

addElements

public void addElements(int index,
                        long[] a)
Description copied from interface: LongList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface LongList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.

addElements

public void addElements(int index,
                        float[] a,
                        int offset,
                        int length)
Description copied from interface: FloatList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface FloatList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.
offset - the offset of the first element to add.
length - the number of elements to add.

addElements

public void addElements(int index,
                        float[] a)
Description copied from interface: FloatList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface FloatList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.

addElements

public void addElements(int index,
                        double[] a,
                        int offset,
                        int length)
Description copied from interface: DoubleList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface DoubleList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.
offset - the offset of the first element to add.
length - the number of elements to add.

addElements

public void addElements(int index,
                        double[] a)
Description copied from interface: DoubleList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface DoubleList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.

addElements

public void addElements(int index,
                        Object[] a,
                        int offset,
                        int length)
Description copied from interface: ObjectList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface ObjectList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.
offset - the offset of the first element to add.
length - the number of elements to add.

addElements

public void addElements(int index,
                        Object[] a)
Description copied from interface: ObjectList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface ObjectList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.

size

public void size(int s)
Description copied from interface: BooleanList
Sets the size of this list.

If the specified size is smaller than the current size, the last elements are discarded. Otherwise, they are filled with 0/null/false.

Specified by:
size in interface BooleanList
Parameters:
s - the new size.

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

clone

public Object clone()