Interface StringConverter
- All Known Subinterfaces:
StringConverter.WithArguments
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Converts any kind of
objects to strings.
Built-in argument converters use comma-separated operands in expressions processed by
StringUtil.convert(String, IManagedContainer). Nested expression operands
are evaluated before the enclosing converter is invoked. Boolean converters accept only trimmed, case-insensitive
true and false values.
- Since:
- 3.23
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic interfaceA StringConverter that accepts parsed argument arrays while retaining direct invocation throughStringConverter.WithArguments.apply(Object). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConverterReturns true when all two or more Boolean operands are true.static final StringConverterstatic final StringConverterstatic final StringConverterstatic final StringConverterstatic final StringConverterTests whether the first string contains the second string, with case-sensitive matching.static final StringConverterTests whether the first string contains the second string, ignoring case.static final StringConverterTests whether the first string ends with the second string, with case-sensitive matching.static final StringConverterCompares two strings case-sensitively; surrounding whitespace on each operand is ignored.static final StringConverterCompares two strings case-insensitively; surrounding whitespace on each operand is ignored.static final StringConverterstatic final StringConverterstatic final StringConverterstatic final StringConverterstatic final StringConverterstatic final StringConverterstatic final StringConverterstatic final StringConverterNegates one Boolean operand.static final StringConverterReturns true when at least one of the two or more Boolean operands is true.static final Stringstatic final StringConverterstatic final StringConverterstatic final StringConverterTests whether the first string starts with the second string, with case-sensitive matching.static final StringConverterstatic final StringConverterLooks up an OMPlatform property by name.static final StringConverterstatic final StringConverterstatic final StringConverterstatic final StringConverterstatic final StringConverterReturns true when an odd number of the two or more Boolean operands are true. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringConverterandThen(StringConverter after) default StringConvertercompose(StringConverter before)
-
Field Details
-
PRODUCT_GROUP
- See Also:
-
IDENTITY
-
CHARS
-
SAFE
-
HEX
- Since:
- 3.28
-
BASE64
- Since:
- 3.28
-
UPPER
-
LOWER
-
EQUALS
Compares two strings case-sensitively; surrounding whitespace on each operand is ignored.- Since:
- 3.31
-
EQUALS_IGNORE_CASE
Compares two strings case-insensitively; surrounding whitespace on each operand is ignored. Its converter name isequals_ignore_case.- Since:
- 3.31
-
CONTAINS
Tests whether the first string contains the second string, with case-sensitive matching.- Since:
- 3.31
-
CONTAINS_IGNORE_CASE
Tests whether the first string contains the second string, ignoring case.- Since:
- 3.31
-
STARTS_WITH
Tests whether the first string starts with the second string, with case-sensitive matching.- Since:
- 3.31
-
ENDS_WITH
Tests whether the first string ends with the second string, with case-sensitive matching.- Since:
- 3.31
-
AND
Returns true when all two or more Boolean operands are true. Every nested operand is evaluated before this converter is invoked, so this operation does not short-circuit.- Since:
- 3.31
-
OR
Returns true when at least one of the two or more Boolean operands is true. Every nested operand is evaluated before this converter is invoked, so this operation does not short-circuit.- Since:
- 3.31
-
XOR
Returns true when an odd number of the two or more Boolean operands are true.- Since:
- 3.31
-
NOT
-
CAP
-
CAP_ALL
-
UNCAP
-
UNCAP_ALL
-
ESCAPE
-
UNESCAPE
-
STRIP_HTML
- Since:
- 3.26
-
NET4J_USER_PATH
-
NET4J_STATE_PATH
-
NET4J_CONFIG_PATH
-
SYSTEM_PROPERTY
Looks up an OMPlatform property by name. With one argument, it returns the property value ornullif absent. The argument may also bepropertyName,defaultValue; the first comma separates the property name and the complete remaining text is the default. That default is returned only when the property is absent, not when its value is empty. For example,$$$system_property(transport,tcp)$$$returnstcpwhentransportis undefined.- Since:
- 3.31
-
PROPERTY_URI
-
-
Method Details
-
apply
-
compose
-
andThen
-