Class ForestSpec.SQuery

Object
SQuery
Enclosing class:
ForestSpec

@PublicApi public static final class ForestSpec.SQuery extends Object
Represents a SQuery. See ForestSpec.sQuery(String, String) for details.
  • Field Details

  • Constructor Details

    • SQuery

      public SQuery(@NotNull String type, @NotNull String query)
      Creates SQuery instance.
      Parameters:
      type - one of the known query types
      query - query text, can be empty string
  • Method Details

    • getQuery

      @NotNull public String getQuery()
      Returns the query text.
    • getType

      @NotNull public String getType()
      Returns the query type.
    • isShowRecent

      @Internal public boolean isShowRecent()
      Returns true if the query can be treated as "show all recent items".
    • equals

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

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

      public static ForestSpec.SQuery fromRest(RestForestSpec rfs)