com.atlassian.bamboo.v2.build.agent.capability
Class CapabilityImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.v2.build.agent.capability.CapabilityImpl
- All Implemented Interfaces:
- BambooObject, Capability, java.lang.Cloneable
public class CapabilityImpl
- extends BambooEntityObject
- implements Capability
Methods inherited from class com.atlassian.core.bean.EntityObject |
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
CapabilityImpl
public CapabilityImpl()
CapabilityImpl
public CapabilityImpl(@NotNull
java.lang.String key,
java.lang.String value)
getKey
@NotNull
public java.lang.String getKey()
- Description copied from interface:
Capability
- Get the key representing the capability
- Specified by:
getKey
in interface Capability
- Returns:
setKey
public void setKey(@NotNull
java.lang.String key)
- Specified by:
setKey
in interface Capability
getValue
@Nullable
public java.lang.String getValue()
- Description copied from interface:
Capability
- A value of the capability property. For matching to
Requirement
- Specified by:
getValue
in interface Capability
- Returns:
getValueWithDefault
@NotNull
public java.lang.String getValueWithDefault()
- Description copied from interface:
Capability
- A null-safe getter of value of the capability property. For matching to
Requirement
- Specified by:
getValueWithDefault
in interface Capability
- Returns:
- value or empty string if value is null
setValue
public void setValue(@Nullable
java.lang.String value)
- Specified by:
setValue
in interface Capability
getCapabilitySet
public CapabilitySet getCapabilitySet()
- Specified by:
getCapabilitySet
in interface Capability
setCapabilitySet
public void setCapabilitySet(CapabilitySet capabilitySet)
- Specified by:
setCapabilitySet
in interface Capability
hashCode
public int hashCode()
- Overrides:
hashCode
in class com.atlassian.core.bean.EntityObject
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class com.atlassian.core.bean.EntityObject
compareTo
public int compareTo(java.lang.Object obj)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Atlassian. All Rights Reserved.