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() |
public ArtifactSet()
public ArtifactSet(Collection<? extends Artifact<?>> copyFrom)
public boolean add(Artifact<?> o)
public boolean addAll(Collection<? extends Artifact<?>> c)
public void clear()
public Comparator<? super Artifact<?>> comparator()
comparator
in interface SortedSet<Artifact<?>>
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Artifact<?>>
containsAll
in interface Set<Artifact<?>>
public boolean equals(Object o)
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 int hashCode()
public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean replace(Artifact<?> artifact)
artifact
- the replacement Artifacttrue
if an equivalent Artifact was already present.public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] a)
Copyright © 2018. All rights reserved.