Class ImmutableSourceListing
java.lang.Object
io.github.ascopes.protobufmavenplugin.sources.ImmutableSourceListing
- All Implemented Interfaces:
SourceListing
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableSourceListing
extends Object
implements SourceListing
Immutable implementation of
SourceListing
.
Use the builder to create immutable instances:
ImmutableSourceListing.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableSourceListing
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableSourceListing
.boolean
This instance is equal to all instances ofImmutableSourceListing
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:sourceRoot
,sourceProtoFiles
.toString()
Prints the immutable valueSourceListing
with attribute values.
-
Method Details
-
getSourceRoot
- Specified by:
getSourceRoot
in interfaceSourceListing
- Returns:
- The value of the
sourceRoot
attribute
-
getSourceProtoFiles
- Specified by:
getSourceProtoFiles
in interfaceSourceListing
- Returns:
- The value of the
sourceProtoFiles
attribute
-
equals
-
hashCode
-
toString
-
builder
Creates a builder forImmutableSourceListing
.ImmutableSourceListing.builder() .sourceRoot(java.nio.file.Path | null) // nullable
sourceRoot
.addSourceProtoFiles|addAllSourceProtoFiles(java.nio.file.Path) //sourceProtoFiles
elements .build();- Returns:
- A new ImmutableSourceListing builder
-