Record Class ForgeryDetector.BrushstrokeProfile

java.lang.Object
java.lang.Record
org.episteme.social.arts.ForgeryDetector.BrushstrokeProfile
All Implemented Interfaces:
Serializable
Enclosing class:
ForgeryDetector

public static record ForgeryDetector.BrushstrokeProfile(double avgLength, double avgWidth, double avgPressure, double directionVariance, double curveFrequency, int strokeCount) extends Record implements Serializable
Represents a mathematical signature of brushstroke characteristics.
Since:
1.0
Version:
2.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    BrushstrokeProfile(double avgLength, double avgWidth, double avgPressure, double directionVariance, double curveFrequency, int strokeCount)
    Creates an instance of a BrushstrokeProfile record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the avgLength record component.
    double
    Returns the value of the avgPressure record component.
    double
    Returns the value of the avgWidth record component.
    double
    Returns the value of the curveFrequency record component.
    double
    Returns the value of the directionVariance 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 strokeCount 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

    • BrushstrokeProfile

      public BrushstrokeProfile(double avgLength, double avgWidth, double avgPressure, double directionVariance, double curveFrequency, int strokeCount)
      Creates an instance of a BrushstrokeProfile record class.
      Parameters:
      avgLength - the value for the avgLength record component
      avgWidth - the value for the avgWidth record component
      avgPressure - the value for the avgPressure record component
      directionVariance - the value for the directionVariance record component
      curveFrequency - the value for the curveFrequency record component
      strokeCount - the value for the strokeCount 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 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.
    • avgLength

      public double avgLength()
      Returns the value of the avgLength record component.
      Returns:
      the value of the avgLength record component
    • avgWidth

      public double avgWidth()
      Returns the value of the avgWidth record component.
      Returns:
      the value of the avgWidth record component
    • avgPressure

      public double avgPressure()
      Returns the value of the avgPressure record component.
      Returns:
      the value of the avgPressure record component
    • directionVariance

      public double directionVariance()
      Returns the value of the directionVariance record component.
      Returns:
      the value of the directionVariance record component
    • curveFrequency

      public double curveFrequency()
      Returns the value of the curveFrequency record component.
      Returns:
      the value of the curveFrequency record component
    • strokeCount

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