Record Class Organization

java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Organization
Record Components:
Name - Name of the organization. If set can not be blank
Type - Organization's type (NGO, educational, government, etc.). If set can not be blank
Industry - Industry (financial, industry, etc.). If set can not be blank

public record Organization(@NotNull String Name, String Website, String Type, String Industry) extends Record
Organization data (can be used for companies, educational institutions, etc.)
  • Constructor Details

    • Organization

      public Organization(@NotNull @NotNull String Name, String Website, String Type, String Industry)
      Creates an instance of a Organization record class.
      Parameters:
      Name - the value for the Name record component
      Website - the value for the Website record component
      Type - the value for the Type record component
      Industry - the value for the Industry 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.
    • Name

      @NotNull public @NotNull String Name()
      Returns the value of the Name record component.
      Returns:
      the value of the Name record component
    • Website

      public String Website()
      Returns the value of the Website record component.
      Returns:
      the value of the Website record component
    • Type

      public String Type()
      Returns the value of the Type record component.
      Returns:
      the value of the Type record component
    • Industry

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