Package cdc.issues
Class IssueId
- java.lang.Object
-
- cdc.issues.IssueId
-
- All Implemented Interfaces:
Comparable<IssueId>
public final class IssueId extends Object implements Comparable<IssueId>
Data issue identifier.It is composed of:
- a rule identifier (domain and rule name)
- rule parameters
- a project name
- locations
- Author:
- Damien Carbonne
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIssueId.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IssueId.Builderbuilder()intcompareTo(IssueId other)booleanequals(Object object)StringgetDomain()Location[]getLocations()StringgetName()<T extends Enum<T>>
TgetName(Class<T> cls)ParamsgetParams()StringgetProject()RuleIdgetRuleId()inthashCode()StringtoString()
-
-
-
Method Detail
-
getRuleId
public RuleId getRuleId()
- Returns:
- The rule identifier.
-
getDomain
public String getDomain()
- Returns:
- The rule domain name (part of its identifier).
-
getName
public String getName()
- Returns:
- The rule name (part of its identifier).
-
getName
public <T extends Enum<T>> T getName(Class<T> cls)
- Type Parameters:
T- The enum type.- Parameters:
cls- The enum class.- Returns:
- The rule name as an enum.
-
getParams
public Params getParams()
- Returns:
- The parameters used to configure the rule.
-
getProject
public String getProject()
- Returns:
- The project name (possibly
null).
-
getLocations
public Location[] getLocations()
- Returns:
- The locations related to the issue.
-
compareTo
public int compareTo(IssueId other)
- Specified by:
compareToin interfaceComparable<IssueId>
-
builder
public static IssueId.Builder builder()
-
-