java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result
net.ygbstudio.jbrave.core.domain.dto.result.NewsResult

public final class NewsResult extends Result
Represents a news result in search results. This class provides structured information about news articles in the Brave Search API results.
  • Constructor Details

    • NewsResult

      public NewsResult(@NotNull @NotNull NewsResult.Builder builder)
      Creates a new news result from the given builder.
      Parameters:
      builder - the builder carrying the news fields
  • Method Details

    • metaUrl

      public MetaUrl metaUrl()
      Returns the meta URL.
      Returns:
      the meta URL
    • source

      public String source()
      Returns the source.
      Returns:
      the source
    • breaking

      public Boolean breaking()
      Returns whether the news is breaking.
      Returns:
      whether the news is breaking
    • isLive

      public Boolean isLive()
      Returns whether the news is live.
      Returns:
      whether the news is live
    • thumbnail

      public Thumbnail thumbnail()
      Returns the thumbnail.
      Returns:
      the thumbnail
    • age

      public String age()
      Returns the age of the news.
      Returns:
      the age
    • extraSnippets

      public List<String> extraSnippets()
      Returns the extra snippets.
      Returns:
      the extra snippets
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object