Class ImmutableTrees.SimpleBlock.Builder

  • Enclosing class:
    ImmutableTrees.SimpleBlock

    @NotThreadSafe
    public static final class ImmutableTrees.SimpleBlock.Builder
    extends java.lang.Object
    Builds instances of type SimpleBlock. 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.

    • Field Detail

      • parts

        private com.google.common.collect.ImmutableList.Builder<Trees.TemplatePart> parts
    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • from

        public final ImmutableTrees.SimpleBlock.Builder from​(Trees.SimpleBlock instance)
        Fill a builder with attribute values from the provided org.immutables.generator.processor.Trees.SimpleBlock instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableTrees.SimpleBlock.Builder from​(Trees.Block instance)
        Fill a builder with attribute values from the provided org.immutables.generator.processor.Trees.Block instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        private void from​(short _unused,
                          java.lang.Object object)
      • build

        public ImmutableTrees.SimpleBlock build()
        Builds a new SimpleBlock.
        Returns:
        An immutable instance of SimpleBlock
        Throws:
        java.lang.IllegalStateException - if any required attributes are missing