Record Class PyronautCompiler.IncrementalCompilationPlan

java.lang.Object
java.lang.Record
io.micronaut.python.compiler.PyronautCompiler.IncrementalCompilationPlan
Record Components:
upToDate - Whether no compilation is required
fullRebuild - Whether all current sources must be compiled
sources - The current source files selected for compilation
Enclosing class:
PyronautCompiler

public static record PyronautCompiler.IncrementalCompilationPlan(boolean upToDate, boolean fullRebuild, List<Path> sources) extends Record
Describes the source files selected by an incremental disk compilation.
Since:
5.2.0
Author:
Micronaut
  • Constructor Details

    • IncrementalCompilationPlan

      public IncrementalCompilationPlan(boolean upToDate, boolean fullRebuild, List<Path> sources)
      Creates an instance of a IncrementalCompilationPlan record class.
      Parameters:
      upToDate - the value for the upToDate record component
      fullRebuild - the value for the fullRebuild record component
      sources - the value for the sources record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • upToDate

      public boolean upToDate()
      Returns the value of the upToDate record component.
      Returns:
      the value of the upToDate record component
    • fullRebuild

      public boolean fullRebuild()
      Returns the value of the fullRebuild record component.
      Returns:
      the value of the fullRebuild record component
    • sources

      public List<Path> sources()
      Returns the value of the sources record component.
      Returns:
      the value of the sources record component