Record Class Software

java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.web.Software
Record Components:
name - The name of the software.
author - The author or organization that created the software.
version - The current version of the software.
codeRepository - The URL of the code repository (e.g., GitHub, GitLab).
homepage - The URL of the software's homepage or documentation.
datePublished - The date when this version was published.
isNpm - Indicates if the software is a npm package.
isPypi - Indicates if the software is a Python package on PyPI.
stars - The number of stars the repository has received.
forks - The number of times the repository has been forked.
programmingLanguage - The primary programming language used in the software.

public record Software(String name, String author, String version, String codeRepository, String homepage, String datePublished, Boolean isNpm, Boolean isPypi, Integer stars, Integer forks, String programmingLanguage) extends Record
Represents software information in search results. This is used in the Brave Search API to provide structured data about software packages, including version, repository, and metadata.
  • Constructor Details

    • Software

      public Software(String name, String author, String version, String codeRepository, String homepage, String datePublished, Boolean isNpm, Boolean isPypi, Integer stars, Integer forks, String programmingLanguage)
      Creates an instance of a Software record class.
      Parameters:
      name - the value for the name record component
      author - the value for the author record component
      version - the value for the version record component
      codeRepository - the value for the codeRepository record component
      homepage - the value for the homepage record component
      datePublished - the value for the datePublished record component
      isNpm - the value for the isNpm record component
      isPypi - the value for the isPypi record component
      stars - the value for the stars record component
      forks - the value for the forks record component
      programmingLanguage - the value for the programmingLanguage 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

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • author

      public String author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • codeRepository

      public String codeRepository()
      Returns the value of the codeRepository record component.
      Returns:
      the value of the codeRepository record component
    • homepage

      public String homepage()
      Returns the value of the homepage record component.
      Returns:
      the value of the homepage record component
    • datePublished

      public String datePublished()
      Returns the value of the datePublished record component.
      Returns:
      the value of the datePublished record component
    • isNpm

      public Boolean isNpm()
      Returns the value of the isNpm record component.
      Returns:
      the value of the isNpm record component
    • isPypi

      public Boolean isPypi()
      Returns the value of the isPypi record component.
      Returns:
      the value of the isPypi record component
    • stars

      public Integer stars()
      Returns the value of the stars record component.
      Returns:
      the value of the stars record component
    • forks

      public Integer forks()
      Returns the value of the forks record component.
      Returns:
      the value of the forks record component
    • programmingLanguage

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