Return the given set with the given annotations added. This returns a new immutable annotation set, which contains all the annotations from origSet plus the given annotations to add. The addition is not based on equality but on the id of the annotations: any new annotation is added if its annotatio
(AnnotationSet origSet, Annotation... toAdd)
| 1341 | * @return A new immutable annotation set with the given annotations added |
| 1342 | */ |
| 1343 | public static AnnotationSet plus(AnnotationSet origSet, Annotation... toAdd) { |
| 1344 | return plus(origSet,Arrays.asList(toAdd)); |
| 1345 | } |
| 1346 | |
| 1347 | /** |
| 1348 | * Return the given set with the given annotations added. |