Class ImmutableType.PrecisionTime.Builder

java.lang.Object
io.substrait.type.ImmutableType.PrecisionTime.Builder
Enclosing class:
ImmutableType.PrecisionTime

public static final class ImmutableType.PrecisionTime.Builder extends Object
Builds instances of type PrecisionTime. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      public final ImmutableType.PrecisionTime.Builder from(NullableType instance)
      Fill a builder with attribute values from the provided io.substrait.function.NullableType instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      Fill a builder with attribute values from the provided io.substrait.type.Type.PrecisionTime instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableType.PrecisionTime.Builder from(Type instance)
      Fill a builder with attribute values from the provided io.substrait.type.Type instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • nullable

      public final ImmutableType.PrecisionTime.Builder nullable(boolean nullable)
      Initializes the value for the nullable attribute.
      Parameters:
      nullable - The value for nullable
      Returns:
      this builder for use in a chained invocation
    • precision

      public final ImmutableType.PrecisionTime.Builder precision(int precision)
      Initializes the value for the precision attribute.
      Parameters:
      precision - The value for precision
      Returns:
      this builder for use in a chained invocation
    • build

      Builds a new PrecisionTime.
      Returns:
      An immutable instance of PrecisionTime
      Throws:
      IllegalStateException - if any required attributes are missing