Class ImmutableConstitution.NameForms

    • Field Detail

      • simple

        private final java.lang.String simple
      • relativeRaw

        private final java.lang.String relativeRaw
      • packageOf

        private final java.lang.String packageOf
      • absolute

        private final java.lang.String absolute
      • absoluteRaw

        private final java.lang.String absoluteRaw
      • genericArgs

        private final java.lang.String genericArgs
      • relativeAlreadyQualified

        private final boolean relativeAlreadyQualified
    • Constructor Detail

      • NameForms

        private NameForms​(java.lang.String simple,
                          java.lang.String relativeRaw,
                          java.lang.String packageOf,
                          Visibility visibility,
                          java.lang.String absolute,
                          java.lang.String absoluteRaw,
                          java.lang.String genericArgs,
                          boolean relativeAlreadyQualified)
    • Method Detail

      • withSimple

        public final ImmutableConstitution.NameForms withSimple​(java.lang.String value)
        Copy the current immutable object by setting a value for the simple attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for simple
        Returns:
        A modified copy of the this object
      • withRelativeRaw

        public final ImmutableConstitution.NameForms withRelativeRaw​(java.lang.String value)
        Copy the current immutable object by setting a value for the relativeRaw attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for relativeRaw
        Returns:
        A modified copy of the this object
      • withPackageOf

        public final ImmutableConstitution.NameForms withPackageOf​(java.lang.String value)
        Copy the current immutable object by setting a value for the packageOf attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for packageOf
        Returns:
        A modified copy of the this object
      • withVisibility

        public final ImmutableConstitution.NameForms withVisibility​(Visibility value)
        Copy the current immutable object by setting a value for the visibility attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for visibility
        Returns:
        A modified copy of the this object
      • withAbsolute

        public final ImmutableConstitution.NameForms withAbsolute​(java.lang.String value)
        Copy the current immutable object by setting a value for the absolute attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for absolute
        Returns:
        A modified copy of the this object
      • withAbsoluteRaw

        public final ImmutableConstitution.NameForms withAbsoluteRaw​(java.lang.String value)
        Copy the current immutable object by setting a value for the absoluteRaw attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for absoluteRaw
        Returns:
        A modified copy of the this object
      • withGenericArgs

        public final ImmutableConstitution.NameForms withGenericArgs​(java.lang.String value)
        Copy the current immutable object by setting a value for the genericArgs attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for genericArgs
        Returns:
        A modified copy of the this object
      • withRelativeAlreadyQualified

        public final ImmutableConstitution.NameForms withRelativeAlreadyQualified​(boolean value)
        Copy the current immutable object by setting a value for the relativeAlreadyQualified attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for relativeAlreadyQualified
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of NameForms that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: simple, relativeRaw, packageOf, visibility, absolute, absoluteRaw, genericArgs, relativeAlreadyQualified.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • copyOf

        public static ImmutableConstitution.NameForms copyOf​(Constitution.NameForms instance)
        Creates an immutable copy of a Constitution.NameForms value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable NameForms instance