Package java.util
Class AbstractCollection
java.lang.Object
java.util.AbstractCollection
- All Implemented Interfaces:
Collection
- Direct Known Subclasses:
AbstractList
,AbstractSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection var0) void
clear()
boolean
boolean
containsAll
(Collection var0) boolean
isEmpty()
abstract Iterator
iterator()
boolean
boolean
removeAll
(Collection var0) boolean
retainAll
(Collection var0) abstract int
size()
Object[]
toArray()
Object[]
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
-
Constructor Details
-
AbstractCollection
protected AbstractCollection()
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection
-
addAll
- Specified by:
addAll
in interfaceCollection
-
clear
public void clear()- Specified by:
clear
in interfaceCollection
-
contains
- Specified by:
contains
in interfaceCollection
-
containsAll
- Specified by:
containsAll
in interfaceCollection
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection
-
iterator
- Specified by:
iterator
in interfaceCollection
-
remove
- Specified by:
remove
in interfaceCollection
-
removeAll
- Specified by:
removeAll
in interfaceCollection
-
retainAll
- Specified by:
retainAll
in interfaceCollection
-
size
public abstract int size()- Specified by:
size
in interfaceCollection
-
toArray
- Specified by:
toArray
in interfaceCollection
-
toArray
- Specified by:
toArray
in interfaceCollection
-
toString
-