Class ImmutableUserCreationSetResponse

java.lang.Object
com.iland.core.web.rest.response.user.ImmutableUserCreationSetResponse
All Implemented Interfaces:
UserCreationSetResponse

@Generated(from="UserCreationSetResponse", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableUserCreationSetResponse extends Object implements UserCreationSetResponse
Immutable implementation of UserCreationSetResponse.

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

  • Method Details

    • users

      public com.google.common.collect.ImmutableSet<UserCreationResponse> users()
      Set of users creation responses.
      Specified by:
      users in interface UserCreationSetResponse
      Returns:
      Set of UserCreationResponse user creation response
    • withUsers

      public final ImmutableUserCreationSetResponse withUsers(UserCreationResponse... elements)
      Copy the current immutable object with elements that replace the content of users.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withUsers

      public final ImmutableUserCreationSetResponse withUsers(Iterable<? extends UserCreationResponse> elements)
      Copy the current immutable object with elements that replace the content of users. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of users elements to set
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableUserCreationSetResponse 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: users.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      Creates an immutable copy of a UserCreationSetResponse 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 UserCreationSetResponse instance
    • builder

      Creates a builder for ImmutableUserCreationSetResponse.
       ImmutableUserCreationSetResponse.builder()
          .addUsers|addAllUsers(com.iland.core.web.rest.response.user.UserCreationResponse) // users elements
          .build();
       
      Returns:
      A new ImmutableUserCreationSetResponse builder