@Test public void getLabelValueExtractorsForUser() { getLabelValueExtractors(User.class, 2); }
@SuppressWarnings("unchecked") public <T> Optional<Set<LabelValueExtractor<T>>> getLabelValueExtractors(Class<T> sourceType) { return (Optional<Set<LabelValueExtractor<T>>>) Optional.ofNullable((T) extractorsBySourceType.get(sourceType)); }
LabelValueExtractorRegistry { @SuppressWarnings("unchecked") public <T> Optional<Set<LabelValueExtractor<T>>> getLabelValueExtractors(Class<T> sourceType) { return (Optional<Set<LabelValueExtractor<T>>>) Optional.ofNullable((T) extractorsBySourceType.get(sourceType)); } }
LabelValueExtractorRegistry { @SuppressWarnings("unchecked") public <T> Optional<Set<LabelValueExtractor<T>>> getLabelValueExtractors(Class<T> sourceType) { return (Optional<Set<LabelValueExtractor<T>>>) Optional.ofNullable((T) extractorsBySourceType.get(sourceType)); } private  LabelValueExtractorRegistry(); }
LabelValueExtractorRegistry { @SuppressWarnings("unchecked") public <T> Optional<Set<LabelValueExtractor<T>>> getLabelValueExtractors(Class<T> sourceType) { return (Optional<Set<LabelValueExtractor<T>>>) Optional.ofNullable((T) extractorsBySourceType.get(sourceType)); } private  LabelValueExtractorRegistry(); static LabelValueExtractorRegistry getInstance(); synchronized void registerExtractors(ClassLoader classLoader); @SuppressWarnings("unchecked") Optional<Set<LabelValueExtractor<T>>> getLabelValueExtractors(Class<T> sourceType); void applyLabelValueExtractors(Class<T> sourceType, T source, BiConsumer<String, Set<Object>> extractedValuesConsumer); }
LabelValueExtractorRegistry { @SuppressWarnings("unchecked") public <T> Optional<Set<LabelValueExtractor<T>>> getLabelValueExtractors(Class<T> sourceType) { return (Optional<Set<LabelValueExtractor<T>>>) Optional.ofNullable((T) extractorsBySourceType.get(sourceType)); } private  LabelValueExtractorRegistry(); static LabelValueExtractorRegistry getInstance(); synchronized void registerExtractors(ClassLoader classLoader); @SuppressWarnings("unchecked") Optional<Set<LabelValueExtractor<T>>> getLabelValueExtractors(Class<T> sourceType); void applyLabelValueExtractors(Class<T> sourceType, T source, BiConsumer<String, Set<Object>> extractedValuesConsumer);  }