use of io.spine.test.projection.ProjectId in project core-java by SpineEventEngine.
the class StandShould method toProjectionCollection.
private static ImmutableCollection<Given.StandTestProjection> toProjectionCollection(Collection<ProjectId> values) {
final Collection<Given.StandTestProjection> transformed = Collections2.transform(values, new Function<ProjectId, Given.StandTestProjection>() {
@Override
public StandTestProjection apply(@Nullable ProjectId input) {
checkNotNull(input);
return new StandTestProjection(input);
}
});
final ImmutableList<Given.StandTestProjection> result = ImmutableList.copyOf(transformed);
return result;
}
Aggregations