Package cdc.issues.io
Class OutSettings
- java.lang.Object
-
- cdc.issues.io.OutSettings
-
public class OutSettings extends Object
Class used to configure the writing of issues.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOutSettings.BuilderBuilder ofOutSettings.static classOutSettings.HintEnumeration of possible hints.
-
Field Summary
Fields Modifier and Type Field Description static OutSettingsALL_DATA_ANSWERSstatic OutSettingsALL_DATA_NO_ANSWERS
-
Constructor Summary
Constructors Modifier Constructor Description protectedOutSettings(OutSettings.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OutSettings.Builderbuilder()Set<OutSettings.Hint>getHints()Comparator<? super String>getMetaComparator()StringgetMetaPrefix()List<String>getMetas()intgetNumberOfComments()intgetNumberOfLocations()StringgetParamPrefix()List<String>getParams()booleanisEnabled(OutSettings.Hint hint)OutSettingsreplaceAuto(IssuesAndAnswers issuesAndAnswers)
-
-
-
Field Detail
-
ALL_DATA_ANSWERS
public static final OutSettings ALL_DATA_ANSWERS
-
ALL_DATA_NO_ANSWERS
public static final OutSettings ALL_DATA_NO_ANSWERS
-
-
Constructor Detail
-
OutSettings
protected OutSettings(OutSettings.Builder builder)
-
-
Method Detail
-
getHints
public Set<OutSettings.Hint> getHints()
- Returns:
- The set of enabled hints.
-
isEnabled
public boolean isEnabled(OutSettings.Hint hint)
- Parameters:
hint- The hint.- Returns:
trueifhintis enabled.
-
getParams
public List<String> getParams()
- Returns:
- The list of param data that have a special columns/fields.
-
getParamPrefix
public String getParamPrefix()
- Returns:
- The prefix to use with param columns.
-
getMetas
public List<String> getMetas()
- Returns:
- The list of meta data that have a special columns/fields.
-
getMetaPrefix
public String getMetaPrefix()
- Returns:
- The prefix to use with meta columns.
-
getMetaComparator
public Comparator<? super String> getMetaComparator()
- Returns:
- The Comparator that should be used to sort metas in meta column/field.
-
getNumberOfLocations
public int getNumberOfLocations()
- Returns:
- The number of location columns to add.
-
getNumberOfComments
public int getNumberOfComments()
- Returns:
- The number of comment columns to add.
-
replaceAuto
public OutSettings replaceAuto(IssuesAndAnswers issuesAndAnswers)
-
builder
public static OutSettings.Builder builder()
-
-