com.atlassian.bamboo.plan.branch
Class BambooVcsBranchImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.plan.branch.BambooVcsBranchImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, BambooVcsBranch, VcsBranch, NameProvider, java.lang.Cloneable

public class BambooVcsBranchImpl
extends BambooEntityObject
implements BambooVcsBranch


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
BambooVcsBranchImpl()
           
BambooVcsBranchImpl(Chain chain, VcsBranch newBranch)
           
BambooVcsBranchImpl(long id, java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          This method needs to be here in order to use proper id
 Chain getChain()
           
 java.lang.String getName()
           
 int hashCode()
          This method needs to be here in order to use proper id
 boolean isEqualToBranchWith(java.lang.String otherName)
           
 void setChain(Chain chain)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
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
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Constructor Detail

BambooVcsBranchImpl

public BambooVcsBranchImpl()

BambooVcsBranchImpl

public BambooVcsBranchImpl(Chain chain,
                           VcsBranch newBranch)

BambooVcsBranchImpl

public BambooVcsBranchImpl(long id,
                           @NotNull
                           java.lang.String name)
Method Detail

getChain

@NotNull
public Chain getChain()
Specified by:
getChain in interface BambooVcsBranch

setChain

public void setChain(@NotNull
                     Chain chain)
Specified by:
setChain in interface BambooVcsBranch

getName

@NotNull
public java.lang.String getName()
Specified by:
getName in interface VcsBranch
Specified by:
getName in interface NameProvider

setName

public void setName(@NotNull
                    java.lang.String name)
Specified by:
setName in interface BambooVcsBranch

isEqualToBranchWith

public boolean isEqualToBranchWith(@NotNull
                                   java.lang.String otherName)
Specified by:
isEqualToBranchWith in interface VcsBranch
Returns:
true if this object is equal to a branch with given properties.

equals

public boolean equals(java.lang.Object o)
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
equals in class BambooEntityObject

hashCode

public int hashCode()
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
hashCode in class BambooEntityObject

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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