예제 #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);
 }
예제 #2
0
 @Override
 public NamedType replaceAnnotations(Annotations annotations) {
   return new NamedType(name, type, annotations.map());
 }