Record Class IncrementalRegistry.Outcome

java.lang.Object
java.lang.Record
network.ike.docs.plugin.registry.IncrementalRegistry.Outcome
Record Components:
model - the registry model, in the shape of TopicRegistry.model(List, Path, Instant)
kept - entries kept as they were: same path, same blob
rekeyed - entries re-keyed to a new path: same blob, path gone
parsed - files parsed: a new or changed blob
dropped - entries dropped: path gone and blob not seen elsewhere
Enclosing class:
IncrementalRegistry

public static record IncrementalRegistry.Outcome(Map<String,Object> model, int kept, int rekeyed, int parsed, int dropped) extends Record
What one update did.
Since:
136
  • Constructor Summary

    Constructors
    Constructor
    Description
    Outcome(Map<String,Object> model, int kept, int rekeyed, int parsed, int dropped)
    Creates an instance of a Outcome record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the dropped record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the kept record component.
    Returns the value of the model record component.
    int
    Returns the value of the parsed record component.
    int
    Returns the value of the rekeyed record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Outcome

      public Outcome(Map<String,Object> model, int kept, int rekeyed, int parsed, int dropped)
      Creates an instance of a Outcome record class.
      Parameters:
      model - the value for the model record component
      kept - the value for the kept record component
      rekeyed - the value for the rekeyed record component
      parsed - the value for the parsed record component
      dropped - the value for the dropped 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.
    • model

      public Map<String,Object> model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • kept

      public int kept()
      Returns the value of the kept record component.
      Returns:
      the value of the kept record component
    • rekeyed

      public int rekeyed()
      Returns the value of the rekeyed record component.
      Returns:
      the value of the rekeyed record component
    • parsed

      public int parsed()
      Returns the value of the parsed record component.
      Returns:
      the value of the parsed record component
    • dropped

      public int dropped()
      Returns the value of the dropped record component.
      Returns:
      the value of the dropped record component