Package java.util
Class AbstractCollection
- java.lang.Object
-
- java.util.AbstractCollection
-
- All Implemented Interfaces:
Collection
- Direct Known Subclasses:
AbstractList
,AbstractSet
public abstract class AbstractCollection extends Object implements Collection
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCollection()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
add(Object var0)
boolean
addAll(Collection var0)
void
clear()
boolean
contains(Object var0)
boolean
containsAll(Collection var0)
boolean
isEmpty()
abstract Iterator
iterator()
boolean
remove(Object var0)
boolean
removeAll(Collection var0)
boolean
retainAll(Collection var0)
abstract int
size()
Object[]
toArray()
Object[]
toArray(Object[] var0)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode
-
-
-
-
Method Detail
-
add
public boolean add(Object var0)
- Specified by:
add
in interfaceCollection
-
addAll
public boolean addAll(Collection var0)
- Specified by:
addAll
in interfaceCollection
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection
-
contains
public boolean contains(Object var0)
- Specified by:
contains
in interfaceCollection
-
containsAll
public boolean containsAll(Collection var0)
- Specified by:
containsAll
in interfaceCollection
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection
-
iterator
public abstract Iterator iterator()
- Specified by:
iterator
in interfaceCollection
-
remove
public boolean remove(Object var0)
- Specified by:
remove
in interfaceCollection
-
removeAll
public boolean removeAll(Collection var0)
- Specified by:
removeAll
in interfaceCollection
-
retainAll
public boolean retainAll(Collection var0)
- Specified by:
retainAll
in interfaceCollection
-
size
public abstract int size()
- Specified by:
size
in interfaceCollection
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection
-
toArray
public Object[] toArray(Object[] var0)
- Specified by:
toArray
in interfaceCollection
-
-