public final class

ArrayList1

extends AbstractList<E>
implements Cloneable List<E> RandomAccess
java.lang.Object
   ↳ java.util.AbstractCollection<E>
     ↳ java.util.AbstractList<E>
       ↳ com.pnfsoftware.jeb.util.collect.ArrayList1<E>

Class Overview

A list ideally suited to contain 0 or 1 element. If the list contains 2 or more elements, an ArrayList will be used; however, there is a high degree of certainty that the list contains 2+ elements, it is better to use an ArrayList instead.

Summary

[Expand]
Inherited Fields
From class java.util.AbstractList
Public Constructors
ArrayList1()
Public Methods
void add(int index, E element)
E get(int index)
E remove(int index)
E set(int index, E element)
int size()
[Expand]
Inherited Methods
From class java.util.AbstractList
From class java.util.AbstractCollection
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.List

Public Constructors

public ArrayList1 ()

Public Methods

public void add (int index, E element)

public E get (int index)

public E remove (int index)

public E set (int index, E element)

public int size ()