Package church.i18n.resources.bundles
Record Class ResourceBundleDescriptor
java.lang.Object
java.lang.Record
church.i18n.resources.bundles.ResourceBundleDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionResourceBundleDescriptor(@Nullable String resourceBundleName, @Nullable String module) Creates an instance of aResourceBundleDescriptorrecord 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.@Nullable Stringmodule()Returns the value of themodulerecord component.@Nullable StringReturns the value of theresourceBundleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourceBundleDescriptor
public ResourceBundleDescriptor(@Nullable @Nullable String resourceBundleName, @Nullable @Nullable String module) Creates an instance of aResourceBundleDescriptorrecord class.- Parameters:
resourceBundleName- the value for theresourceBundleNamerecord componentmodule- the value for themodulerecord 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). -
resourceBundleName
Returns the value of theresourceBundleNamerecord component.- Returns:
- the value of the
resourceBundleNamerecord component
-
module
Returns the value of themodulerecord component.- Returns:
- the value of the
modulerecord component
-