Package io.github.coho04.mysql.entities
Class SearchResult
java.lang.Object
io.github.coho04.mysql.entities.SearchResult
The SearchResult class represents a single search result item.
It provides methods to retrieve the item in different data types.
-
Constructor Summary
ConstructorDescriptionSearchResult
(String item) The SearchResult class represents a single search result item. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the item as a boolean value.byte
Retrieves the item as a byte value.double
Retrieves the item as a double value.float
Retrieves the item as a float value.int
getAsInt()
Retrieves the item as an integer.long
Retrieves the item as a long value.Retrieves the item as an Object.Retrieves the item as a short value.Retrieves the item as a string.
-
Constructor Details
-
SearchResult
The SearchResult class represents a single search result item. It provides methods to retrieve the item in different data types.
-
-
Method Details
-
getAsString
Retrieves the item as a string.- Returns:
- The item as a string.
-
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
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
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.
-