Class KeyContextImpl
- java.lang.Object
-
- org.hibernate.search.engine.cfg.impl.KeyContextImpl
-
- All Implemented Interfaces:
KeyContext
public class KeyContextImpl extends Object implements KeyContext
-
-
Constructor Summary
Constructors Constructor Description KeyContextImpl(String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> OptionalPropertyContext<T>as(Class<T> expectedType, Function<String,T> parser)<T> OptionalPropertyContext<BeanReference<? extends T>>asBeanReference(Class<T> expectedBeanType)OptionalPropertyContext<Boolean>asBoolean()OptionalPropertyContext<Integer>asIntegerPositiveOrZero()OptionalPropertyContext<Integer>asIntegerPositiveOrZeroOrNegative()OptionalPropertyContext<Integer>asIntegerStrictlyPositive()OptionalPropertyContext<Long>asLongPositiveOrZeroOrNegative()OptionalPropertyContext<Long>asLongStrictlyPositive()OptionalPropertyContext<String>asString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.engine.cfg.spi.KeyContext
asInteger, asLong
-
-
-
-
Constructor Detail
-
KeyContextImpl
public KeyContextImpl(String key)
-
-
Method Detail
-
asString
public OptionalPropertyContext<String> asString()
- Specified by:
asStringin interfaceKeyContext
-
asBoolean
public OptionalPropertyContext<Boolean> asBoolean()
- Specified by:
asBooleanin interfaceKeyContext
-
asIntegerPositiveOrZeroOrNegative
public OptionalPropertyContext<Integer> asIntegerPositiveOrZeroOrNegative()
- Specified by:
asIntegerPositiveOrZeroOrNegativein interfaceKeyContext
-
asIntegerPositiveOrZero
public OptionalPropertyContext<Integer> asIntegerPositiveOrZero()
- Specified by:
asIntegerPositiveOrZeroin interfaceKeyContext
-
asIntegerStrictlyPositive
public OptionalPropertyContext<Integer> asIntegerStrictlyPositive()
- Specified by:
asIntegerStrictlyPositivein interfaceKeyContext
-
asLongPositiveOrZeroOrNegative
public OptionalPropertyContext<Long> asLongPositiveOrZeroOrNegative()
- Specified by:
asLongPositiveOrZeroOrNegativein interfaceKeyContext
-
asLongStrictlyPositive
public OptionalPropertyContext<Long> asLongStrictlyPositive()
- Specified by:
asLongStrictlyPositivein interfaceKeyContext
-
asBeanReference
public <T> OptionalPropertyContext<BeanReference<? extends T>> asBeanReference(Class<T> expectedBeanType)
- Specified by:
asBeanReferencein interfaceKeyContext
-
as
public <T> OptionalPropertyContext<T> as(Class<T> expectedType, Function<String,T> parser)
- Specified by:
asin interfaceKeyContext
-
-