MockData data;
private List<AssetOwnedDailyId> getParticipantsInternal(@NotNull final String name, @NotNull final DateTime day) {
log.debug("Retrieving participants whose names start with [{}] that are effective on [{}].", name, day);
List<AssetOwnedDailyId> result = new ArrayList<>();
AssetOwnedDailyId participant;
String assetOwner;
DateTime d;
for (Map.Entry<String, DateTime> entry: data.allParticipants().entrySet()) {
assetOwner = entry.getKey();
d = entry.getValue();
if (assetOwner.startsWith(name.toUpperCase()) && day.isBefore(d)) {
participant = new AssetOwnedDailyId();
participant.setAssetOwner(assetOwner);
participant.setDay(SSTimeUtil.dateTimeToIsoDay(d));
result.add(participant);
}
}
return result;
}