Class ImmutableFilesToCompile

java.lang.Object
io.github.ascopes.protobufmavenplugin.sources.ImmutableFilesToCompile
All Implemented Interfaces:
FilesToCompile

@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableFilesToCompile extends Object implements FilesToCompile
Immutable implementation of FilesToCompile.

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

  • Field Details

    • protoSources

      private final Collection<Path> protoSources
    • descriptorFiles

      private final Collection<String> descriptorFiles
    • isEmpty

      private final transient boolean isEmpty
  • Constructor Details

  • Method Details

    • getProtoSources

      public Collection<Path> getProtoSources()
      Specified by:
      getProtoSources in interface FilesToCompile
      Returns:
      The value of the protoSources attribute
    • getDescriptorFiles

      public Collection<String> getDescriptorFiles()
      Specified by:
      getDescriptorFiles in interface FilesToCompile
      Returns:
      The value of the descriptorFiles attribute
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface FilesToCompile
      Returns:
      The computed-at-construction value of the isEmpty attribute
    • equals

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

      private boolean equalTo(int synthetic, ImmutableFilesToCompile another)
    • hashCode

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

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

      public static ImmutableFilesToCompile.Builder builder()
      Creates a builder for ImmutableFilesToCompile.
       ImmutableFilesToCompile.builder()
          .protoSources(Collection&lt;java.nio.file.Path&gt; | null) // nullable protoSources
          .descriptorFiles(Collection&lt;String&gt; | null) // nullable descriptorFiles
          .build();
       
      Returns:
      A new ImmutableFilesToCompile builder