refactor LogEntry & cleanup stream formatting

This commit is contained in:
Luck
2016-08-18 00:07:56 +01:00
Unverified
parent ca9037461a
commit 84afbf26f8
49 changed files with 506 additions and 409 deletions
@@ -51,6 +51,11 @@ public class Track implements Identifiable<String> {
*/
private List<String> groups = Collections.synchronizedList(new ArrayList<>());
@Override
public String getId() {
return name;
}
/**
* Gets an ordered list of the groups on this track
* @return am ordered {@link List} of the groups on this track
@@ -201,9 +206,4 @@ public class Track implements Identifiable<String> {
throw new ObjectLacksException();
}
}
@Override
public String getId() {
return name;
}
}
@@ -35,7 +35,9 @@ public class TrackManager extends AbstractManager<String, Track> {
* @return a set of tracks that the groups could be a member of
*/
public Set<Track> getApplicableTracks(String group) {
return objects.values().stream().filter(t -> t.containsGroup(group)).collect(Collectors.toSet());
return objects.values().stream()
.filter(t -> t.containsGroup(group))
.collect(Collectors.toSet());
}
@Override