java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result
Direct Known Subclasses:
AbstractGraphInfobox, LocationResult, LocationWebResult, NewsResult, SearchResult, VideoResult

Represents a generic result in search results. This class serves as a base for various types of results in the Brave Search API.
  • Field Details

    • title

      protected final String title
      The result title.
    • url

      protected final String url
      The result URL.
    • isSourceLocal

      protected final Boolean isSourceLocal
      Whether the source is local.
    • isSourceBoth

      protected final Boolean isSourceBoth
      Whether the source is both.
    • description

      protected final String description
      The result description.
    • pageAge

      protected final String pageAge
      The page age.
    • pageFetched

      protected final String pageFetched
      The page fetched timestamp string.
    • fetchedContentTimestamp

      protected final Integer fetchedContentTimestamp
      The fetched content timestamp.
    • profile

      protected final Profile profile
      The profile.
    • language

      protected final String language
      The result language.
    • familyFriendly

      protected final Boolean familyFriendly
      Whether the result is family friendly.
  • Constructor Details

    • Result

      @Contract(pure=true) public Result(@NotNull @NotNull Result.Builder builder)
      Creates a new result from the given builder.
      Parameters:
      builder - the builder carrying the result fields
  • Method Details

    • title

      public String title()
      Returns the result title.
      Returns:
      the title
    • url

      public String url()
      Returns the result URL.
      Returns:
      the URL
    • isSourceLocal

      public Boolean isSourceLocal()
      Returns whether the source is local.
      Returns:
      whether the source is local
    • isSourceBoth

      public Boolean isSourceBoth()
      Returns whether the source is both.
      Returns:
      whether the source is both
    • description

      public String description()
      Returns the result description.
      Returns:
      the description
    • pageAge

      public String pageAge()
      Returns the page age.
      Returns:
      the page age
    • pageFetched

      public String pageFetched()
      Returns the page fetched timestamp string.
      Returns:
      the page fetched timestamp
    • fetchedContentTimestamp

      public Integer fetchedContentTimestamp()
      Returns the fetched content timestamp.
      Returns:
      the fetched content timestamp
    • profile

      public Profile profile()
      Returns the profile.
      Returns:
      the profile
    • language

      public String language()
      Returns the result language.
      Returns:
      the language
    • familyFriendly

      public Boolean familyFriendly()
      Returns whether the result is family friendly.
      Returns:
      whether the result is family friendly