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 ofLinkifierDto.Use the builder to create immutable instances:
ImmutableLinkifierDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableLinkifierDto.BuilderBuilds instances of typeImmutableLinkifierDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableLinkifierDto.Builderbuilder()Creates a builder forImmutableLinkifierDto.static ImmutableLinkifierDtocopyOf(LinkifierDto instance)Creates an immutable copy of aLinkifierDtovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableLinkifierDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:pattern,link,id.Stringid()Stringlink()Stringpattern()StringtoString()Prints the immutable valueLinkifierDtowith attribute values.ImmutableLinkifierDtowithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableLinkifierDtowithLink(String value)Copy the current immutable object by setting a value for thelinkattribute.ImmutableLinkifierDtowithPattern(String value)Copy the current immutable object by setting a value for thepatternattribute.
-
-
-
Method Detail
-
pattern
public String pattern()
- Specified by:
patternin interfaceLinkifierDto- Returns:
- The value of the
patternattribute
-
link
public String link()
- Specified by:
linkin interfaceLinkifierDto- Returns:
- The value of the
linkattribute
-
id
public String id()
- Specified by:
idin interfaceLinkifierDto- Returns:
- The value of the
idattribute
-
withPattern
public final ImmutableLinkifierDto withPattern(String value)
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
public final ImmutableLinkifierDto withLink(String value)
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
public final ImmutableLinkifierDto withId(String value)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueLinkifierDtowith attribute values.
-
copyOf
public static ImmutableLinkifierDto copyOf(LinkifierDto instance)
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
public static ImmutableLinkifierDto.Builder builder()
Creates a builder forImmutableLinkifierDto.ImmutableLinkifierDto.builder() .pattern(String) // requiredpattern.link(String) // requiredlink.id(String) // requiredid.build();- Returns:
- A new ImmutableLinkifierDto builder
-
-