File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
engine/modules/entities/src/main/java/com/codingame/gameengine/module/entities Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 88/**
99 *
1010 *
11- * @param <T> a subclass inheriting Entity, used in order to return <b>this</b> as a T instead of a <code>ContainerBasedEntity</code>.
11+ * @param <T>
12+ * a subclass inheriting Entity, used in order to return <b>this</b> as a T instead of a <code>ContainerBasedEntity</code>.
1213 */
1314public abstract class ContainerBasedEntity <T extends Entity <?>> extends Entity <T > {
1415
1516 private Set <Entity <?>> entities ;
16-
17+
1718 ContainerBasedEntity () {
1819 super ();
1920
2021 entities = new HashSet <>();
2122 }
23+
2224 /**
2325 * Separates the given entity from this <code>ContainerBasedEntity</code>.
2426 *
@@ -56,8 +58,8 @@ public void add(Entity<?>... entities) {
5658
5759 private String asString (Set <Entity <?>> entities ) {
5860 return entities .stream ()
59- .map (e -> String .valueOf (e .getId ()))
60- .collect (Collectors .joining ("," ));
61+ .map (e -> String .valueOf (e .getId ()))
62+ .collect (Collectors .joining ("," ));
6163 }
6264
6365}
You can’t perform that action at this time.
0 commit comments