Class ImmutablePluginProtocTarget
java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.targets.ImmutablePluginProtocTarget
- All Implemented Interfaces:
PluginProtocTarget
,ProtocTarget
,Comparable<ProtocTarget>
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutablePluginProtocTarget
extends Object
implements PluginProtocTarget
Immutable implementation of
PluginProtocTarget
.
Use the builder to create immutable instances:
ImmutablePluginProtocTarget.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutablePluginProtocTarget
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final Path
private final ResolvedProtocPlugin
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePluginProtocTarget
.boolean
This instance is equal to all instances ofImmutablePluginProtocTarget
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutablePluginProtocTarget another) int
getOrder()
int
hashCode()
Computes a hash code from attributes:plugin
,outputPath
,order
.toString()
Prints the immutable valuePluginProtocTarget
with attribute values.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.ascopes.protobufmavenplugin.protoc.targets.ProtocTarget
compareTo
-
Field Details
-
plugin
-
outputPath
-
order
private final transient int order
-
-
Constructor Details
-
ImmutablePluginProtocTarget
-
-
Method Details
-
getPlugin
- Specified by:
getPlugin
in interfacePluginProtocTarget
- Returns:
- The value of the
plugin
attribute
-
getOutputPath
- Specified by:
getOutputPath
in interfacePluginProtocTarget
- Returns:
- The value of the
outputPath
attribute
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfacePluginProtocTarget
- Specified by:
getOrder
in interfaceProtocTarget
- Returns:
- The computed-at-construction value of the
order
attribute
-
equals
-
equalTo
-
hashCode
-
toString
-
builder
Creates a builder forImmutablePluginProtocTarget
.ImmutablePluginProtocTarget.builder() .plugin(io.github.ascopes.protobufmavenplugin.plugins.ResolvedProtocPlugin | null) // nullable
plugin
.outputPath(java.nio.file.Path | null) // nullableoutputPath
.build();- Returns:
- A new ImmutablePluginProtocTarget builder
-