/** * Array-style access for annotation sets. Allows <code>someAnnotationSet["Token", "SpaceToken"] * </code> * * @see SimpleAnnotationSet#get(Set) */ public static AnnotationSet getAt(SimpleAnnotationSet self, List<String> types) { return self.get(new HashSet<String>(types)); }
/** * Array-style access for annotation sets. Allows things like <code>someAnnotationSet["Token"] * </code> * * @see SimpleAnnotationSet#get(String) */ public static AnnotationSet getAt(SimpleAnnotationSet self, String type) { return self.get(type); }