LuceneNormalizerInstanceContext(String name, Analyzer instance) { this.name = name; Contracts.assertNotNull( instance, "instance" ); this.instance = instance; }
@Override public <T> CompositeProjectionContext<T> composite(Function<List<?>, T> transformer, SearchProjection<?>... projections) { Contracts.assertNotNull( transformer, "transformer" ); Contracts.assertNotNullNorEmpty( projections, "projections" ); return new CompositeProjectionContextImpl<>( factory, transformer, projections ); }
@Override public MinimumShouldMatchConditionContext<N> ifMoreThan(int ignoreConstraintCeiling) { Contracts.assertPositiveOrZero( ignoreConstraintCeiling, "ignoreConstraintCeiling" ); this.ignoreConstraintCeiling = ignoreConstraintCeiling; return this; }
TypeAndNameBeanReference(Class<T> type, String name) { super( type ); Contracts.assertNotNullNorEmpty( name, "name" ); this.name = name; }
TypeAndNameBeanReference(Class<T> type, String name) { super( type ); Contracts.assertNotNullNorEmpty( name, "name" ); this.name = name; }
public MaskedConfigurationPropertySource(ConfigurationPropertySource propertiesToMask, String mask) { Contracts.assertNotNull( propertiesToMask, "propertiesToMask" ); Contracts.assertNotNull( mask, "mask" ); this.propertiesToMask = propertiesToMask; this.radix = mask + "."; }
@Override public <T> BeanHolder<T> getBean(Class<T> typeReference, String nameReference) { Contracts.assertNotNull( typeReference, "typeReference" ); Contracts.assertNotNullNorEmpty( nameReference, "nameReference" ); return beanResolver.resolve( typeReference, nameReference ); } }
@Override public UnknownTypeJsonAccessor property(String propertyName) { Contracts.assertNotNullNorEmpty( propertyName, "propertyName" ); return new ObjectPropertyJsonAccessor( this, propertyName ); }
@Override public MinimumShouldMatchConditionContext<N> ifMoreThan(int ignoreConstraintCeiling) { Contracts.assertPositiveOrZero( ignoreConstraintCeiling, "ignoreConstraintCeiling" ); this.ignoreConstraintCeiling = ignoreConstraintCeiling; return this; }
ImmutableGeoBoundingBox(GeoPoint topLeft, GeoPoint bottomRight) { Contracts.assertNotNull( topLeft, "topLeft" ); Contracts.assertNotNull( bottomRight, "bottomRight" ); this.topLeft = topLeft; this.bottomRight = bottomRight; }
@Override public <T> BeanHolder<T> getBean(Class<T> typeReference, String nameReference) { Contracts.assertNotNull( typeReference, "typeReference" ); Contracts.assertNotNullNorEmpty( nameReference, "nameReference" ); return beanResolver.resolve( typeReference, nameReference ); } }
@Override public UnknownTypeJsonAccessor property(String propertyName) { Contracts.assertNotNullNorEmpty( propertyName, "propertyName" ); return new ObjectPropertyJsonAccessor( this, propertyName ); }
public PojoImplicitReindexingResolverDirtinessFilterNode(PojoPathFilter<S> dirtyPathFilter, PojoImplicitReindexingResolverNode<T, S> delegate) { Contracts.assertNotNull( dirtyPathFilter, "dirtyPathFilter" ); this.dirtyPathFilter = dirtyPathFilter; this.delegate = delegate; }
@Override public <T> CompositeProjectionContext<T> composite(Function<List<?>, T> transformer, SearchProjection<?>... projections) { Contracts.assertNotNull( transformer, "transformer" ); Contracts.assertNotNullNorEmpty( projections, "projections" ); return new CompositeProjectionContextImpl<>( factory, transformer, projections ); }
@Override public UnknownTypeJsonAccessor path(String dotSeparatedPath) { Contracts.assertNotNullNorEmpty( dotSeparatedPath, "dotSeparatedPath" ); String[] components = DOT_REGEX.split( dotSeparatedPath ); String leaf = components[components.length - 1]; JsonObjectAccessor parent = this; for ( int i = 0; i < components.length - 1; i++ ) { parent = parent.property( components[i] ).asObject(); } return parent.property( leaf ); } }
public MaskedConfigurationPropertySource(ConfigurationPropertySource propertiesToMask, String mask) { Contracts.assertNotNull( propertiesToMask, "propertiesToMask" ); Contracts.assertNotNull( mask, "mask" ); this.propertiesToMask = propertiesToMask; this.radix = mask + "."; }
@Override public <T> BeanHolder<T> getBean(Class<T> typeReference, String nameReference) { Contracts.assertNotNull( typeReference, "typeReference" ); Contracts.assertNotNullNorEmpty( nameReference, "nameReference" ); try { return beanResolver.resolve( typeReference, nameReference ); } catch (SearchException e) { return fallbackToConfiguredBeans( e, typeReference, nameReference ); } }
@Override public UnknownTypeJsonAccessor path(String dotSeparatedPath) { Contracts.assertNotNullNorEmpty( dotSeparatedPath, "dotSeparatedPath" ); String[] components = DOT_REGEX.split( dotSeparatedPath ); String leaf = components[components.length - 1]; JsonObjectAccessor parent = this; for ( int i = 0; i < components.length - 1; i++ ) { parent = parent.property( components[i] ).asObject(); } return parent.property( leaf ); } }
AbstractLuceneStandardFieldPredicateBuilderFactory(ToDocumentFieldValueConverter<?, ? extends F> converter, C codec) { Contracts.assertNotNull( converter, "converter" ); Contracts.assertNotNull( codec, "codec" ); this.converter = converter; this.codec = codec; }
@Override public <T> BeanHolder<T> getBean(Class<T> typeReference, String nameReference) { Contracts.assertNotNull( typeReference, "typeReference" ); Contracts.assertNotNullNorEmpty( nameReference, "nameReference" ); try { return beanResolver.resolve( typeReference, nameReference ); } catch (SearchException e) { return fallbackToConfiguredBeans( e, typeReference, nameReference ); } }