Record Class IP2LocationAdminConfig.DatabaseInfo
java.lang.Object
java.lang.Record
com.iizix.server.geo.ip2location.IP2LocationAdminConfig.DatabaseInfo
- Record Components:
name- The name of the tier ("DB11_LITE"), the value ofServerSettings.IP2LOCATION_DB_NAME.description- What the tier holds ("Country+Region+City+LatLon+ZIP+Timezone").
- Enclosing class:
IP2LocationAdminConfig
Constructor Summary
ConstructorsConstructorDescriptionDatabaseInfo(String name, String description) Creates an instance of aDatabaseInforecord class.Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.getLabel()The text of the combo box line, as NetPhantom shows it.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
DatabaseInfo
Creates an instance of aDatabaseInforecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord component
Method Details
getLabel
The text of the combo box line, as NetPhantom shows it.- Returns:
name+" - "+description.
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. All components in this record class are compared withObjects::equals(Object,Object).name
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component