Class ImmutableCompanyHeaderResponse
java.lang.Object
com.iland.core.web.rest.response.company.ImmutableCompanyHeaderResponse
- All Implemented Interfaces:
CompanyHeaderResponse
@Generated(from="CompanyHeaderResponse",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableCompanyHeaderResponse
extends Object
implements CompanyHeaderResponse
Immutable implementation of
CompanyHeaderResponse.
Use the builder to create immutable instances:
ImmutableCompanyHeaderResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableCompanyHeaderResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableCompanyHeaderResponse.The company ID.The company name.copyOf(CompanyHeaderResponse instance) Creates an immutable copy of aCompanyHeaderResponsevalue.booleanThis instance is equal to all instances ofImmutableCompanyHeaderResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:companyId,companyName.toString()Prints the immutable valueCompanyHeaderResponsewith attribute values.withCompanyId(String value) Copy the current immutable object by setting a value for thecompanyIdattribute.withCompanyName(String value) Copy the current immutable object by setting a value for thecompanyNameattribute.
-
Method Details
-
companyId
The company ID.- Specified by:
companyIdin interfaceCompanyHeaderResponse
-
companyName
The company name.- Specified by:
companyNamein interfaceCompanyHeaderResponse
-
withCompanyId
Copy the current immutable object by setting a value for thecompanyIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for companyId- Returns:
- A modified copy of the
thisobject
-
withCompanyName
Copy the current immutable object by setting a value for thecompanyNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for companyName- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableCompanyHeaderResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:companyId,companyName. -
toString
Prints the immutable valueCompanyHeaderResponsewith attribute values. -
copyOf
Creates an immutable copy of aCompanyHeaderResponsevalue. 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 CompanyHeaderResponse instance
-
builder
Creates a builder forImmutableCompanyHeaderResponse.ImmutableCompanyHeaderResponse.builder() .companyId(String) // requiredcompanyId.companyName(String) // requiredcompanyName.build();- Returns:
- A new ImmutableCompanyHeaderResponse builder
-