All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.engine.cfg.spi.KeyContext Maven / Gradle / Ivy

There is a newer version: 8.0.0.Alpha1
Show newest version
/*
 * Hibernate Search, full-text search for your domain model
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or .
 */
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