Package com.atlassian.bamboo.commit
Class AuthorContextImpl
- java.lang.Object
-
- com.atlassian.bamboo.commit.AuthorContextImpl
-
- All Implemented Interfaces:
AuthorContext
,NameProvider
,Comparable<AuthorContext>
- Direct Known Subclasses:
CodeChangedTriggerReasonRenderer.AuthorWrapper
@Immutable public class AuthorContextImpl extends Object implements AuthorContext
-
-
Constructor Summary
Constructors Constructor Description AuthorContextImpl(@NotNull AuthorContext author)
AuthorContextImpl(String author)
AuthorContextImpl(String author, String linkedUserName, String email)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AuthorContext otherAuthor)
boolean
equals(Object o)
@Nullable String
getEmail()
@Nullable String
getLinkedUserName()
String
getName()
Unique name identifying an author.int
hashCode()
-
-
-
Constructor Detail
-
AuthorContextImpl
public AuthorContextImpl(@NotNull @NotNull AuthorContext author)
-
AuthorContextImpl
public AuthorContextImpl(String author)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:AuthorContext
Unique name identifying an author.- Specified by:
getName
in interfaceAuthorContext
- Specified by:
getName
in interfaceNameProvider
- Returns:
- identifying alias
-
getEmail
@Nullable public @Nullable String getEmail()
- Specified by:
getEmail
in interfaceAuthorContext
-
getLinkedUserName
@Nullable public @Nullable String getLinkedUserName()
- Specified by:
getLinkedUserName
in interfaceAuthorContext
-
compareTo
public int compareTo(AuthorContext otherAuthor)
- Specified by:
compareTo
in interfaceComparable<AuthorContext>
-
-