Exemplo n.º 1
0
 @Override
 public NamedType addAnnotations(Annotations annotations) {
   Map<String, String> newAnnotations = new HashMap<>(this.annotations);
   newAnnotations.putAll(annotations.map());
   return new NamedType(name, type, newAnnotations);
 }
Exemplo n.º 2
0
 @Override
 public NamedType replaceAnnotations(Annotations annotations) {
   return new NamedType(name, type, annotations.map());
 }