Class ArtifactLinkPredicates
- java.lang.Object
-
- com.atlassian.bamboo.build.artifact.ArtifactLinkPredicates
-
public class ArtifactLinkPredicates extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isAvailableLocally(ArtifactLink artifactLink)
static Predicate<ArtifactLink>
isLabelEqual(@NotNull String label)
Get a predicate that returns true for ArtifactLink object with equal label.static boolean
isNotSharedArtifact(ArtifactLink artifactLink)
static boolean
isOrphanedArtifact(ArtifactLink artifactLink)
static boolean
isSharedArtifact(ArtifactLink artifactLink)
-
-
-
Method Detail
-
isSharedArtifact
public static boolean isSharedArtifact(ArtifactLink artifactLink)
- Returns:
- true if ArtifactLink object was produced for "shared" ArtifactDefinitions
-
isNotSharedArtifact
public static boolean isNotSharedArtifact(ArtifactLink artifactLink)
- Returns:
- true if ArtifactLink object was produced for not "shared" ArtifactDefinitions
-
isOrphanedArtifact
public static boolean isOrphanedArtifact(ArtifactLink artifactLink)
- Returns:
- true if producer build for an ArtifactLink has been deleted
-
isAvailableLocally
public static boolean isAvailableLocally(ArtifactLink artifactLink)
- Returns:
- true if artifact is available locally on the server
-
isLabelEqual
public static Predicate<ArtifactLink> isLabelEqual(@NotNull @NotNull String label)
Get a predicate that returns true for ArtifactLink object with equal label.- Returns:
- Predicate object
- Throws:
NullPointerException
- when it operates on a null element
-
-