Class ImmutableConstitution.Builder

  • Enclosing class:
    ImmutableConstitution

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

    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • build

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

        private boolean protoclassIsSet()
      • checkNotIsSet

        private static void checkNotIsSet​(boolean isSet,
                                          java.lang.String name)
      • checkRequiredAttributes

        private void checkRequiredAttributes()
      • formatRequiredAttributesMessage

        private java.lang.String formatRequiredAttributesMessage()