Interface TranslationArguments
- All Known Subinterfaces:
TranslationArguments.Array,TranslationArguments.Named
public sealed interface TranslationArguments
permits TranslationArguments.Array, TranslationArguments.Named
Represents the arguments of a translation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacePositional arguments for a translation.static interfaceNamed arguments for a translation. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic TranslationArguments.ArrayCreates a newTranslationArguments.Arraywith the given values.static TranslationArguments.ArrayCreates a newTranslationArguments.Arraywith the given values.static TranslationArguments.Arrayempty()Returns aTranslationArguments.Arrayinstance with no arguments.static TranslationArguments.NamedCreates a newTranslationArguments.Namedwith the given values.
-
Method Details
-
array
Creates a newTranslationArguments.Arraywith the given values.- Parameters:
values- the values as a list- Returns:
- the created array translation arguments
-
array
Creates a newTranslationArguments.Arraywith the given values.- Parameters:
values- the values as an array- Returns:
- the created array translation arguments
-
named
Creates a newTranslationArguments.Namedwith the given values.- Parameters:
values- the values as a map- Returns:
- the created named translation arguments
-
empty
Returns aTranslationArguments.Arrayinstance with no arguments.
-