|
@@ -18,7 +18,7 @@ public class Group<
|
18
|
18
|
TypeOfEntity extends IdentifiableInterface<TypeOfId>>
|
19
|
19
|
extends AbstractGroup<TypeOfId, TypeOfEntity> {
|
20
|
20
|
|
21
|
|
- ArrayList<TypeOfEntity> group = new ArrayList<>();
|
|
21
|
+ List<TypeOfEntity> group = new ArrayList<>();
|
22
|
22
|
|
23
|
23
|
@Override
|
24
|
24
|
public Integer count() {
|
|
@@ -74,8 +74,7 @@ public class Group<
|
74
|
74
|
|
75
|
75
|
@Override
|
76
|
76
|
public List filter(Predicate<TypeOfEntity> predicate) {
|
77
|
|
- List<TypeOfEntity> list = group.stream().filter(predicate).collect(Collectors.toList());
|
78
|
|
- return list;
|
|
77
|
+ return group.stream().filter(predicate).collect(Collectors.toList());
|
79
|
78
|
}
|
80
|
79
|
|
81
|
80
|
@Override
|