Record Class Reference

java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Reference
Record Components:
fullName - Referrer's name. Can not be blank
Summary - Reference details in plain text. Can not be blank

public record Reference(@NotNull String fullName, @NotNull String Summary, Reference.Type Type, Set<Link> Contact, Set<String> socialProfiles, Set<String> Projects) extends Record
  • Constructor Details

    • Reference

      public Reference(@NotNull @NotNull String fullName, @NotNull @NotNull String Summary, Reference.Type Type, Set<Link> Contact, Set<String> socialProfiles, Set<String> Projects)
      Creates an instance of a Reference record class.
      Parameters:
      fullName - the value for the fullName record component
      Summary - the value for the Summary record component
      Type - the value for the Type record component
      Contact - the value for the Contact record component
      socialProfiles - the value for the socialProfiles record component
      Projects - the value for the Projects 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.
    • fullName

      @NotNull public @NotNull String fullName()
      Returns the value of the fullName record component.
      Returns:
      the value of the fullName record component
    • Summary

      @NotNull public @NotNull String Summary()
      Returns the value of the Summary record component.
      Returns:
      the value of the Summary record component
    • Type

      public Reference.Type Type()
      Returns the value of the Type record component.
      Returns:
      the value of the Type record component
    • Contact

      public Set<Link> Contact()
      Returns the value of the Contact record component.
      Returns:
      the value of the Contact record component
    • socialProfiles

      public Set<String> socialProfiles()
      Returns the value of the socialProfiles record component.
      Returns:
      the value of the socialProfiles record component
    • Projects

      public Set<String> Projects()
      Returns the value of the Projects record component.
      Returns:
      the value of the Projects record component