Bouncy Castle Cryptography 1.29

java.util
Class Sublist

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Sublist
All Implemented Interfaces:
Collection, List

public class Sublist
extends AbstractList

Title: Description: Copyright: Copyright (c) 2001 Company:


Field Summary
 
Fields inherited from class java.util.AbstractList
al
 
Constructor Summary
Sublist(AbstractList ali, int fromIndex, int toIndex)
           
 
Method Summary
 void add(int index, java.lang.Object o)
           
 boolean addAll(Collection c)
           
 boolean addAll(int index, Collection c)
           
 java.lang.Object get(int index)
           
 java.lang.Object remove(int index, java.lang.Object o)
           
 void removeRange(int from, int to)
           
 java.lang.Object set(int index, java.lang.Object o)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, subList
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

Sublist

public Sublist(AbstractList ali,
               int fromIndex,
               int toIndex)
Method Detail

set

public java.lang.Object set(int index,
                            java.lang.Object o)
Specified by:
set in interface List
Overrides:
set in class AbstractList

get

public java.lang.Object get(int index)
                     throws java.lang.IndexOutOfBoundsException
Specified by:
get in interface List
Specified by:
get in class AbstractList
Throws:
java.lang.IndexOutOfBoundsException

add

public void add(int index,
                java.lang.Object o)
Specified by:
add in interface List
Overrides:
add in class AbstractList

remove

public java.lang.Object remove(int index,
                               java.lang.Object o)

addAll

public boolean addAll(int index,
                      Collection c)
Specified by:
addAll in interface List
Overrides:
addAll in class AbstractList

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Collection
Overrides:
addAll in class AbstractCollection

removeRange

public void removeRange(int from,
                        int to)
Overrides:
removeRange in class AbstractList

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in class AbstractCollection

Bouncy Castle Cryptography 1.29