Class ImmutableJavaApp

java.lang.Object
io.github.ascopes.protobufmavenplugin.java.ImmutableJavaApp
All Implemented Interfaces:
JavaApp

@Generated(from="JavaApp", generator="Immutables") @Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableJavaApp extends Object implements JavaApp
Immutable implementation of JavaApp.

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

  • Method Details

    • getUniqueName

      public @Nullable String getUniqueName()
      Specified by:
      getUniqueName in interface JavaApp
      Returns:
      The value of the uniqueName attribute
    • getDependencies

      public List<Path> getDependencies()
      Specified by:
      getDependencies in interface JavaApp
      Returns:
      The value of the dependencies attribute
    • getJvmArgs

      public @Nullable List<String> getJvmArgs()
      Specified by:
      getJvmArgs in interface JavaApp
      Returns:
      The value of the jvmArgs attribute
    • getJvmConfigArgs

      public @Nullable List<String> getJvmConfigArgs()
      Specified by:
      getJvmConfigArgs in interface JavaApp
      Returns:
      The value of the jvmConfigArgs attribute
    • getMainClass

      public @Nullable String getMainClass()
      Specified by:
      getMainClass in interface JavaApp
      Returns:
      The value of the mainClass attribute
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableJavaApp 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: uniqueName, dependencies, jvmArgs, jvmConfigArgs, mainClass.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableJavaApp.Builder builder()
      Creates a builder for ImmutableJavaApp.
      ImmutableJavaApp.builder()
         .uniqueName(String | null) // nullable uniqueName
         .addDependencies|addAllDependencies(java.nio.file.Path) // dependencies elements
         .jvmArgs(List<String> | null) // nullable jvmArgs
         .jvmConfigArgs(List<String> | null) // nullable jvmConfigArgs
         .mainClass(String | null) // nullable mainClass
         .build();
      
      Returns:
      A new ImmutableJavaApp builder