@Override public Aggregates<A> merge(Aggregates<A> left, Aggregates<A> right) { Aggregates<A> raw = base.merge(left, right); GlyphList<Shape, A> contours = new GlyphList<>(); if (left instanceof ContourAggregates) { contours.addAll(((ContourAggregates<A>) left).contours); } if (right instanceof ContourAggregates) { contours.addAll(((ContourAggregates<A>) right).contours); } return new ContourAggregates<>(raw, contours); }
@Override public A identity() { return base.identity(); }