Package com.telenordigital.nbiot
Class ImmutableInviteList
- java.lang.Object
-
- com.telenordigital.nbiot.ImmutableInviteList
-
- All Implemented Interfaces:
Invite.InviteList
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableInviteList extends Object implements Invite.InviteList
Immutable implementation ofInvite.InviteList.Use the builder to create immutable instances:
new ImmutableInviteList.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableInviteList.BuilderBuilds instances of typeImmutableInviteList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableInviteListcopyOf(Invite.InviteList instance)Creates an immutable copy of aInvite.InviteListvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableInviteListthat have equal attribute values.inthashCode()Computes a hash code from attributes:invites.Invite[]invites()StringtoString()Prints the immutable valueInviteListwith attribute values.ImmutableInviteListwithInvites(Invite... elements)Copy the current immutable object with elements that replace the content ofinvites.
-
-
-
Method Detail
-
invites
@Nullable public Invite[] invites()
- Specified by:
invitesin interfaceInvite.InviteList- Returns:
- A cloned
invitesarray
-
withInvites
public final ImmutableInviteList withInvites(@Nullable Invite... elements)
Copy the current immutable object with elements that replace the content ofinvites. The array is cloned before being saved as attribute values.- Parameters:
elements- The non-null elements for invites- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableInviteListthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:invites.
-
toString
public String toString()
Prints the immutable valueInviteListwith attribute values.
-
copyOf
public static ImmutableInviteList copyOf(Invite.InviteList instance)
Creates an immutable copy of aInvite.InviteListvalue. 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 InviteList instance
-
-