Class SearchResult

java.lang.Object
io.github.coho04.mysql.entities.SearchResult

public class SearchResult extends Object
The SearchResult class represents a single search result item. It provides methods to retrieve the item in different data types.
  • Constructor Details

    • SearchResult

      public SearchResult(String item)
      The SearchResult class represents a single search result item. It provides methods to retrieve the item in different data types.
  • Method Details

    • getAsString

      public String getAsString()
      Retrieves the item as a string.
      Returns:
      The item as a string.
    • getAsBoolean

      public Boolean getAsBoolean()
      Retrieves the item as a boolean value.
      Returns:
      The item as a boolean value.
    • getAsInt

      public int getAsInt()
      Retrieves the item as an integer.
      Returns:
      The item as an integer.
    • getAsLong

      public long getAsLong()
      Retrieves the item as a long value.
      Returns:
      The item as a long value.
    • getAsDouble

      public double getAsDouble()
      Retrieves the item as a double value.
      Returns:
      The item as a double value.
    • getAsShort

      public Short getAsShort()
      Retrieves the item as a short value.
      Returns:
      The item as a short value.
    • getAsFloat

      public float getAsFloat()
      Retrieves the item as a float value.
      Returns:
      The item as a float value.
    • getAsObject

      public Object getAsObject()
      Retrieves the item as an Object.
      Returns:
      The item as an Object.
    • getAsByte

      public byte getAsByte()
      Retrieves the item as a byte value.
      Returns:
      The item as a byte value.