Package com.telenordigital.nbiot
Class ImmutableSystemDefaults
- java.lang.Object
-
- com.telenordigital.nbiot.ImmutableSystemDefaults
-
- All Implemented Interfaces:
SystemDefaults
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableSystemDefaults extends Object implements SystemDefaults
Immutable implementation ofSystemDefaults.Use the builder to create immutable instances:
new ImmutableSystemDefaults.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableSystemDefaults.BuilderBuilds instances of typeImmutableSystemDefaults.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableSystemDefaultscopyOf(SystemDefaults instance)Creates an immutable copy of aSystemDefaultsvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableSystemDefaultsthat have equal attribute values.FieldMaskfieldMask()The default field maskFieldMaskforcedFieldMask()The forced field maskinthashCode()Computes a hash code from attributes:fieldMask,forcedFieldMask.StringtoString()Prints the immutable valueSystemDefaultswith attribute values.ImmutableSystemDefaultswithFieldMask(FieldMask value)Copy the current immutable object by setting a value for thefieldMaskattribute.ImmutableSystemDefaultswithForcedFieldMask(FieldMask value)Copy the current immutable object by setting a value for theforcedFieldMaskattribute.
-
-
-
Method Detail
-
fieldMask
@Nullable public FieldMask fieldMask()
The default field mask- Specified by:
fieldMaskin interfaceSystemDefaults
-
forcedFieldMask
@Nullable public FieldMask forcedFieldMask()
The forced field mask- Specified by:
forcedFieldMaskin interfaceSystemDefaults
-
withFieldMask
public final ImmutableSystemDefaults withFieldMask(@Nullable FieldMask value)
Copy the current immutable object by setting a value for thefieldMaskattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fieldMask (can benull)- Returns:
- A modified copy of the
thisobject
-
withForcedFieldMask
public final ImmutableSystemDefaults withForcedFieldMask(@Nullable FieldMask value)
Copy the current immutable object by setting a value for theforcedFieldMaskattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for forcedFieldMask (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableSystemDefaultsthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:fieldMask,forcedFieldMask.
-
toString
public String toString()
Prints the immutable valueSystemDefaultswith attribute values.
-
copyOf
public static ImmutableSystemDefaults copyOf(SystemDefaults instance)
Creates an immutable copy of aSystemDefaultsvalue. 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 SystemDefaults instance
-
-