Class ImmutableFilesToCompile
java.lang.Object
io.github.ascopes.protobufmavenplugin.sources.ImmutableFilesToCompile
- All Implemented Interfaces:
FilesToCompile
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableFilesToCompile
extends Object
implements FilesToCompile
Immutable implementation of
FilesToCompile
.
Use the builder to create immutable instances:
ImmutableFilesToCompile.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableFilesToCompile
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection
<String> private final boolean
private final Collection
<Path> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableFilesToCompile
.boolean
This instance is equal to all instances ofImmutableFilesToCompile
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutableFilesToCompile another) int
hashCode()
Computes a hash code from attributes:protoSources
,descriptorFiles
,isEmpty
.boolean
isEmpty()
toString()
Prints the immutable valueFilesToCompile
with attribute values.
-
Field Details
-
protoSources
-
descriptorFiles
-
isEmpty
private final transient boolean isEmpty
-
-
Constructor Details
-
ImmutableFilesToCompile
-
-
Method Details
-
getProtoSources
- Specified by:
getProtoSources
in interfaceFilesToCompile
- Returns:
- The value of the
protoSources
attribute
-
getDescriptorFiles
- Specified by:
getDescriptorFiles
in interfaceFilesToCompile
- Returns:
- The value of the
descriptorFiles
attribute
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceFilesToCompile
- Returns:
- The computed-at-construction value of the
isEmpty
attribute
-
equals
-
equalTo
-
hashCode
-
toString
-
builder
Creates a builder forImmutableFilesToCompile
.ImmutableFilesToCompile.builder() .protoSources(Collection<java.nio.file.Path> | null) // nullable
protoSources
.descriptorFiles(Collection<String> | null) // nullabledescriptorFiles
.build();- Returns:
- A new ImmutableFilesToCompile builder
-