com.atlassian.bamboo.build.artifact
Class ArtifactLinkPredicates

java.lang.Object
  extended by com.atlassian.bamboo.build.artifact.ArtifactLinkPredicates

public class ArtifactLinkPredicates
extends java.lang.Object


Method Summary
static com.google.common.base.Predicate<ArtifactLink> isExists()
          Deprecated. 
static com.google.common.base.Predicate<ArtifactLink> isLabelEqual(java.lang.String label)
          Get a predicate that returns true for ArtifactLink object with equal label.
static com.google.common.base.Predicate<ArtifactLink> isOrphanedArtifact()
          Get a predicate that returns true for ArtifactLink object of which producing build has been deleted.
static com.google.common.base.Predicate<ArtifactLink> isSharedArtifact()
          Get a predicate that returns true for ArtifactLink object that were produced for "shared" ArtifactDefinitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isExists

@Deprecated
public static com.google.common.base.Predicate<ArtifactLink> isExists()
Deprecated. 

Get a predicate that returns true for ArtifactLinks objects that exist in the filesystem.

Returns:
Predicate object
Throws:
java.lang.NullPointerException - when it operates on a null element

isSharedArtifact

public static com.google.common.base.Predicate<ArtifactLink> isSharedArtifact()
Get a predicate that returns true for ArtifactLink object that were produced for "shared" ArtifactDefinitions.

Returns:
Predicate object
Throws:
java.lang.NullPointerException - when it operates on a null element

isOrphanedArtifact

public static com.google.common.base.Predicate<ArtifactLink> isOrphanedArtifact()
Get a predicate that returns true for ArtifactLink object of which producing build has been deleted.

Returns:
Predicate object
Throws:
java.lang.NullPointerException - when it operates on a null element

isLabelEqual

public static com.google.common.base.Predicate<ArtifactLink> isLabelEqual(@NotNull
                                                                          java.lang.String label)
Get a predicate that returns true for ArtifactLink object with equal label.

Returns:
Predicate object
Throws:
java.lang.NullPointerException - when it operates on a null element


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.