/** @return the build {@link DocumentGraphOptions} */ public DocumentGraphOptions build() { if (typeClasses == null) { typeClasses = TypeUtils.getAnnotationClasses(Entity.class); } return new DocumentGraphOptions( contentHashAsId, outputMeta, outputContent, outputDocument, outputReferents, outputRelations, outputRelationsAsLinks, outputEvents, ImmutableSet.copyOf(typeClasses), ImmutableSet.copyOf(stopFeatures), valueCoercer); } }
/** @return the build {@link EntityGraphOptions} */ public EntityGraphOptions build() { if (typeClasses == null) { typeClasses = TypeUtils.getAnnotationClasses(Entity.class); } ValueStrategyProvider valueStrategyProvider = key -> valueStrategies.getOrDefault(key, defaultValueStrategy); return new EntityGraphOptions( contentHashAsId, outputEvents, multiValueProperties, ImmutableSet.copyOf(stopFeatures), typeClasses, valueStrategyProvider, ImmutableList.copyOf(aggregateProperties), valueCoercer); } }
/** @return the build {@link EntityGraphOptions} */ public EntityGraphOptions build() { if (typeClasses == null) { typeClasses = TypeUtils.getAnnotationClasses(Entity.class); } ValueStrategyProvider valueStrategyProvider = key -> valueStrategies.getOrDefault(key, defaultValueStrategy); return new EntityGraphOptions( contentHashAsId, outputEvents, multiValueProperties, ImmutableSet.copyOf(stopFeatures), typeClasses, valueStrategyProvider, ImmutableList.copyOf(aggregateProperties), valueCoercer); } }
/** @return the build {@link DocumentGraphOptions} */ public DocumentGraphOptions build() { if (typeClasses == null) { typeClasses = TypeUtils.getAnnotationClasses(Entity.class); } return new DocumentGraphOptions( contentHashAsId, outputMeta, outputContent, outputDocument, outputReferents, outputRelations, outputRelationsAsLinks, outputEvents, ImmutableSet.copyOf(typeClasses), ImmutableSet.copyOf(stopFeatures), valueCoercer); } }
Set<Class<? extends T>> allAnnotationClasses = getAnnotationClasses(parentClass); if (typeNames == null || typeNames.length == 0) { return allAnnotationClasses;
Set<Class<? extends T>> allAnnotationClasses = getAnnotationClasses(parentClass); if (typeNames == null || typeNames.length == 0) { return allAnnotationClasses;