Module io.helidon.json.schema
Package io.helidon.json.schema
Class SchemaNumber.BuilderBase.SchemaNumberImpl
java.lang.Object
io.helidon.json.schema.SchemaItem.BuilderBase.SchemaItemImpl
io.helidon.json.schema.SchemaNumber.BuilderBase.SchemaNumberImpl
- All Implemented Interfaces:
Prototype.Api,SchemaItem,SchemaNumber
- Enclosing class:
SchemaNumber.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SchemaNumber>
protected static class SchemaNumber.BuilderBase.SchemaNumberImpl
extends SchemaItem.BuilderBase.SchemaItemImpl
implements SchemaNumber
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.json.schema.SchemaItem
SchemaItem.Builder, SchemaItem.BuilderBase<BUILDER extends SchemaItem.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SchemaItem> Nested classes/interfaces inherited from interface io.helidon.json.schema.SchemaNumber
SchemaNumber.Builder, SchemaNumber.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SchemaNumber> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSchemaNumberImpl(SchemaNumber.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanMaximal exclusive value of the number.Minimal exclusive value of the number.default voidgenerate(Hson.Struct.Builder builder) inthashCode()maximum()Maximal value of the number.minimum()Minimal value of the number.Value restriction to be a multiple of a given number.toString()Methods inherited from class io.helidon.json.schema.SchemaItem.BuilderBase.SchemaItemImpl
description, required, schemaType, titleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.json.schema.SchemaItem
description, required, schemaType, title
-
Constructor Details
-
SchemaNumberImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
multipleOf
Description copied from interface:SchemaNumberValue restriction to be a multiple of a given number.- Specified by:
multipleOfin interfaceSchemaNumber- Returns:
- multiple value restriction
-
minimum
Description copied from interface:SchemaNumberMinimal value of the number. Cannot be higher than maximal configured value. Mutually exclusive toSchemaNumber.exclusiveMinimum().- Specified by:
minimumin interfaceSchemaNumber- Returns:
- minimal value
-
maximum
Description copied from interface:SchemaNumberMaximal value of the number. Cannot be lower than minimal configured value. Mutually exclusive toSchemaNumber.exclusiveMaximum().- Specified by:
maximumin interfaceSchemaNumber- Returns:
- maximal value
-
exclusiveMaximum
Description copied from interface:SchemaNumberMaximal exclusive value of the number. Cannot be lower than minimal configured value. Mutually exclusive toSchemaNumber.maximum().- Specified by:
exclusiveMaximumin interfaceSchemaNumber- Returns:
- maximal exclusive value
-
exclusiveMinimum
Description copied from interface:SchemaNumberMinimal exclusive value of the number. Cannot be higher than maximal configured value. Mutually exclusive toSchemaNumber.minimum().- Specified by:
exclusiveMinimumin interfaceSchemaNumber- Returns:
- minimal exclusive value
-
toString
- Overrides:
toStringin classSchemaItem.BuilderBase.SchemaItemImpl
-
equals
- Overrides:
equalsin classSchemaItem.BuilderBase.SchemaItemImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classSchemaItem.BuilderBase.SchemaItemImpl
-
schemaType
SchemaType schemaType() -
generate
-