Class PathProtocDistributionBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.distributions.PathProtocDistribution
io.github.ascopes.protobufmavenplugin.protoc.distributions.PathProtocDistributionBean
- All Implemented Interfaces:
ProtocDistribution
@Generated(from="PathProtocDistribution",
generator="Modifiables")
@Generated({"Modifiables.generator","PathProtocDistribution"})
public class PathProtocDistributionBean
extends PathProtocDistribution
A modifiable implementation of the
PathProtocDistribution type.
Use the constructor to create new modifiable instances. You may even extend this class to add some convenience methods, however most of the methods in this class are final to preserve safety and predictable invariants.
PathProtocDistributionBean is not thread-safe
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the object by setting all attributes to their initial values.booleanThis instance is equal to all instances ofPathProtocDistributionBeanthat have equal attribute values.from(PathProtocDistribution instance) Fill this modifiable instance with attribute values from the providedPathProtocDistributioninstance.from(PathProtocDistributionBean instance) Fill this modifiable instance with attribute values from the providedPathProtocDistributioninstance.getName()Get the name.inthashCode()Computes a hash code from attributes:name.final booleanReturnstrueif all required attributes are set, indicating that the object is initialized.final booleanReturnstrueif the default attributenameis set.voidAssigns a value to thenameattribute.Converts toImmutablePathProtocDistribution.toString()Generates a string representation of thisPathProtocDistribution.final voidReset an attribute to its initial value.
-
Constructor Details
-
PathProtocDistributionBean
public PathProtocDistributionBean()
-
-
Method Details
-
getName
Get the name.Defaults to
"protoc"if unset.- Overrides:
getNamein classPathProtocDistribution- Returns:
- the name.
-
clear
public void clear()Clears the object by setting all attributes to their initial values. -
from
Fill this modifiable instance with attribute values from the providedPathProtocDistributioninstance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).- Parameters:
instance- The instance from which to copy values- Returns:
thisfor use in a chained invocation
-
from
Fill this modifiable instance with attribute values from the providedPathProtocDistributioninstance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).- Parameters:
instance- The instance from which to copy values- Returns:
thisfor use in a chained invocation
-
setName
-
nameIsSet
public final boolean nameIsSet()Returnstrueif the default attributenameis set.- Returns:
trueif set
-
unsetName
public final void unsetName()Reset an attribute to its initial value. -
isInitialized
public final boolean isInitialized()Returnstrueif all required attributes are set, indicating that the object is initialized.- Returns:
trueif set
-
toImmutable
Converts toImmutablePathProtocDistribution.- Returns:
- An immutable instance of PathProtocDistribution
-
equals
-
hashCode
-
toString
-