KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > util > AbstractSequentialList

java.util
Class AbstractSequentialList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>
Direct Known Subclasses:
LinkedList
See Also:
Top Examples, Source Code

protected AbstractSequentialList()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void add(int index,
                E element)
See Also:
IndexOutOfBoundsException, IllegalArgumentException, ClassCastException, NullPointerException, UnsupportedOperationException, AbstractList, List
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void add(int index,
                Object element)
See Also:
IndexOutOfBoundsException, IllegalArgumentException, ClassCastException, NullPointerException, UnsupportedOperationException, AbstractList
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean addAll(int index,
                      Collection<? extends E> c)
See Also:
NullPointerException, IndexOutOfBoundsException, IllegalArgumentException, ClassCastException, UnsupportedOperationException, AbstractList, List
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public E get(int index)
See Also:
IndexOutOfBoundsException, AbstractList, List
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Iterator<E> iterator()
See Also:
AbstractList.modCount, List, Collection, Iterable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract ListIterator<E> listIterator(int index)
See Also:
AbstractList.modCount, List
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[704]Go through items in the ListIterator
By hamid on 2004/03/18 16:00:04  Rate
public boolean insert ( Comparable x )   {  
     ListIterator cur_pos; 
     ListIterator next; 
     if ( cur_pos.hasNext (  )  )  
       while ( x.compareTo (  ( Comparable ) cur_pos.next (  )  )  > 0 )  
         cur_pos=cur_pos.next; 
           if (  ( x.compareTo (  ( Comparable ) cur_pos.previous (  )  )  > 0 )  &&  ( x.compareTo (  ( Comparable ) cur_pos.next (  )  )  < 0 )  )  {  
         cur_pos.add ( x ) ; 
                     return true; 
        }  
      }  
 


public E remove(int index)
See Also:
IndexOutOfBoundsException, UnsupportedOperationException, AbstractList, List
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public E set(int index,
             E element)
See Also:
IllegalArgumentException, IndexOutOfBoundsException, ClassCastException, NullPointerException, UnsupportedOperationException, AbstractList, List
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object set(int index,
                  Object element)
See Also:
IllegalArgumentException, IndexOutOfBoundsException, ClassCastException, NullPointerException, UnsupportedOperationException, AbstractList
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags