Record Class ProcessorDependency

java.lang.Object
java.lang.Record
org.mapfish.print.processor.ProcessorDependency
Record Components:
required - The processor which is required to be executed before the other.
dependent - The processor which requires the other to be executed first.
commonInputs - The dependency is only enforced if the two processors have these inputs in common.

public record ProcessorDependency(Class<? extends Processor<?,?>> required, Class<? extends Processor<?,?>> dependent, Set<String> commonInputs) extends Record
Models a dependency between two processors. The processor dependent requires the processor required
  • Constructor Details

    • ProcessorDependency

      public ProcessorDependency(Class<? extends Processor<?,?>> required, Class<? extends Processor<?,?>> dependent, Set<String> commonInputs)
      Constructor. The processor dependent requires the processor required.
    • ProcessorDependency

      public ProcessorDependency(Class<? extends Processor<?,?>> required, Class<? extends Processor<?,?>> dependent)
      Constructor. The processor dependent requires the processor required.
      Parameters:
      required - The processor which is required to be executed before the other.
      dependent - The processor which requires the other to be executed first.
  • Method Details

    • required

      public Class<? extends Processor<?,?>> required()
      Returns the processor which is required to be executed before the other.
    • dependent

      public Class<? extends Processor<?,?>> dependent()
      Returns the processor which requires the other to be executed first.
    • commonInputs

      public Set<String> commonInputs()
      The inputs that both processors must have in common.
    • toString

      public 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.