Class SchemaNumber.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaNumber>

java.lang.Object
io.helidon.json.schema.SchemaItem.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.json.schema.SchemaNumber.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
SchemaNumber.Builder
Enclosing interface:
SchemaNumber

public abstract static class SchemaNumber.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaNumber> extends SchemaItem.BuilderBase<BUILDER,PROTOTYPE> implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for SchemaNumber.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(SchemaNumber prototype)
      Update this builder from an existing prototype instance. This method disables automatic service discovery.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      public BUILDER from(SchemaNumber.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • clearMultipleOf

      public BUILDER clearMultipleOf()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • multipleOf

      public BUILDER multipleOf(double multipleOf)
      Value restriction to be a multiple of a given number.
      Parameters:
      multipleOf - multiple value restriction
      Returns:
      updated builder instance
      See Also:
    • clearMinimum

      public BUILDER clearMinimum()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • minimum

      public BUILDER minimum(double minimum)
      Minimal value of the number. Cannot be higher than maximal configured value. Mutually exclusive to exclusiveMinimum().
      Parameters:
      minimum - minimal value
      Returns:
      updated builder instance
      See Also:
    • clearMaximum

      public BUILDER clearMaximum()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • maximum

      public BUILDER maximum(double maximum)
      Maximal value of the number. Cannot be lower than minimal configured value. Mutually exclusive to exclusiveMaximum().
      Parameters:
      maximum - maximal value
      Returns:
      updated builder instance
      See Also:
    • clearExclusiveMaximum

      public BUILDER clearExclusiveMaximum()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • exclusiveMaximum

      public BUILDER exclusiveMaximum(double exclusiveMaximum)
      Maximal exclusive value of the number. Cannot be lower than minimal configured value. Mutually exclusive to maximum().
      Parameters:
      exclusiveMaximum - maximal exclusive value
      Returns:
      updated builder instance
      See Also:
    • clearExclusiveMinimum

      public BUILDER clearExclusiveMinimum()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • exclusiveMinimum

      public BUILDER exclusiveMinimum(double exclusiveMinimum)
      Minimal exclusive value of the number. Cannot be higher than maximal configured value. Mutually exclusive to minimum().
      Parameters:
      exclusiveMinimum - minimal exclusive value
      Returns:
      updated builder instance
      See Also:
    • multipleOf

      public Optional<Double> multipleOf()
      Value restriction to be a multiple of a given number.
      Returns:
      the multiple of
    • minimum

      public Optional<Double> minimum()
      Minimal value of the number. Cannot be higher than maximal configured value. Mutually exclusive to exclusiveMinimum().
      Returns:
      the minimum
    • maximum

      public Optional<Double> maximum()
      Maximal value of the number. Cannot be lower than minimal configured value. Mutually exclusive to exclusiveMaximum().
      Returns:
      the maximum
    • exclusiveMaximum

      public Optional<Double> exclusiveMaximum()
      Maximal exclusive value of the number. Cannot be lower than minimal configured value. Mutually exclusive to maximum().
      Returns:
      the exclusive maximum
    • exclusiveMinimum

      public Optional<Double> exclusiveMinimum()
      Minimal exclusive value of the number. Cannot be higher than maximal configured value. Mutually exclusive to minimum().
      Returns:
      the exclusive minimum
    • toString

      public String toString()
      Overrides:
      toString in class SchemaItem.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaNumber>
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
      Overrides:
      preBuildPrototype in class SchemaItem.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaNumber>
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.
      Overrides:
      validatePrototype in class SchemaItem.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaNumber>