Class ImmutableProjectInputListing

java.lang.Object
io.github.ascopes.protobufmavenplugin.sources.ImmutableProjectInputListing
All Implemented Interfaces:
ProjectInputListing

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

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

  • Method Details

    • getCompilableSources

      public Collection<SourceListing> getCompilableSources()
      Specified by:
      getCompilableSources in interface ProjectInputListing
      Returns:
      The value of the compilableSources attribute
    • getDependencySources

      public Collection<SourceListing> getDependencySources()
      Specified by:
      getDependencySources in interface ProjectInputListing
      Returns:
      The value of the dependencySources attribute
    • equals

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

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

      public static ImmutableProjectInputListing.Builder builder()
      Creates a builder for ImmutableProjectInputListing.
       ImmutableProjectInputListing.builder()
          .compilableSources(Collection&lt;io.github.ascopes.protobufmavenplugin.sources.SourceListing&gt; | null) // nullable compilableSources
          .dependencySources(Collection&lt;io.github.ascopes.protobufmavenplugin.sources.SourceListing&gt; | null) // nullable dependencySources
          .build();
       
      Returns:
      A new ImmutableProjectInputListing builder