org.hibernate.search.engine.cfg.spi.KeyContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Hibernate Search engine, always required
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.cfg.spi;
import java.util.function.Function;
import org.hibernate.search.engine.environment.bean.BeanReference;
public interface KeyContext {
OptionalPropertyContext asString();
OptionalPropertyContext asBoolean();
/**
* @return The next context.
* @deprecated Use {@link #asIntegerPositiveOrZeroOrNegative()} instead.
*/
@Deprecated
default OptionalPropertyContext asInteger() {
return asIntegerPositiveOrZeroOrNegative();
}
OptionalPropertyContext asIntegerPositiveOrZeroOrNegative();
OptionalPropertyContext asIntegerPositiveOrZero();
OptionalPropertyContext asIntegerStrictlyPositive();
/**
* @return The next context.
* @deprecated Use {@link #asLongPositiveOrZeroOrNegative()} instead.
*/
@Deprecated
default OptionalPropertyContext asLong() {
return asLongPositiveOrZeroOrNegative();
}
OptionalPropertyContext asLongPositiveOrZeroOrNegative();
OptionalPropertyContext asLongStrictlyPositive();
OptionalPropertyContext> asBeanReference(Class expectedBeanType);
OptionalPropertyContext as(Class expectedType, Function parser);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy