Class ImmutableInviteUserEmailSet

java.lang.Object
com.iland.core.web.rest.request.user.ImmutableInviteUserEmailSet
All Implemented Interfaces:
InviteUserEmailSet

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

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

  • Method Details

    • users

      public com.google.common.collect.ImmutableSet<String> users()
      Specified by:
      users in interface InviteUserEmailSet
      Returns:
      The value of the users attribute
    • withUsers

      public final ImmutableInviteUserEmailSet withUsers(String... 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 ImmutableInviteUserEmailSet withUsers(Iterable<String> 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 ImmutableInviteUserEmailSet 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 InviteUserEmailSet with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

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

      public static ImmutableInviteUserEmailSet.Builder builder()
      Creates a builder for ImmutableInviteUserEmailSet.
       ImmutableInviteUserEmailSet.builder()
          .addUsers|addAllUsers(String) // users elements
          .build();
       
      Returns:
      A new ImmutableInviteUserEmailSet builder