Package xyz.srnyx.annoyingapi.storage
Record Class StorageMethod.SQLInfo
java.lang.Object
java.lang.Record
xyz.srnyx.annoyingapi.storage.StorageMethod.SQLInfo
- Record Components:
url- Local: The full URL for the method
Remote: The beginning of the URL for the method
- Enclosing class:
StorageMethod
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable IntegerReturns the value of thedefaultPortrecord component.@NotNull Stringdriver()Returns the value of thedriverrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable AnnoyingLibrarylibrary()Returns the value of thelibraryrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
SQLInfo
public SQLInfo(@NotNull @NotNull String driver, @NotNull @NotNull Function<Path, String> url, @Nullable @Nullable AnnoyingLibrary library, @Nullable @Nullable Integer defaultPort) Creates an instance of aSQLInforecord class.- Parameters:
driver- the value for thedriverrecord componenturl- the value for theurlrecord componentlibrary- the value for thelibraryrecord componentdefaultPort- the value for thedefaultPortrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
driver
Returns the value of thedriverrecord component.- Returns:
- the value of the
driverrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
library
Returns the value of thelibraryrecord component.- Returns:
- the value of the
libraryrecord component
-
defaultPort
Returns the value of thedefaultPortrecord component.- Returns:
- the value of the
defaultPortrecord component
-