Class ImmutableUriProtocDistribution
java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.distributions.UriProtocDistribution
io.github.ascopes.protobufmavenplugin.protoc.distributions.ImmutableUriProtocDistribution
- All Implemented Interfaces:
ProtocDistribution
@Generated(from="UriProtocDistribution",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableUriProtocDistribution
extends UriProtocDistribution
Immutable implementation of
UriProtocDistribution.
Use the builder to create immutable instances:
ImmutableUriProtocDistribution.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableUriProtocDistribution. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableUriProtocDistribution.booleanThis instance is equal to all instances ofImmutableUriProtocDistributionthat have equal attribute values.@Nullable URIgetUrl()Get the URI.inthashCode()Computes a hash code from attributes:url.toString()Prints the immutable valueUriProtocDistributionwith attribute values.
-
Method Details
-
getUrl
Get the URI.- Specified by:
getUrlin classUriProtocDistribution- Returns:
- the URI.
-
equals
-
hashCode
-
toString
-
builder
Creates a builder forImmutableUriProtocDistribution.ImmutableUriProtocDistribution.builder() .url(java.net.URI | null) // nullable
url.build();- Returns:
- A new ImmutableUriProtocDistribution builder
-