Package com.telenordigital.nbiot
Class ImmutableFieldMask
- java.lang.Object
-
- com.telenordigital.nbiot.ImmutableFieldMask
-
- All Implemented Interfaces:
FieldMask
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableFieldMask extends Object implements FieldMask
Immutable implementation ofFieldMask.Use the builder to create immutable instances:
new ImmutableFieldMask.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFieldMask.BuilderBuilds instances of typeImmutableFieldMask.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFieldMaskcopyOf(FieldMask instance)Creates an immutable copy of aFieldMaskvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFieldMaskthat have equal attribute values.inthashCode()Computes a hash code from attributes:imsi,imei,location,msisdn.Booleanimei()Whether to mask the IMEI.Booleanimsi()Whether to mask the IMSI.Booleanlocation()Whether to mask the location.Booleanmsisdn()Whether to mask the MSISDN.StringtoString()Prints the immutable valueFieldMaskwith attribute values.ImmutableFieldMaskwithImei(Boolean value)Copy the current immutable object by setting a value for theimeiattribute.ImmutableFieldMaskwithImsi(Boolean value)Copy the current immutable object by setting a value for theimsiattribute.ImmutableFieldMaskwithLocation(Boolean value)Copy the current immutable object by setting a value for thelocationattribute.ImmutableFieldMaskwithMsisdn(Boolean value)Copy the current immutable object by setting a value for themsisdnattribute.
-
-
-
Method Detail
-
withImsi
public final ImmutableFieldMask withImsi(@Nullable Boolean value)
Copy the current immutable object by setting a value for theimsiattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for imsi (can benull)- Returns:
- A modified copy of the
thisobject
-
withImei
public final ImmutableFieldMask withImei(@Nullable Boolean value)
Copy the current immutable object by setting a value for theimeiattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for imei (can benull)- Returns:
- A modified copy of the
thisobject
-
withLocation
public final ImmutableFieldMask withLocation(@Nullable Boolean value)
Copy the current immutable object by setting a value for thelocationattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for location (can benull)- Returns:
- A modified copy of the
thisobject
-
withMsisdn
public final ImmutableFieldMask withMsisdn(@Nullable Boolean value)
Copy the current immutable object by setting a value for themsisdnattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for msisdn (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableFieldMaskthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:imsi,imei,location,msisdn.
-
toString
public String toString()
Prints the immutable valueFieldMaskwith attribute values.
-
copyOf
public static ImmutableFieldMask copyOf(FieldMask instance)
Creates an immutable copy of aFieldMaskvalue. 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 FieldMask instance
-
-