Package io.jenkins.plugins.trunk.model
Class ImmutableRepo
java.lang.Object
io.jenkins.plugins.trunk.model.ImmutableRepo
- All Implemented Interfaces:
Repo
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableRepo
extends Object
implements Repo
Immutable implementation of
Repo
.
Use the builder to create immutable instances:
ImmutableRepo.builder()
.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableRepo.Builder
builder()
Creates a builder forImmutableRepo
.static ImmutableRepo
Creates an immutable copy of aRepo
value.boolean
This instance is equal to all instances ofImmutableRepo
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:host
,owner
,name
.host()
name()
owner()
toString()
Prints the immutable valueRepo
with attribute values.final ImmutableRepo
Copy the current immutable object by setting a value for thehost
attribute.final ImmutableRepo
Copy the current immutable object by setting a value for thename
attribute.final ImmutableRepo
Copy the current immutable object by setting a value for theowner
attribute.
-
Method Details
-
host
-
owner
-
name
-
withHost
Copy the current immutable object by setting a value for thehost
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for host- Returns:
- A modified copy of the
this
object
-
withOwner
Copy the current immutable object by setting a value for theowner
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for owner- Returns:
- A modified copy of the
this
object
-
withName
Copy the current immutable object by setting a value for thename
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for name- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableRepo
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:host
,owner
,name
. -
toString
Prints the immutable valueRepo
with attribute values. -
copyOf
Creates an immutable copy of aRepo
value. 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 Repo instance
-
builder
Creates a builder forImmutableRepo
.ImmutableRepo.builder() .host(String) // required
host
.owner(String) // requiredowner
.name(String) // requiredname
.build();- Returns:
- A new ImmutableRepo builder
-