Record Class AlumniVO

java.lang.Object
java.lang.Record
com.profile.searcher.model.response.AlumniVO
Record Components:
id - The unique identifier for the alumni.
title - The title associated with the alumni's name.
fullName - The full name of alumni.
universityName - The name of university alumni attended.
profileHeadLine - A short headline or tagline from the alumni's profile.
location - The location of the alumni.
connectionDegree - The degree of connection like 1st, 2nd, 3rd between user and alumni.
company - The current or most recent company that alumni is associated.
profileUrl - The URL to view the alumni's profile.
companyUrl - The URL of the company associated with the alumni.
passedOutYear - The year of alumni graduated or completed studies.

public record AlumniVO(UUID id, String title, String fullName, String universityName, String profileHeadLine, String location, String connectionDegree, String company, String profileUrl, String companyUrl, Integer passedOutYear) extends Record
AlumniVO is the response class representing an alumni profile with key details such as educational background, professional information, and connection metadata.
  • Constructor Details

    • AlumniVO

      public AlumniVO(UUID id, String title, String fullName, String universityName, String profileHeadLine, String location, String connectionDegree, String company, String profileUrl, String companyUrl, Integer passedOutYear)
      Creates an instance of a AlumniVO record class.
      Parameters:
      id - the value for the id record component
      title - the value for the title record component
      fullName - the value for the fullName record component
      universityName - the value for the universityName record component
      profileHeadLine - the value for the profileHeadLine record component
      location - the value for the location record component
      connectionDegree - the value for the connectionDegree record component
      company - the value for the company record component
      profileUrl - the value for the profileUrl record component
      companyUrl - the value for the companyUrl record component
      passedOutYear - the value for the passedOutYear 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.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • fullName

      public String fullName()
      Returns the value of the fullName record component.
      Returns:
      the value of the fullName record component
    • universityName

      public String universityName()
      Returns the value of the universityName record component.
      Returns:
      the value of the universityName record component
    • profileHeadLine

      public String profileHeadLine()
      Returns the value of the profileHeadLine record component.
      Returns:
      the value of the profileHeadLine record component
    • location

      public String location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • connectionDegree

      public String connectionDegree()
      Returns the value of the connectionDegree record component.
      Returns:
      the value of the connectionDegree record component
    • company

      public String company()
      Returns the value of the company record component.
      Returns:
      the value of the company record component
    • profileUrl

      public String profileUrl()
      Returns the value of the profileUrl record component.
      Returns:
      the value of the profileUrl record component
    • companyUrl

      public String companyUrl()
      Returns the value of the companyUrl record component.
      Returns:
      the value of the companyUrl record component
    • passedOutYear

      public Integer passedOutYear()
      Returns the value of the passedOutYear record component.
      Returns:
      the value of the passedOutYear record component