java.lang.Object
java.lang.Record
org.tentackle.i18n.pdo.StoredBundle.StoredBundleUDK
- Record Components:
name- the resource bundle namelocale- the locale, null if default
- All Implemented Interfaces:
Serializable,Comparable<StoredBundle.StoredBundleUDK>
- Enclosing interface:
StoredBundle
public static record StoredBundle.StoredBundleUDK(String name, String locale)
extends Record
implements Serializable, Comparable<StoredBundle.StoredBundleUDK>
The unique domain key for StoredBundle.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStoredBundleUDK(String name, String locale) Creates an instance of aStoredBundleUDKrecord class.Creates a unique domain key for a pdo. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.locale()Returns the value of thelocalerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<StoredBundle.StoredBundleUDK>
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-