
public final class ArtifactSet extends Object implements SortedSet<Artifact<?>>, Serializable
| Constructor and Description |
|---|
ArtifactSet() |
ArtifactSet(Collection<? extends Artifact<?>> copyFrom) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Artifact<?> o) |
boolean |
addAll(Collection<? extends Artifact<?>> c) |
void |
clear() |
Comparator<? super Artifact<?>> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
<T extends Artifact<? super T>> |
find(Class<T> artifactType)
Find all Artifacts assignable to some base type.
|
Artifact<?> |
first() |
void |
freeze()
Prevent further modification of the ArtifactSet.
|
int |
hashCode() |
SortedSet<Artifact<?>> |
headSet(Artifact<?> toElement) |
boolean |
isEmpty() |
Iterator<Artifact<?>> |
iterator() |
Artifact<?> |
last() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
replace(Artifact<?> artifact)
Possibly replace an existing Artifact.
|
boolean |
retainAll(Collection<?> c) |
int |
size() |
SortedSet<Artifact<?>> |
subSet(Artifact<?> fromElement,
Artifact<?> toElement) |
SortedSet<Artifact<?>> |
tailSet(Artifact<?> fromElement) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
spliteratorparallelStream, removeIf, streampublic ArtifactSet()
public ArtifactSet(Collection<? extends Artifact<?>> copyFrom)
public boolean add(Artifact<?> o)
add in interface Collection<Artifact<?>>public boolean addAll(Collection<? extends Artifact<?>> c)
addAll in interface Collection<Artifact<?>>public void clear()
clear in interface Collection<Artifact<?>>public Comparator<? super Artifact<?>> comparator()
comparator in interface SortedSet<Artifact<?>>public boolean contains(Object o)
contains in interface Collection<Artifact<?>>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Artifact<?>>public <T extends Artifact<? super T>> SortedSet<T> find(Class<T> artifactType)
for (EmittedArtifact ea : artifactSet.find(EmittedArtifact.class)) {
...
}
T - the desired type of ArtifactartifactType - the desired type of Artifactpublic void freeze()
public boolean isEmpty()
isEmpty in interface Collection<Artifact<?>>public boolean remove(Object o)
remove in interface Collection<Artifact<?>>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<Artifact<?>>public boolean replace(Artifact<?> artifact)
artifact - the replacement Artifacttrue if an equivalent Artifact was already present.public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Artifact<?>>public int size()
size in interface Collection<Artifact<?>>public Object[] toArray()
toArray in interface Collection<Artifact<?>>public <T> T[] toArray(T[] a)
toArray in interface Collection<Artifact<?>>Copyright © 2018. All rights reserved.