/** * Create a new {@link FVProviderExtractor} with the given extractor. * * @param extractor * the extractor * * @param <FV> * Type of {@link FeatureVector} * @param <OBJECT> * Type of object the extractor works on. * @param <EXTRACTOR> * Type of extractor. * * @return the new {@link FVProviderExtractor} */ public static <FV extends FeatureVector, OBJECT, EXTRACTOR extends FeatureExtractor<? extends FeatureVectorProvider<FV>, OBJECT>> FVProviderExtractor<FV, OBJECT> create(EXTRACTOR extractor) { return new FVProviderExtractor<FV, OBJECT>(extractor); } }
/** * Create a new {@link FVProviderExtractor} with the given extractor. * * @param extractor * the extractor * * @param <FV> * Type of {@link FeatureVector} * @param <OBJECT> * Type of object the extractor works on. * @param <EXTRACTOR> * Type of extractor. * * @return the new {@link FVProviderExtractor} */ public static <FV extends FeatureVector, OBJECT, EXTRACTOR extends FeatureExtractor<? extends FeatureVectorProvider<FV>, OBJECT>> FVProviderExtractor<FV, OBJECT> create(EXTRACTOR extractor) { return new FVProviderExtractor<FV, OBJECT>(extractor); } }