Class ImmutableLanguageProtocTarget
java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.targets.ImmutableLanguageProtocTarget
- All Implemented Interfaces:
LanguageProtocTarget
,ProtocTarget
,Comparable<ProtocTarget>
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableLanguageProtocTarget
extends Object
implements LanguageProtocTarget
Immutable implementation of
LanguageProtocTarget
.
Use the builder to create immutable instances:
ImmutableLanguageProtocTarget.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableLanguageProtocTarget
. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableLanguageProtocTarget
.boolean
This instance is equal to all instances ofImmutableLanguageProtocTarget
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutableLanguageProtocTarget another) int
getOrder()
int
hashCode()
Computes a hash code from attributes:order
,language
,outputPath
,isLite
.boolean
isLite()
toString()
Prints the immutable valueLanguageProtocTarget
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
-
order
private final int order -
language
-
outputPath
-
isLite
private final boolean isLite
-
-
Constructor Details
-
ImmutableLanguageProtocTarget
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceProtocTarget
- Returns:
- The value of the
order
attribute
-
getLanguage
- Specified by:
getLanguage
in interfaceLanguageProtocTarget
- Returns:
- The value of the
language
attribute
-
getOutputPath
- Specified by:
getOutputPath
in interfaceLanguageProtocTarget
- Returns:
- The value of the
outputPath
attribute
-
isLite
public boolean isLite()- Specified by:
isLite
in interfaceLanguageProtocTarget
- Returns:
- The value of the
isLite
attribute
-
equals
-
equalTo
-
hashCode
-
toString
-
builder
Creates a builder forImmutableLanguageProtocTarget
.ImmutableLanguageProtocTarget.builder() .order(int) // optional
order
.language(io.github.ascopes.protobufmavenplugin.generation.Language | null) // nullablelanguage
.outputPath(java.nio.file.Path | null) // nullableoutputPath
.isLite(boolean) // requiredisLite
.build();- Returns:
- A new ImmutableLanguageProtocTarget builder
-