public final static String TCOFFEE_SCORE = "TCoffeeScore";
- static Pattern SCORES_WITH_RESIDUE_NUMS = Pattern
+ private final static Pattern SCORES_WITH_RESIDUE_NUMS = Pattern
.compile("^\\d+\\s([^\\s]+)\\s+\\d+$");
/** The {@link Header} structure holder */
Integer fWidth;
- public TCoffeeScoreFile(String inFile, DataSourceType fileSourceType)
+ public TCoffeeScoreFile(Object inFile, DataSourceType fileSourceType)
throws IOException
{
+ // BH 2018 allows File or String
super(inFile, fileSourceType);
}
{
return null;
}
- List<String> result = new ArrayList<String>(scores.size());
+ List<String> result = new ArrayList<>(scores.size());
for (Map.Entry<String, StringBuilder> it : scores.entrySet())
{
result.add(it.getValue().toString());
error = true;
return;
}
- scores = new LinkedHashMap<String, StringBuilder>();
+ scores = new LinkedHashMap<>();
/*
* initilize the structure
int score;
- LinkedHashMap<String, Integer> scores = new LinkedHashMap<String, Integer>();
+ LinkedHashMap<String, Integer> scores = new LinkedHashMap<>();
public int getScoreAvg()
{
public Block(int size)
{
this.size = size;
- this.items = new HashMap<String, String>(size);
+ this.items = new HashMap<>(size);
}
String getScoresFor(String id)