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.- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.Returns the value of thecodeRepositoryrecord component.Returns the value of thedatePublishedrecord component.final booleanIndicates whether some other object is "equal to" this one.forks()Returns the value of theforksrecord component.final inthashCode()Returns a hash code value for this object.homepage()Returns the value of thehomepagerecord component.isNpm()Returns the value of theisNpmrecord component.isPypi()Returns the value of theisPypirecord component.name()Returns the value of thenamerecord component.Returns the value of theprogrammingLanguagerecord component.stars()Returns the value of thestarsrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
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 aSoftwarerecord class.- Parameters:
name- the value for thenamerecord componentauthor- the value for theauthorrecord componentversion- the value for theversionrecord componentcodeRepository- the value for thecodeRepositoryrecord componenthomepage- the value for thehomepagerecord componentdatePublished- the value for thedatePublishedrecord componentisNpm- the value for theisNpmrecord componentisPypi- the value for theisPypirecord componentstars- the value for thestarsrecord componentforks- the value for theforksrecord componentprogrammingLanguage- the value for theprogrammingLanguagerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
codeRepository
Returns the value of thecodeRepositoryrecord component.- Returns:
- the value of the
codeRepositoryrecord component
-
homepage
Returns the value of thehomepagerecord component.- Returns:
- the value of the
homepagerecord component
-
datePublished
Returns the value of thedatePublishedrecord component.- Returns:
- the value of the
datePublishedrecord component
-
isNpm
Returns the value of theisNpmrecord component.- Returns:
- the value of the
isNpmrecord component
-
isPypi
Returns the value of theisPypirecord component.- Returns:
- the value of the
isPypirecord component
-
stars
Returns the value of thestarsrecord component.- Returns:
- the value of the
starsrecord component
-
forks
Returns the value of theforksrecord component.- Returns:
- the value of the
forksrecord component
-
programmingLanguage
Returns the value of theprogrammingLanguagerecord component.- Returns:
- the value of the
programmingLanguagerecord component
-