Package com.atlassian.bamboo.plan
Class AbstractPlanParticle
- java.lang.Object
-
- com.atlassian.bamboo.plan.AbstractPlanParticle
-
- All Implemented Interfaces:
PlanParticle
,Comparable<PlanParticle>
- Direct Known Subclasses:
DefaultPlanParticle
,Maven2ArtifactProperties
public abstract class AbstractPlanParticle extends Object implements PlanParticle, Comparable<PlanParticle>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPlanParticle(String namespace, String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PlanParticle rhs)
boolean
equals(Object o)
@NotNull String
getKey()
Return PlanParticle key.@NotNull String
getNamespace()
Return PlanParticle namespace.int
hashCode()
-
-
-
Method Detail
-
getKey
@NotNull public @NotNull String getKey()
Description copied from interface:PlanParticle
Return PlanParticle key. PlanParticle's key shall distinguish it from other particles in the same namespace. An example could be concatenation of maven's groupId:artifactId:version- Specified by:
getKey
in interfacePlanParticle
- Returns:
- PlanParticle's namespace name
-
getNamespace
@NotNull public @NotNull String getNamespace()
Description copied from interface:PlanParticle
Return PlanParticle namespace. Namespace is a string that shall distinguish particles of given type from other particle types. An example could be "com.atlassian.bamboo.plugins.maven2"- Specified by:
getNamespace
in interfacePlanParticle
- Returns:
- PlanParticle's namespace name
-
compareTo
public final int compareTo(PlanParticle rhs)
- Specified by:
compareTo
in interfaceComparable<PlanParticle>
-
-