Package io.dialob.spring.composer
Class ImmutableIdeToken
- java.lang.Object
-
- io.dialob.spring.composer.ImmutableIdeToken
-
- All Implemented Interfaces:
ComposerAutoConfiguration.IdeToken
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableIdeToken extends Object implements ComposerAutoConfiguration.IdeToken
Immutable implementation ofComposerAutoConfiguration.IdeToken.Use the builder to create immutable instances:
ImmutableIdeToken.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableIdeToken.BuilderBuilds instances of typeImmutableIdeToken.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableIdeToken.Builderbuilder()Creates a builder forImmutableIdeToken.static ImmutableIdeTokencopyOf(ComposerAutoConfiguration.IdeToken instance)Creates an immutable copy of aComposerAutoConfiguration.IdeTokenvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableIdeTokenthat have equal attribute values.StringgetKey()StringgetValue()inthashCode()Computes a hash code from attributes:key,value.StringtoString()Prints the immutable valueIdeTokenwith attribute values.ImmutableIdeTokenwithKey(String value)Copy the current immutable object by setting a value for thekeyattribute.ImmutableIdeTokenwithValue(String value)Copy the current immutable object by setting a value for thevalueattribute.
-
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceComposerAutoConfiguration.IdeToken- Returns:
- The value of the
keyattribute
-
getValue
public String getValue()
- Specified by:
getValuein interfaceComposerAutoConfiguration.IdeToken- Returns:
- The value of the
valueattribute
-
withKey
public final ImmutableIdeToken withKey(String value)
Copy the current immutable object by setting a value for thekeyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for key- Returns:
- A modified copy of the
thisobject
-
withValue
public final ImmutableIdeToken withValue(String value)
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableIdeTokenthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:key,value.
-
toString
public String toString()
Prints the immutable valueIdeTokenwith attribute values.
-
copyOf
public static ImmutableIdeToken copyOf(ComposerAutoConfiguration.IdeToken instance)
Creates an immutable copy of aComposerAutoConfiguration.IdeTokenvalue. 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 IdeToken instance
-
builder
public static ImmutableIdeToken.Builder builder()
Creates a builder forImmutableIdeToken.ImmutableIdeToken.builder() .key(String) // requiredkey.value(String) // requiredvalue.build();- Returns:
- A new ImmutableIdeToken builder
-
-