Class DefaultActiveList

java.lang.Object
org.codehaus.plexus.collections.AbstractActiveList
org.codehaus.plexus.collections.DefaultActiveList
All Implemented Interfaces:
Iterable, Collection, List, ActiveCollection, ActiveList, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

public class DefaultActiveList extends AbstractActiveList implements ActiveList, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled
  • Constructor Details

    • DefaultActiveList

      public DefaultActiveList()
    • DefaultActiveList

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

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

    • checkedContains

      public boolean checkedContains(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveList
      Same as List.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 ActiveList
      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: ActiveList
      Same as List.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 ActiveList
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.
    • checkedGet

      public Object checkedGet(int index) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveList
      Same as List.get(int), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedGet in interface ActiveList
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.
    • checkedIndexOf

      public int checkedIndexOf(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveList
      Same as List.indexOf(Object), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedIndexOf in interface ActiveList
      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: ActiveList
      Same as List.iterator(), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedIterator in interface ActiveList
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.
    • checkedLastIndexOf

      public int checkedLastIndexOf(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveList
      Same as List.lastIndexOf(Object), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedLastIndexOf in interface ActiveList
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.
    • checkedListIterator

      public ListIterator checkedListIterator() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveList
      Same as List.listIterator(), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedListIterator in interface ActiveList
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.
    • checkedListIterator

      public ListIterator checkedListIterator(int index) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveList
      Same as List.listIterator(int), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedListIterator in interface ActiveList
      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
    • checkedSubList

      public List checkedSubList(int fromIndex, int toIndex) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Description copied from interface: ActiveList
      Same as List.subList(int, int), except this method will throw a ComponentLookupException if one or more elements in the set fail during lookup.
      Specified by:
      checkedSubList in interface ActiveList
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException - if one or more elements of the set fail during lookup.
    • checkedToArray

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

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

      public boolean containsAll(Collection collection)
      Specified by:
      containsAll in interface Collection
      Specified by:
      containsAll in interface List
    • get

      public Object get(int index)
      Specified by:
      get in interface List
    • indexOf

      public int indexOf(Object value)
      Specified by:
      indexOf in interface List
    • 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 List
    • iterator

      public Iterator iterator()
      Specified by:
      iterator in interface Collection
      Specified by:
      iterator in interface Iterable
      Specified by:
      iterator in interface List
    • lastIndexOf

      public int lastIndexOf(Object value)
      Specified by:
      lastIndexOf in interface List
    • listIterator

      public ListIterator listIterator()
      Specified by:
      listIterator in interface List
    • listIterator

      public ListIterator listIterator(int index)
      Specified by:
      listIterator in interface List
    • 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 List
    • subList

      public List subList(int fromIndex, int toIndex)
      Specified by:
      subList in interface List
    • toArray

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

      public Object[] toArray(Object[] array)
      Specified by:
      toArray in interface Collection
      Specified by:
      toArray in interface List