Class AyoyArtifactList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<AyoyArtifact>
-
- se.ayoy.maven.plugins.licenseverifier.util.AyoyArtifactList
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<AyoyArtifact>,Collection<AyoyArtifact>,List<AyoyArtifact>,RandomAccess
public class AyoyArtifactList extends ArrayList<AyoyArtifact>
Represents a filtered list of AyoyArtifacts.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description AyoyArtifactList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(AyoyArtifact ayoyArtifact)Adds an AyoyArtifact to the list, if it's not already in the list.booleancontainsArtifact(org.apache.maven.artifact.Artifact artifact)Checks if there is already a AyoyArtifact which references this artifact.-
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
containsArtifact
public boolean containsArtifact(org.apache.maven.artifact.Artifact artifact)
Checks if there is already a AyoyArtifact which references this artifact.- Parameters:
artifact- the artifact.- Returns:
- true if the artifact is already referenced.
-
add
public boolean add(AyoyArtifact ayoyArtifact)
Adds an AyoyArtifact to the list, if it's not already in the list.- Specified by:
addin interfaceCollection<AyoyArtifact>- Specified by:
addin interfaceList<AyoyArtifact>- Overrides:
addin classArrayList<AyoyArtifact>- Parameters:
ayoyArtifact- the artifact to add.- Returns:
- true if artifact was added to the list.
-
-