Record Class PluginDatabaseManager.DatabaseStats
java.lang.Object
java.lang.Record
group.worldstandard.pudel.api.database.PluginDatabaseManager.DatabaseStats
- Enclosing interface:
PluginDatabaseManager
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseStats(String pluginId, String schemaName, int tableCount, long totalRows, int schemaVersion) Creates an instance of aDatabaseStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pluginId()Returns the value of thepluginIdrecord component.Returns the value of theschemaNamerecord component.intReturns the value of theschemaVersionrecord component.intReturns the value of thetableCountrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalRowsrecord component.
-
Constructor Details
-
DatabaseStats
public DatabaseStats(String pluginId, String schemaName, int tableCount, long totalRows, int schemaVersion) Creates an instance of aDatabaseStatsrecord class.- Parameters:
pluginId- the value for thepluginIdrecord componentschemaName- the value for theschemaNamerecord componenttableCount- the value for thetableCountrecord componenttotalRows- the value for thetotalRowsrecord componentschemaVersion- the value for theschemaVersionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pluginId
Returns the value of thepluginIdrecord component.- Returns:
- the value of the
pluginIdrecord component
-
schemaName
Returns the value of theschemaNamerecord component.- Returns:
- the value of the
schemaNamerecord component
-
tableCount
public int tableCount()Returns the value of thetableCountrecord component.- Returns:
- the value of the
tableCountrecord component
-
totalRows
public long totalRows()Returns the value of thetotalRowsrecord component.- Returns:
- the value of the
totalRowsrecord component
-
schemaVersion
public int schemaVersion()Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-