Package org.ametys.core.source
Record Class StaticOptionalSourceFallback.Fallbacks
java.lang.Object
java.lang.Record
org.ametys.core.source.StaticOptionalSourceFallback.Fallbacks
- Record Components:
baseUri- The base uri for valuesstringFallbacks- Simple string fallbackspatternFallbacks- Fallbacks with pattern
- Enclosing class:
StaticOptionalSourceFallback
public static record StaticOptionalSourceFallback.Fallbacks(String baseUri, Map<String,String> stringFallbacks, Map<Pattern,String> patternFallbacks)
extends Record
A fallback static configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseUri()Returns the value of thebaseUrirecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepatternFallbacksrecord component.Returns the value of thestringFallbacksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Fallbacks
public Fallbacks(String baseUri, Map<String, String> stringFallbacks, Map<Pattern, String> patternFallbacks) Creates an instance of aFallbacksrecord class.- Parameters:
baseUri- the value for thebaseUrirecord componentstringFallbacks- the value for thestringFallbacksrecord componentpatternFallbacks- the value for thepatternFallbacksrecord 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
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). -
baseUri
Returns the value of thebaseUrirecord component.- Returns:
- the value of the
baseUrirecord component
-
stringFallbacks
Returns the value of thestringFallbacksrecord component.- Returns:
- the value of the
stringFallbacksrecord component
-
patternFallbacks
Returns the value of thepatternFallbacksrecord component.- Returns:
- the value of the
patternFallbacksrecord component
-