Class VersionService.ReasonsServiceResult<R,T>

java.lang.Object
com.atlassian.jira.bc.ServiceResultImpl
com.atlassian.jira.bc.project.version.VersionService.ReasonsServiceResult<R,T>
Type Parameters:
R - the type of Reasons
T - the type of the Result object if successful
All Implemented Interfaces:
ServiceResult, Serializable
Direct Known Subclasses:
VersionService.VersionBuilderValidationResult
Enclosing interface:
VersionService

public static class VersionService.ReasonsServiceResult<R,T> extends ServiceResultImpl
A generified ServiceResultImpl that allows Service-specified Reasons to be set as part of the result (in addition to Reasons specified inside the ErrorCollection.
Since:
v6.0
See Also:
  • Constructor Details

    • ReasonsServiceResult

      public ReasonsServiceResult(ErrorCollection errorCollection, Set<R> specificReasons)
    • ReasonsServiceResult

      public ReasonsServiceResult(ErrorCollection errorCollection, Set<R> specificReasons, T result)
  • Method Details

    • getSpecificReasons

      public Set<R> getSpecificReasons()
    • getResult

      public T getResult()