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 protectedAbstractPlanParticle(String namespace, String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PlanParticle rhs)booleanequals(Object o)@NotNull StringgetKey()Return PlanParticle key.@NotNull StringgetNamespace()Return PlanParticle namespace.inthashCode()
-
-
-
Method Detail
-
getKey
@NotNull public @NotNull String getKey()
Description copied from interface:PlanParticleReturn 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:
getKeyin interfacePlanParticle- Returns:
- PlanParticle's namespace name
-
getNamespace
@NotNull public @NotNull String getNamespace()
Description copied from interface:PlanParticleReturn 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:
getNamespacein interfacePlanParticle- Returns:
- PlanParticle's namespace name
-
compareTo
public final int compareTo(PlanParticle rhs)
- Specified by:
compareToin interfaceComparable<PlanParticle>
-
-