Package org.codehaus.plexus.collections
Class AbstractActiveSet
java.lang.Object
org.codehaus.plexus.collections.AbstractActiveSet
- All Implemented Interfaces:
Iterable,Collection,Set,ActiveCollection,ActiveSet
- Direct Known Subclasses:
DefaultActiveSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.codehaus.plexus.PlexusContainerprivate org.codehaus.plexus.logging.Loggerprivate String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractActiveSet(org.codehaus.plexus.PlexusContainer container, String role) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection arg0) protected final Setvoidclear()final voidcontextualize(org.codehaus.plexus.context.Context context) final voidenableLogging(org.codehaus.plexus.logging.Logger logger) protected final org.codehaus.plexus.logging.Loggerfinal StringgetRole()Retrive the role, or type of component, which is collected in the current instance.protected final SetgetSet()booleanbooleanremoveAll(Collection arg0) booleanretainAll(Collection arg0) protected final voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.plexus.collections.ActiveCollection
checkedIsEmpty, checkedSize, isEmpty, sizeMethods inherited from interface org.codehaus.plexus.collections.ActiveSet
checkedContains, checkedContainsAll, checkedIterator, checkedToArray, checkedToArrayMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
role
-
container
private org.codehaus.plexus.PlexusContainer container -
logger
private org.codehaus.plexus.logging.Logger logger
-
-
Constructor Details
-
AbstractActiveSet
protected AbstractActiveSet() -
AbstractActiveSet
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceSet
-
addAll
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceSet
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceSet
-
remove
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceSet
-
removeAll
- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceSet
-
retainAll
- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceSet
-
getLogger
protected final org.codehaus.plexus.logging.Logger getLogger() -
getSet
-
checkedGetSet
protected final Set checkedGetSet() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
-
getRole
Description copied from interface:ActiveCollectionRetrive the role, or type of component, which is collected in the current instance. The current collection will only "contain" elements that specify this role in their component definitions.- Specified by:
getRolein interfaceActiveCollection
-
setRole
-
contextualize
public final void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException - Throws:
org.codehaus.plexus.context.ContextException
-
enableLogging
public final void enableLogging(org.codehaus.plexus.logging.Logger logger)
-