Record Class ClassificationOverride.Entry

java.lang.Object
java.lang.Record
org.egothor.methodatlas.ClassificationOverride.Entry
Record Components:
fqcn - fully qualified class name targeted by this entry
method - method name targeted; null for a class-level override that applies to all methods in the class
securityRelevant - override value for security relevance; null means "keep existing"
tags - override value for taxonomy tags; null means "keep existing"
displayName - override value for the suggested display name; null means "keep existing"
reason - override value for the classification rationale; null means "keep existing"
note - free-text annotation for human use; never emitted in any output
Enclosing class:
ClassificationOverride

public static record ClassificationOverride.Entry(String fqcn, String method, Boolean securityRelevant, List<String> tags, String displayName, String reason, String note) extends Record
A single override entry as stored in the in-memory index.

All fields except fqcn are optional and carry null to indicate "not overridden". The note field is never emitted in any output format and exists solely for human documentation.

  • Constructor Details

    • Entry

      public Entry(String fqcn, String method, Boolean securityRelevant, List<String> tags, String displayName, String reason, String note)
      Creates an instance of a Entry record class.
      Parameters:
      fqcn - the value for the fqcn record component
      method - the value for the method record component
      securityRelevant - the value for the securityRelevant record component
      tags - the value for the tags record component
      displayName - the value for the displayName record component
      reason - the value for the reason record component
      note - the value for the note 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. 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.
    • fqcn

      public String fqcn()
      Returns the value of the fqcn record component.
      Returns:
      the value of the fqcn record component
    • method

      public String method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • securityRelevant

      public Boolean securityRelevant()
      Returns the value of the securityRelevant record component.
      Returns:
      the value of the securityRelevant record component
    • tags

      public List<String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • reason

      public String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component
    • note

      public String note()
      Returns the value of the note record component.
      Returns:
      the value of the note record component