示例#1
0
    @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);
    }
示例#2
0
 @Override
 public A identity() {
   return base.identity();
 }