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
/*
 * 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