Package cn.sinozg.applet.common.recode
Record Class DictPairCache
java.lang.Object
java.lang.Record
cn.sinozg.applet.common.recode.DictPairCache
数据字典缓存
- Since:
- 2025-01-17 18:51:51
- Author:
- xyb
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDictPairCache(boolean i18n, Map<String, I18nName> map) Creates an instance of aDictPairCacherecord 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.booleani18n()Returns the value of thei18nrecord component.map()Returns the value of themaprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
i18n
private final boolean i18nThe field for thei18nrecord component. -
map
The field for themaprecord component.
-
-
Constructor Details
-
DictPairCache
Creates an instance of aDictPairCacherecord class.- Parameters:
i18n- the value for thei18nrecord componentmap- the value for themaprecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
i18n
public boolean i18n()Returns the value of thei18nrecord component.- Returns:
- the value of the
i18nrecord component
-
map
Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-