Class ImmutableDescriptorListing
java.lang.Object
io.github.ascopes.protobufmavenplugin.sources.ImmutableDescriptorListing
- All Implemented Interfaces:
DescriptorListing
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableDescriptorListing
extends Object
implements DescriptorListing
Immutable implementation of
DescriptorListing
.
Use the builder to create immutable instances:
ImmutableDescriptorListing.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableDescriptorListing
. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableDescriptorListing
.private static <T> List
<T> createSafeList
(Iterable<? extends T> iterable, boolean checkNulls, boolean skipNulls) private static <T> Set
<T> createUnmodifiableSet
(List<T> list) Unmodifiable set constructed from list to avoid rehashing.boolean
This instance is equal to all instances ofImmutableDescriptorListing
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutableDescriptorListing another) int
hashCode()
Computes a hash code from attributes:descriptorFilePath
,sourceFiles
.toString()
Prints the immutable valueDescriptorListing
with attribute values.
-
Field Details
-
descriptorFilePath
-
sourceFiles
-
-
Constructor Details
-
ImmutableDescriptorListing
-
-
Method Details
-
getDescriptorFilePath
- Specified by:
getDescriptorFilePath
in interfaceDescriptorListing
- Returns:
- The value of the
descriptorFilePath
attribute
-
getSourceFiles
- Specified by:
getSourceFiles
in interfaceDescriptorListing
- Returns:
- The value of the
sourceFiles
attribute
-
equals
-
equalTo
-
hashCode
-
toString
-
builder
Creates a builder forImmutableDescriptorListing
.ImmutableDescriptorListing.builder() .descriptorFilePath(java.nio.file.Path | null) // nullable
descriptorFilePath
.addSourceFiles|addAllSourceFiles(String) //sourceFiles
elements .build();- Returns:
- A new ImmutableDescriptorListing builder
-
createSafeList
-
createUnmodifiableSet
-