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().

  • Method Details

    • getUrl

      public @Nullable URI getUrl()
      Get the URI.
      Specified by:
      getUrl in class UriProtocDistribution
      Returns:
      the URI.
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableUriProtocDistribution that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: url.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value UriProtocDistribution with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • builder

      public static ImmutableUriProtocDistribution.Builder builder()
      Creates a builder for ImmutableUriProtocDistribution.
      ImmutableUriProtocDistribution.builder()
         .url(java.net.URI | null) // nullable url
         .build();
      
      Returns:
      A new ImmutableUriProtocDistribution builder