Interface IIntegerValueDescriptor
-
- All Superinterfaces:
IValueDescriptor<Number,IIntegerValueBuilder>
,Serializable
public interface IIntegerValueDescriptor extends IValueDescriptor<Number,IIntegerValueBuilder>
AIValueDescriptor
for an integer value. The value must be a 64-bit integer. Optionally, it can be restricted to a certain range.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IIntegerValueDescriptorBuilder
configure()
Creates a new builder pre-configured with the settings of this descriptor.default EValueType
getBaseType()
default Class<?>
getJavaClass()
com.google.common.collect.Range<Long>
getRange()
IIntegerValueDescriptor
withDefaultValue(Object defaultValue)
IIntegerValueDescriptor
withDescription(String description)
-
Methods inherited from interface de.xima.fc.interfaces.workflow.value.IValueDescriptor
acceptsValue, asAny, asBoolean, asConst, asFloat, asInteger, asLargeString, asList, asList, asMap, asMap, asNull, asRecord, asString, asTuple, asUnion, asUnion, asVoid, builder, getDefaultValue, getDescription, getFullType, getKnownProperties, getKnownProperties, intersect, is, unwrap
-
-
-
-
Method Detail
-
configure
IIntegerValueDescriptorBuilder configure()
Description copied from interface:IValueDescriptor
Creates a new builder pre-configured with the settings of this descriptor. Lets you e.g. add additional properties.- Specified by:
configure
in interfaceIValueDescriptor<Number,IIntegerValueBuilder>
- Returns:
- A new builder pre-configured with the settings of this descriptor.
-
getBaseType
default EValueType getBaseType()
- Specified by:
getBaseType
in interfaceIValueDescriptor<Number,IIntegerValueBuilder>
- Returns:
- The basic type of value described by this value descriptor.
-
getJavaClass
default Class<?> getJavaClass()
- Specified by:
getJavaClass
in interfaceIValueDescriptor<Number,IIntegerValueBuilder>
- Returns:
- The Java class of the values described by this descriptor.
-
getRange
com.google.common.collect.Range<Long> getRange()
- Returns:
- Allowed range of the integer value.
-
withDefaultValue
IIntegerValueDescriptor withDefaultValue(Object defaultValue)
- Specified by:
withDefaultValue
in interfaceIValueDescriptor<Number,IIntegerValueBuilder>
- Parameters:
defaultValue
- The new default value. May be changed when it does not conform to the restrictions imposed by this descriptor.- Returns:
- A new descriptor with the default value.
-
withDescription
IIntegerValueDescriptor withDescription(String description)
- Specified by:
withDescription
in interfaceIValueDescriptor<Number,IIntegerValueBuilder>
- Parameters:
description
- The new description.- Returns:
- A new descriptor with the given description.
-
-