Record Class CoverMarkers.Markers

java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.CoverMarkers.Markers
Enclosing class:
CoverMarkers

public static record CoverMarkers.Markers(@Nullable CoverMarkers.Marked title, @Nullable CoverMarkers.Marked subtitle, @Nullable CoverMarkers.Marked summary) extends Record
What a model marks; either may be null.
  • Field Details

  • Constructor Details

    • Markers

      public Markers(@Nullable @Nullable CoverMarkers.Marked title, @Nullable @Nullable CoverMarkers.Marked subtitle, @Nullable @Nullable CoverMarkers.Marked summary)
      Creates an instance of a Markers record class.
      Parameters:
      title - the value for the title record component
      subtitle - the value for the subtitle record component
      summary - the value for the summary 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.
    • title

      @Nullable public @Nullable CoverMarkers.Marked title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • subtitle

      @Nullable public @Nullable CoverMarkers.Marked subtitle()
      Returns the value of the subtitle record component.
      Returns:
      the value of the subtitle record component
    • summary

      @Nullable public @Nullable CoverMarkers.Marked summary()
      Returns the value of the summary record component.
      Returns:
      the value of the summary record component