Class ImmutableCAAResult
- java.lang.Object
-
- net.rpcnet.securitytoolkit.web.ssl.caa.ImmutableCAAResult
-
- All Implemented Interfaces:
CAAResult
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCAAResult extends Object implements CAAResult
Immutable implementation ofCAAResult.Use the builder to create immutable instances:
ImmutableCAAResult.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCAAResult.BuilderBuilds instances of typeImmutableCAAResult.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCAAResult.Builderbuilder()Creates a builder forImmutableCAAResult.static ImmutableCAAResultcopyOf(CAAResult instance)Creates an immutable copy of aCAAResultvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCAAResultthat have equal attribute values.Optional<Integer>getFlags()Optional<String>getTag()Optional<String>getValue()inthashCode()Computes a hash code from attributes:tag,value,flags.StringtoString()Prints the immutable valueCAAResultwith attribute values.ImmutableCAAResultwithFlags(int value)Copy the current immutable object by setting a present value for the optionalflagsattribute.ImmutableCAAResultwithFlags(Optional<Integer> optional)Copy the current immutable object by setting an optional value for theflagsattribute.ImmutableCAAResultwithTag(String value)Copy the current immutable object by setting a present value for the optionaltagattribute.ImmutableCAAResultwithTag(Optional<String> optional)Copy the current immutable object by setting an optional value for thetagattribute.ImmutableCAAResultwithValue(String value)Copy the current immutable object by setting a present value for the optionalvalueattribute.ImmutableCAAResultwithValue(Optional<String> optional)Copy the current immutable object by setting an optional value for thevalueattribute.
-
-
-
Method Detail
-
withTag
public final ImmutableCAAResult withTag(String value)
Copy the current immutable object by setting a present value for the optionaltagattribute.- Parameters:
value- The value for tag- Returns:
- A modified copy of
thisobject
-
withTag
public final ImmutableCAAResult withTag(Optional<String> optional)
Copy the current immutable object by setting an optional value for thetagattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for tag- Returns:
- A modified copy of
thisobject
-
withValue
public final ImmutableCAAResult withValue(String value)
Copy the current immutable object by setting a present value for the optionalvalueattribute.- Parameters:
value- The value for value- Returns:
- A modified copy of
thisobject
-
withValue
public final ImmutableCAAResult withValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for thevalueattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for value- Returns:
- A modified copy of
thisobject
-
withFlags
public final ImmutableCAAResult withFlags(int value)
Copy the current immutable object by setting a present value for the optionalflagsattribute.- Parameters:
value- The value for flags- Returns:
- A modified copy of
thisobject
-
withFlags
public final ImmutableCAAResult withFlags(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for theflagsattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for flags- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCAAResultthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:tag,value,flags.
-
toString
public String toString()
Prints the immutable valueCAAResultwith attribute values.
-
copyOf
public static ImmutableCAAResult copyOf(CAAResult instance)
Creates an immutable copy of aCAAResultvalue. 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 CAAResult instance
-
builder
public static ImmutableCAAResult.Builder builder()
Creates a builder forImmutableCAAResult.ImmutableCAAResult.builder() .tag(String) // optionaltag.value(String) // optionalvalue.flags(Integer) // optionalflags.build();- Returns:
- A new ImmutableCAAResult builder
-
-