1

general style improvements + javadoc

This commit is contained in:
Christoph
2020-03-06 22:18:11 +01:00
parent e05c6f4e3a
commit cc174b3269
18 changed files with 103 additions and 70 deletions

View File

@ -9,18 +9,18 @@ import java.util.List;
@Service
public class GroupService {
/**
* Konstruiert eine vollständige Gruppe aus Events, welche dieselbe Gruppe betreffen.
*
* @param event Initiales CreateGroup-Event
* @param eventList Die restlichen Events für diese Gruppe
* @return Gruppe auf aktuellem Stand
*/
Group buildGroupFromEvents(CreateGroupEvent event, List<Event> eventList){
Group newGroup = new Group(event);
/**
* Konstruiert eine vollständige Gruppe aus Events, welche dieselbe Gruppe betreffen.
*
* @param event Initiales CreateGroup-Event
* @param eventList Die restlichen Events für diese Gruppe
* @return Gruppe auf aktuellem Stand
*/
Group buildGroupFromEvents(CreateGroupEvent event, List<Event> eventList) {
Group newGroup = new Group(event);
eventList.forEach(newGroup::applyEvent);
eventList.forEach(newGroup::applyEvent);
return newGroup;
}
return newGroup;
}
}

View File

@ -3,7 +3,7 @@ package mops.gruppen2.service;
import org.springframework.stereotype.Service;
/**
* Übersetzt und baut
* Übersetzt JSON-Event-Payloads zu Java-Event-Repräsentationen und zurück.
*/
@Service
public class SerializationService {