Class DefaultActiveSet

java.lang.Object
org.codehaus.plexus.collections.AbstractActiveSet
org.codehaus.plexus.collections.DefaultActiveSet
All Implemented Interfaces:
Iterable, Collection, Set, ActiveCollection, ActiveSet, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

public class DefaultActiveSet extends AbstractActiveSet implements ActiveSet, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled
  • Constructor Details

    • DefaultActiveSet

      public DefaultActiveSet()
    • DefaultActiveSet

      public DefaultActiveSet(org.codehaus.plexus.PlexusContainer container, Class role)
    • DefaultActiveSet

      public DefaultActiveSet(org.codehaus.plexus.PlexusContainer container, String role)
  • Method Details

    • contains

      public boolean contains(Object value)
      Specified by:
      contains in interface Collection
      Specified by:
      contains in interface Set
    • containsAll

      public boolean containsAll(Collection collection)
      Specified by:
      containsAll in interface Collection
      Specified by:
      containsAll in interface Set
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: ActiveCollection
      Same semantics as Collection.isEmpty() or Map.isEmpty().
      Specified by:
      isEmpty in interface ActiveCollection
      Specified by:
      isEmpty in interface Collection
      Specified by:
      isEmpty in interface Set
    • iterator

      public Iterator iterator()
      Specified by:
      iterator in interface Collection
      Specified by:
      iterator in interface Iterable
      Specified by:
      iterator in interface Set
    • size

      public int size()
      Description copied from interface: ActiveCollection
      Same semantics as Collection.size() or Map.size().
      Specified by:
      size in interface ActiveCollection
      Specified by:
      size in interface Collection
      Specified by:
      size in interface Set
    • toArray

      public Object[] toArray()
      Specified by:
      toArray in interface Collection
      Specified by:
      toArray in interface Set
    • toArray

      public Object[] toArray(Object[] array)
      Specified by:
      toArray in interface Collection
      Specified by:
      toArray in interface Set
    • checkedContains

      public boolean checkedContains(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveSet
      Same as Set.contains(Object), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedContains in interface ActiveSet
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.
    • checkedContainsAll

      public boolean checkedContainsAll(Collection collection) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveSet
      Same as Set.containsAll(Collection), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedContainsAll in interface ActiveSet
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.
    • checkedIsEmpty

      public boolean checkedIsEmpty() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveCollection
      Same semantics as Collection.isEmpty() or Map.isEmpty(), except this method will throw a ComponentLookupException if one or more of the elements collected here fails during lookup.
      Specified by:
      checkedIsEmpty in interface ActiveCollection
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • checkedIterator

      public Iterator checkedIterator() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveSet
      Same as Set.iterator(), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedIterator in interface ActiveSet
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.
    • checkedSize

      public int checkedSize() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveCollection
      Same semantics as Collection.size() or Map.size(), except this method will throw a ComponentLookupException if one or more of the elements collected here fails during lookup.
      Specified by:
      checkedSize in interface ActiveCollection
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • checkedToArray

      public Object[] checkedToArray() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveSet
      Same as Set.toArray(), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedToArray in interface ActiveSet
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.
    • checkedToArray

      public Object[] checkedToArray(Object[] array) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveSet
      Same as Set.toArray(Object[]), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedToArray in interface ActiveSet
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.