java.util
Interface Collection

All Known Subinterfaces:
List, Set, SortedSet
All Known Implementing Classes:
AbstractCollection, AbstractList, AbstractSet, ArrayList, HashSet, LinkedHashSet, LinkedList, TreeSet

public interface Collection


Method Summary
 boolean add(Object)
           
 boolean addAll(Collection)
           
 void clear()
           
 boolean contains(Object)
           
 boolean containsAll(Collection)
           
 boolean equals(Object)
           
 int hashCode()
           
 boolean isEmpty()
           
 Iterator iterator()
           
 boolean remove(Object)
           
 boolean removeAll(Collection)
           
 boolean retainAll(Collection)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[])
           
 

Method Detail

size

public int size()

isEmpty

public boolean isEmpty()

contains

public boolean contains(Object)

iterator

public Iterator iterator()

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[])

add

public boolean add(Object)

remove

public boolean remove(Object)

containsAll

public boolean containsAll(Collection)

addAll

public boolean addAll(Collection)

removeAll

public boolean removeAll(Collection)

retainAll

public boolean retainAll(Collection)

clear

public void clear()

equals

public boolean equals(Object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object