Class ImmutableUaaMeta

  • All Implemented Interfaces:
    UaaMeta

    @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    public final class ImmutableUaaMeta
    extends Object
    implements UaaMeta
    Immutable implementation of UaaMeta.

    Use the builder to create immutable instances: ImmutableUaaMeta.builder().

    • Method Detail

      • getVersion

        public Integer getVersion()
        Specified by:
        getVersion in interface UaaMeta
        Returns:
        The value of the version attribute
      • withVersion

        public final ImmutableUaaMeta withVersion​(Integer value)
        Copy the current immutable object by setting a value for the version attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for version (can be null)
        Returns:
        A modified copy of the this object
      • withCreated

        public final ImmutableUaaMeta withCreated​(OffsetDateTime value)
        Copy the current immutable object by setting a value for the created attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for created (can be null)
        Returns:
        A modified copy of the this object
      • withLastModified

        public final ImmutableUaaMeta withLastModified​(OffsetDateTime value)
        Copy the current immutable object by setting a value for the lastModified attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for lastModified (can be null)
        Returns:
        A modified copy of the this object
      • equals

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

        public int hashCode()
        Computes a hash code from attributes: version, created, lastModified.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value UaaMeta with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableUaaMeta copyOf​(UaaMeta instance)
        Creates an immutable copy of a UaaMeta 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 UaaMeta instance
      • builder

        public static ImmutableUaaMeta.Builder builder()
        Creates a builder for ImmutableUaaMeta.
         ImmutableUaaMeta.builder()
            .version(Integer | null) // nullable version
            .created(java.time.OffsetDateTime | null) // nullable created
            .lastModified(java.time.OffsetDateTime | null) // nullable lastModified
            .build();
         
        Returns:
        A new ImmutableUaaMeta builder