|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface List
| Method Summary | |
|---|---|
void |
add(int index,
Object element)
|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
Object |
get(int index)
|
int |
hashCode()
Returns a hash code value for the object. |
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
int |
size()
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
| Method Detail |
|---|
void add(int index,
Object element)
boolean add(Object o)
add in interface Collectionboolean addAll(Collection c)
addAll in interface Collection
boolean addAll(int index,
Collection c)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionvoid clear()
clear in interface Collectionboolean contains(Object o)
contains in interface Collection
boolean containsAll(Collection c)
throws NullPointerException
containsAll in interface CollectionNullPointerExceptionboolean equals(Object o)
Object
The equals method implements an equivalence relation:
x,
x.equals(x) should return true.
x and
y, x.equals(y) should return
true if and only if y.equals(x) returns
true.
x,
y, and z, if x.equals(y)
returns true and y.equals(z) returns
true, then x.equals(z) should return
true.
x
and y, multiple invocations of x.equals(y)
consistently return true or consistently return
false, provided no information used in
equals comparisons on the object is modified.
x,
x.equals(null) should return false.
The equals method for class Object implements
the most discriminating possible equivalence relation on objects;
that is, for any reference values x and y,
this method returns true if and only if x and
y refer to the same object (x==y has the
value true).
equals in interface Collectionequals in class Objecto - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.Boolean.hashCode(),
Hashtable
Object get(int index)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionint hashCode()
Objectjava.util.Hashtable.
The general contract of hashCode is:
hashCode method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
hashCode in interface CollectionhashCode in class ObjectObject.equals(java.lang.Object),
Hashtableint indexOf(Object o)
boolean isEmpty()
isEmpty in interface CollectionIterator iterator()
iterator in interface Collectionint lastIndexOf(Object o)
ListIterator listIterator()
ListIterator listIterator(int index)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionObject remove(int index)
boolean remove(Object o)
remove in interface Collection
boolean removeAll(Collection c)
throws NullPointerException
removeAll in interface CollectionNullPointerException
boolean retainAll(Collection c)
throws NullPointerException
retainAll in interface CollectionNullPointerException
Object set(int index,
Object element)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionint size()
size in interface Collection
List subList(int fromIndex,
int toIndex)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionObject[] toArray()
toArray in interface Collection
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||