Class ImmutableCompanyAdminCountResponse
java.lang.Object
com.iland.core.web.rest.response.iam.ImmutableCompanyAdminCountResponse
- All Implemented Interfaces:
CompanyAdminCountResponse
@Generated(from="CompanyAdminCountResponse",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableCompanyAdminCountResponse
extends Object
implements CompanyAdminCountResponse
Immutable implementation of
CompanyAdminCountResponse.
Use the builder to create immutable instances:
ImmutableCompanyAdminCountResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableCompanyAdminCountResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableCompanyAdminCountResponse.copyOf(CompanyAdminCountResponse instance) Creates an immutable copy of aCompanyAdminCountResponsevalue.intcount()Number of company admins in given company.booleanThis instance is equal to all instances ofImmutableCompanyAdminCountResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:count.toString()Prints the immutable valueCompanyAdminCountResponsewith attribute values.withCount(int value) Copy the current immutable object by setting a value for thecountattribute.
-
Method Details
-
count
public int count()Number of company admins in given company.- Specified by:
countin interfaceCompanyAdminCountResponse
-
withCount
Copy the current immutable object by setting a value for thecountattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for count- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableCompanyAdminCountResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:count. -
toString
Prints the immutable valueCompanyAdminCountResponsewith attribute values. -
copyOf
Creates an immutable copy of aCompanyAdminCountResponsevalue. 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 CompanyAdminCountResponse instance
-
builder
Creates a builder forImmutableCompanyAdminCountResponse.ImmutableCompanyAdminCountResponse.builder() .count(int) // requiredcount.build();- Returns:
- A new ImmutableCompanyAdminCountResponse builder
-