Record Class ForgeryDetector.ArtistFingerprint

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

public static record ForgeryDetector.ArtistFingerprint(String artistName, ForgeryDetector.BrushstrokeProfile meanProfile, double[] stdDeviations, int sampleSize) extends Record implements Serializable
Represents the unique statistical fingerprint of a specific artist's brushstroke technique.
Since:
1.0
Version:
2.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • ArtistFingerprint

      public ArtistFingerprint(String artistName, ForgeryDetector.BrushstrokeProfile meanProfile, double[] stdDeviations, int sampleSize)
      Creates an instance of a ArtistFingerprint record class.
      Parameters:
      artistName - the value for the artistName record component
      meanProfile - the value for the meanProfile record component
      stdDeviations - the value for the stdDeviations record component
      sampleSize - the value for the sampleSize 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.
    • artistName

      public String artistName()
      Returns the value of the artistName record component.
      Returns:
      the value of the artistName record component
    • meanProfile

      public ForgeryDetector.BrushstrokeProfile meanProfile()
      Returns the value of the meanProfile record component.
      Returns:
      the value of the meanProfile record component
    • stdDeviations

      public double[] stdDeviations()
      Returns the value of the stdDeviations record component.
      Returns:
      the value of the stdDeviations record component
    • sampleSize

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