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()
boolean
boolean
removeAll
(Collection var0) boolean
retainAll
(Collection var0) Object[]
toArray()
Object[]
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, iterator, size
-
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
-
remove
- Specified by:
remove
in interfaceCollection
-
removeAll
- Specified by:
removeAll
in interfaceCollection
-
retainAll
- Specified by:
retainAll
in interfaceCollection
-
toArray
- Specified by:
toArray
in interfaceCollection
-
toArray
- Specified by:
toArray
in interfaceCollection
-