Class ImmutablePluginProtocTarget
java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.targets.ImmutablePluginProtocTarget
- All Implemented Interfaces:
PluginProtocTarget, ProtocTarget, Comparable<ProtocTarget>
@Generated(from="PluginProtocTarget",
generator="Immutables")
@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 classBuilds instances of typeImmutablePluginProtocTarget. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutablePluginProtocTarget.booleanThis instance is equal to all instances ofImmutablePluginProtocTargetthat have equal attribute values.intgetOrder()@Nullable ResolvedProtocPlugininthashCode()Computes a hash code from attributes:plugin,order.toString()Prints the immutable valuePluginProtocTargetwith attribute values.Methods inherited from interface ProtocTarget
compareTo
-
Method Details
-
getPlugin
- Specified by:
getPluginin interfacePluginProtocTarget- Returns:
- The value of the
pluginattribute
-
getOrder
public int getOrder()- Specified by:
getOrderin interfacePluginProtocTarget- Specified by:
getOrderin interfaceProtocTarget- Returns:
- The computed-at-construction value of the
orderattribute
-
equals
-
hashCode
-
toString
-
builder
Creates a builder forImmutablePluginProtocTarget.ImmutablePluginProtocTarget.builder() .plugin(io.github.ascopes.protobufmavenplugin.plugins.ResolvedProtocPlugin | null) // nullable
plugin.build();- Returns:
- A new ImmutablePluginProtocTarget builder
-