Class ImmutablePathProtocDistribution

java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.distributions.PathProtocDistribution
io.github.ascopes.protobufmavenplugin.protoc.distributions.ImmutablePathProtocDistribution
All Implemented Interfaces:
ProtocDistribution

@Generated(from="PathProtocDistribution", generator="Immutables") @Generated("org.immutables.processor.ProxyProcessor") public final class ImmutablePathProtocDistribution extends PathProtocDistribution
Immutable implementation of PathProtocDistribution.

Use the builder to create immutable instances: ImmutablePathProtocDistribution.builder().

  • Method Details

    • getName

      public String getName()
      Get the name.

      Defaults to "protoc" if unset.

      Overrides:
      getName in class PathProtocDistribution
      Returns:
      the name.
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutablePathProtocDistribution 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: name.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutablePathProtocDistribution.Builder builder()
      Creates a builder for ImmutablePathProtocDistribution.
      ImmutablePathProtocDistribution.builder()
         .name(String) // optional name
         .build();
      
      Returns:
      A new ImmutablePathProtocDistribution builder