Return the subset from the original set that matches one of the given annotations. This returns a new immutable annotation set, which contains all the annotations from origSet which are also among the annotations given. The check for matching annotations is not based on equality but on the id of th
(AnnotationSet origSet, Annotation... others)
| 1392 | * @return A new immutable annotation set with the interesection between original set and given annotations |
| 1393 | */ |
| 1394 | public static AnnotationSet intersect(AnnotationSet origSet, Annotation... others) { |
| 1395 | return intersect(origSet,Arrays.asList(others)); |
| 1396 | } |
| 1397 | |
| 1398 | public static AnnotationSet intersect(AnnotationSet origSet, Collection<Annotation> others) { |
| 1399 | if(others.isEmpty()) { |