Class ImmutableLinkifierDto
java.lang.Object
com.chutneytesting.design.api.plugins.linkifier.ImmutableLinkifierDto
- All Implemented Interfaces:
LinkifierDto
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableLinkifierDto
extends Object
implements LinkifierDto
Immutable implementation of
LinkifierDto.
Use the builder to create immutable instances:
ImmutableLinkifierDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableLinkifierDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableLinkifierDto.static ImmutableLinkifierDtocopyOf(LinkifierDto instance) Creates an immutable copy of aLinkifierDtovalue.booleanThis instance is equal to all instances ofImmutableLinkifierDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:pattern,link,id.id()link()pattern()toString()Prints the immutable valueLinkifierDtowith attribute values.final ImmutableLinkifierDtoCopy the current immutable object by setting a value for theidattribute.final ImmutableLinkifierDtoCopy the current immutable object by setting a value for thelinkattribute.final ImmutableLinkifierDtowithPattern(String value) Copy the current immutable object by setting a value for thepatternattribute.
-
Method Details
-
pattern
- Specified by:
patternin interfaceLinkifierDto- Returns:
- The value of the
patternattribute
-
link
- Specified by:
linkin interfaceLinkifierDto- Returns:
- The value of the
linkattribute
-
id
- Specified by:
idin interfaceLinkifierDto- Returns:
- The value of the
idattribute
-
withPattern
Copy the current immutable object by setting a value for thepatternattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for pattern- Returns:
- A modified copy of the
thisobject
-
withLink
Copy the current immutable object by setting a value for thelinkattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for link- Returns:
- A modified copy of the
thisobject
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableLinkifierDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:pattern,link,id. -
toString
Prints the immutable valueLinkifierDtowith attribute values. -
copyOf
Creates an immutable copy of aLinkifierDtovalue. 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 LinkifierDto instance
-
builder
Creates a builder forImmutableLinkifierDto.ImmutableLinkifierDto.builder() .pattern(String) // requiredpattern.link(String) // requiredlink.id(String) // requiredid.build();- Returns:
- A new ImmutableLinkifierDto builder
-