Class ImmutableProgramContextNamedValue
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableProgramContextNamedValue
- All Implemented Interfaces:
Program.ProgramContextNamedValue
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableProgramContextNamedValue
extends Object
implements Program.ProgramContextNamedValue
Immutable implementation of
Program.ProgramContextNamedValue.
Use the builder to create immutable instances:
ImmutableProgramContextNamedValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableProgramContextNamedValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableProgramContextNamedValue.copyOf(Program.ProgramContextNamedValue instance) Creates an immutable copy of aProgram.ProgramContextNamedValuevalue.booleanThis instance is equal to all instances ofImmutableProgramContextNamedValuethat have equal attribute values.getFound()getValue()inthashCode()Computes a hash code from attributes:found,value.toString()Prints the immutable valueProgramContextNamedValuewith attribute values.Copy the current immutable object by setting a value for thefoundattribute.withValue(Serializable value) Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
getFound
- Specified by:
getFoundin interfaceProgram.ProgramContextNamedValue- Returns:
- The value of the
foundattribute
-
getValue
- Specified by:
getValuein interfaceProgram.ProgramContextNamedValue- Returns:
- The value of the
valueattribute
-
withFound
Copy the current immutable object by setting a value for thefoundattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for found- Returns:
- A modified copy of the
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableProgramContextNamedValuethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:found,value. -
toString
Prints the immutable valueProgramContextNamedValuewith attribute values. -
copyOf
Creates an immutable copy of aProgram.ProgramContextNamedValuevalue. 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 ProgramContextNamedValue instance
-
builder
Creates a builder forImmutableProgramContextNamedValue.ImmutableProgramContextNamedValue.builder() .found(Boolean) // requiredfound.value(java.io.Serializable | null) // nullablevalue.build();- Returns:
- A new ImmutableProgramContextNamedValue builder
-