Package com.atlassian.bamboo.deployments
Class DeploymentResultKeyImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.DeploymentResultKeyImpl
-
- All Implemented Interfaces:
DeploymentResultKey
,Key
,ResultKey
,Serializable
@Immutable public class DeploymentResultKeyImpl extends Object implements DeploymentResultKey
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Function<String,DeploymentResultKey>
FROM_STRING
Deprecated.since 6.5, usefrom(String)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static DeploymentResultKeyImpl
from(@NotNull DeploymentKey environmentKey, long deploymentResultId)
static DeploymentResultKeyImpl
from(@NotNull InternalEnvironment environment, @NotNull InternalDeploymentResult deploymentResult)
static DeploymentResultKeyImpl
from(@NotNull String key)
long
getDeploymentResultId()
@NotNull Key
getEntityKey()
What is this a result of.@NotNull String
getKey()
int
getResultNumber()
long
getResultNumberLong()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
FROM_STRING
@Deprecated public static com.google.common.base.Function<String,DeploymentResultKey> FROM_STRING
Deprecated.since 6.5, usefrom(String)
-
-
Method Detail
-
getKey
@NotNull public @NotNull String getKey()
-
getEntityKey
@NotNull public @NotNull Key getEntityKey()
Description copied from interface:ResultKey
What is this a result of.- Specified by:
getEntityKey
in interfaceResultKey
- Returns:
-
getResultNumber
public int getResultNumber()
- Specified by:
getResultNumber
in interfaceResultKey
- Returns:
- Result number
-
getResultNumberLong
public long getResultNumberLong()
- Specified by:
getResultNumberLong
in interfaceResultKey
- Returns:
- Result number
-
getDeploymentResultId
public long getDeploymentResultId()
- Specified by:
getDeploymentResultId
in interfaceDeploymentResultKey
- Returns:
- result id
-
from
public static DeploymentResultKeyImpl from(@NotNull @NotNull DeploymentKey environmentKey, long deploymentResultId)
-
from
public static DeploymentResultKeyImpl from(@NotNull @NotNull InternalEnvironment environment, @NotNull @NotNull InternalDeploymentResult deploymentResult)
-
from
public static DeploymentResultKeyImpl from(@NotNull @NotNull String key)
-
-