Record Class ConfiguredLocaleResolver.Snapshot
java.lang.Object
java.lang.Record
com.ultikits.ultitools.text.internal.ConfiguredLocaleResolver.Snapshot
- Enclosing class:
ConfiguredLocaleResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theforcedrecord component.private final @Nullable StringThe field for therawFallbackrecord component.private final @Nullable StringThe field for therawLanguagerecord component.private final ConfiguredLocaleResolver.FallbackThe field for theselectionrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.(package private) Localefallback()forced()Returns the value of theforcedrecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of therawFallbackrecord component.@Nullable StringReturns the value of therawLanguagerecord component.Returns the value of theselectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
rawLanguage
The field for therawLanguagerecord component. -
rawFallback
The field for therawFallbackrecord component. -
forced
-
selection
The field for theselectionrecord component.
-
-
Constructor Details
-
Snapshot
private Snapshot(@Nullable @Nullable String rawLanguage, @Nullable @Nullable String rawFallback, Optional<Locale> forced, ConfiguredLocaleResolver.Fallback selection) Creates an instance of aSnapshotrecord class.- Parameters:
rawLanguage- the value for therawLanguagerecord componentrawFallback- the value for therawFallbackrecord componentforced- the value for theforcedrecord componentselection- the value for theselectionrecord component
-
-
Method Details
-
fallback
Locale fallback() -
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). -
rawLanguage
Returns the value of therawLanguagerecord component.- Returns:
- the value of the
rawLanguagerecord component
-
rawFallback
Returns the value of therawFallbackrecord component.- Returns:
- the value of the
rawFallbackrecord component
-
forced
-
selection
Returns the value of theselectionrecord component.- Returns:
- the value of the
selectionrecord component
-