Class ArtifactLinkPredicates


  • public class ArtifactLinkPredicates
    extends Object
    • 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