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 thebaseUri
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepatternFallbacks
record component.Returns the value of thestringFallbacks
record component.final String
toString()
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 aFallbacks
record class.- Parameters:
baseUri
- the value for thebaseUri
record componentstringFallbacks
- the value for thestringFallbacks
record componentpatternFallbacks
- the value for thepatternFallbacks
record 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 thebaseUri
record component.- Returns:
- the value of the
baseUri
record component
-
stringFallbacks
Returns the value of thestringFallbacks
record component.- Returns:
- the value of the
stringFallbacks
record component
-
patternFallbacks
Returns the value of thepatternFallbacks
record component.- Returns:
- the value of the
patternFallbacks
record component
-