Package edu.cmu.tetrad.annotation
Class AbstractAnnotations<T extends Annotation>
java.lang.Object
edu.cmu.tetrad.annotation.AbstractAnnotations<T>
- Type Parameters:
T
- annotation type
- Direct Known Subclasses:
AlgorithmAnnotations
,ScoreAnnotations
,TestOfIndependenceAnnotations
Abstract class for annotations.
Sep 20, 2017 10:59:43 AM
- Version:
- $Id: $Id
- Author:
- Kevin V. Bui (kvb2@pitt.edu)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterByAnnotation
(List<AnnotatedClass<T>> annoClasses, Class<? extends Annotation> type) Filter annotated classes by annotation type.filterOutByAnnotation
(List<AnnotatedClass<T>> annoClasses, Class<? extends Annotation> type) Filter out annotated classes by annotation type.Get annotated classes.
-
Constructor Details
-
AbstractAnnotations
-
-
Method Details
-
getAnnotatedClasses
Get annotated classes.- Returns:
- annotated classes
-
filterByAnnotation
public List<AnnotatedClass<T>> filterByAnnotation(List<AnnotatedClass<T>> annoClasses, Class<? extends Annotation> type) Filter annotated classes by annotation type.- Parameters:
annoClasses
- annotated classestype
- annotation type- Returns:
- filtered annotated classes
-
filterOutByAnnotation
public List<AnnotatedClass<T>> filterOutByAnnotation(List<AnnotatedClass<T>> annoClasses, Class<? extends Annotation> type) Filter out annotated classes by annotation type.- Parameters:
annoClasses
- annotated classestype
- annotation type- Returns:
- filtered annotated classes
-