Record Class MetaUrl
java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.MetaUrl
- Record Components:
scheme- The scheme of the URL.netloc- The network location part of the URL.hostname- The hostname of the URL.favicon- The URL of the favicon associated with the URL.path- The path component of the URL.pathDisplay- The hierarchical path of the URL useful as a display string.
public record MetaUrl(String scheme, String netloc, String hostname, String favicon, String path, String pathDisplay)
extends Record
Represents metadata about a URL in search results. This class provides structured data about URLs
in the Brave Search API results.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.favicon()Returns the value of thefaviconrecord component.final inthashCode()Returns a hash code value for this object.hostname()Returns the value of thehostnamerecord component.netloc()Returns the value of thenetlocrecord component.path()Returns the value of thepathrecord component.Returns the value of thepathDisplayrecord component.scheme()Returns the value of theschemerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MetaUrl
public MetaUrl(String scheme, String netloc, String hostname, String favicon, String path, String pathDisplay) Creates an instance of aMetaUrlrecord class.- Parameters:
scheme- the value for theschemerecord componentnetloc- the value for thenetlocrecord componenthostname- the value for thehostnamerecord componentfavicon- the value for thefaviconrecord componentpath- the value for thepathrecord componentpathDisplay- the value for thepathDisplayrecord 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). -
scheme
Returns the value of theschemerecord component.- Returns:
- the value of the
schemerecord component
-
netloc
Returns the value of thenetlocrecord component.- Returns:
- the value of the
netlocrecord component
-
hostname
Returns the value of thehostnamerecord component.- Returns:
- the value of the
hostnamerecord component
-
favicon
Returns the value of thefaviconrecord component.- Returns:
- the value of the
faviconrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
pathDisplay
Returns the value of thepathDisplayrecord component.- Returns:
- the value of the
pathDisplayrecord component
-