Package | Description |
---|---|
propel.core.functional.predicates | |
propel.core.functional.projections | |
propel.core.utils |
Modifier and Type | Method and Description |
---|---|
static boolean |
Objects.contains(java.lang.Object element,
java.lang.String _part,
StringComparison _comparison)
Predicate returning true when the function argument's toString() contains some string
|
static boolean |
Strings.contains(java.lang.String element,
java.lang.String _part,
StringComparison _comparison)
Predicate returning true when the function argument contains some string
|
static boolean |
Objects.endsWith(java.lang.Object element,
java.lang.String _suffix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() ends with a suffix
|
static boolean |
Strings.endsWith(java.lang.String element,
java.lang.String _suffix,
StringComparison _comparison)
Predicate returning true when the function argument ends with a suffix
|
static boolean |
Objects.isEqual(java.lang.Object element,
java.lang.String _other,
StringComparison _comparison)
Predicate returning true when the function argument's toString() is equal to some string
|
static boolean |
Strings.isEqual(java.lang.String element,
java.lang.String _other,
StringComparison _comparison)
Predicate returning true when the function argument is equal to some string
|
static boolean |
Objects.notContains(java.lang.Object element,
java.lang.String _part,
StringComparison _comparison)
Predicate returning true when the function argument's toString() does not contain some string
|
static boolean |
Strings.notContains(java.lang.String element,
java.lang.String _part,
StringComparison _comparison)
Predicate returning true when the function argument does not contain some string
|
static boolean |
Objects.notEndsWith(java.lang.Object element,
java.lang.String _suffix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() does not end with a suffix
|
static boolean |
Strings.notEndsWith(java.lang.String element,
java.lang.String _suffix,
StringComparison _comparison)
Predicate returning true when the function argument does not end with a suffix
|
static boolean |
Objects.notStartsWith(java.lang.Object element,
java.lang.String _prefix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() does not start with a prefix
|
static boolean |
Strings.notStartsWith(java.lang.String element,
java.lang.String _prefix,
StringComparison _comparison)
Predicate returning true when the function argument does not start with a prefix
|
static boolean |
Objects.startsWith(java.lang.Object element,
java.lang.String _prefix,
StringComparison _comparison)
Predicate returning true when the function argument's toString() starts with a prefix
|
static boolean |
Strings.startsWith(java.lang.String element,
java.lang.String _prefix,
StringComparison _comparison)
Predicate returning true when the function argument starts with a prefix
|
Modifier and Type | Method and Description |
---|---|
static int |
Strings.count(java.lang.String value,
java.lang.String _str,
StringComparison _stringComparison)
Returns the number of occurrences of a string within a string
|
static int |
Strings.indexOf(java.lang.String value,
java.lang.String _part,
StringComparison _stringComparison)
Returns the first index where a part is encountered within a string value.
|
static int |
Strings.lastIndexOf(java.lang.String value,
java.lang.String _part,
StringComparison _stringComparison)
Returns the last index where a part is encountered within a string value.
|
static java.lang.String |
Strings.replace(java.lang.String value,
java.lang.String _textToReplace,
java.lang.String _replaceWithText,
StringComparison _stringComparison)
Returns the string after some text replacement
|
Modifier and Type | Method and Description |
---|---|
static StringComparison |
StringComparison.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StringComparison[] |
StringComparison.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static int |
StringUtils.compare(java.lang.String a,
java.lang.String b,
StringComparison stringComparison)
Compares two Strings using the specified string comparison.
|
static boolean |
StringUtils.contains(java.lang.Iterable<java.lang.String> values,
java.lang.String value,
StringComparison stringComparison)
Returns true if the value is contained in the collection of values.
|
static boolean |
StringUtils.contains(java.lang.String[] values,
java.lang.String value,
StringComparison stringComparison)
Returns true if the value is contained in the collection of values.
|
static boolean |
StringUtils.contains(java.lang.String value,
java.lang.String part,
StringComparison stringComparison)
Returns true if the part is contained in the value.
|
static boolean |
StringUtils.containsAll(java.lang.Iterable<java.lang.String> values,
java.lang.Iterable<java.lang.String> items,
StringComparison stringComparison)
Returns true if all items are contained in the values string collection.
|
static boolean |
StringUtils.containsAll(java.lang.String value,
java.lang.Iterable<java.lang.String> parts,
StringComparison stringComparison)
Returns true if all strings specified are contained in the value string.
|
static boolean |
StringUtils.containsAny(java.lang.Iterable<java.lang.String> values,
java.lang.Iterable<java.lang.String> items,
StringComparison stringComparison)
Returns true if any item in items is contained in the values string collection.
|
static boolean |
StringUtils.containsAny(java.lang.String value,
java.lang.Iterable<java.lang.String> parts,
StringComparison stringComparison)
Returns true if any of the strings are contained in a string.
|
static int |
StringUtils.count(java.lang.String value,
java.lang.String element,
StringComparison stringComparison)
Returns the number of occurences of a string element in a string value, using the specified string comparison type.
|
static boolean |
StringUtils.endsWith(java.lang.String value,
java.lang.String suffix,
StringComparison stringComparison)
Returns true if a value ends with a suffix.
|
static boolean |
StringUtils.equal(java.lang.String a,
java.lang.String b,
StringComparison stringComparison)
Returns true if a value equals with another.
|
static java.util.List<org.w3c.dom.Node> |
XmlUtils.findAllNodes(org.w3c.dom.Node node,
java.lang.String childNodeName,
MatchType matchType,
StringComparison comparisonType)
Searches for all matching child nodes found under the given Node.
|
static org.w3c.dom.Node |
XmlUtils.findAttribute(org.w3c.dom.Node node,
java.lang.String attributeName,
MatchType matchType,
StringComparison comparisonType)
Searches for the first matching attribute found on the given Node.
|
static org.w3c.dom.Node |
XmlUtils.findNode(org.w3c.dom.Node node,
java.lang.String childNodeName,
int index,
MatchType matchType,
StringComparison comparisonType)
Searches for a matching child node found under the given Node.
|
static int |
StringUtils.indexOf(java.lang.String value,
java.lang.String part,
int startIndex,
int count,
StringComparison stringComparison)
Returns the first, second, third, etc.
|
static int |
StringUtils.indexOf(java.lang.String value,
java.lang.String part,
int occurrence,
StringComparison stringComparison)
Returns the index of the first/second/third/etc.
|
static int |
StringUtils.indexOf(java.lang.String value,
java.lang.String part,
StringComparison stringComparison)
Returns the first index where a part is encountered within a string value.
|
static int |
StringUtils.lastIndexOf(java.lang.String value,
java.lang.String part,
int startIndex,
int count,
StringComparison stringComparison)
Returns the first, second, third, etc.
|
static int |
StringUtils.lastIndexOf(java.lang.String value,
java.lang.String part,
int occurrenceFromEnd,
StringComparison stringComparison)
Returns the index of the first/second/third/etc.
|
static int |
StringUtils.lastIndexOf(java.lang.String value,
java.lang.String part,
StringComparison stringComparison)
Returns the last index where a part is encountered within a string value.
|
static boolean |
StringUtils.match(java.lang.String a,
MatchType stringMatch,
java.lang.String b,
StringComparison stringComparison)
Allows for matching a string to another, using Equals, StartsWith, EndsWith or Contains and a string comparison.
|
static java.lang.String |
XmlUtils.parseAttribute(org.w3c.dom.Node node,
java.lang.String attributeName,
MatchType matchType,
StringComparison comparisonType)
Parses the first matching attribute found on the given Node.
|
static boolean |
StringUtils.parseBool(java.lang.String value,
java.lang.String trueValue,
java.lang.String falseValue,
StringComparison comparisonType)
Parses a boolean from a string
|
static java.lang.String |
XmlUtils.parseNode(org.w3c.dom.Node node,
java.lang.String childNodeName,
int index,
MatchType matchType,
StringComparison comparisonType)
Parses a child node found on the given Node.
|
static java.lang.String |
StringUtils.replace(java.lang.String value,
java.lang.String textToReplace,
java.lang.String replaceWithText,
StringComparison stringComparison)
Replaces text in a value with the specified replacement text, using the given string comparison type.
|
static boolean |
StringUtils.startsWith(java.lang.String value,
java.lang.String prefix,
StringComparison stringComparison)
Returns true if a value starts with a prefix.
|
static java.lang.String |
StringUtils.trim(java.lang.String value,
java.lang.String trimmed,
StringComparison stringComparison)
Trims a value using the trimmed string.
|
static java.lang.String |
StringUtils.trimEnd(java.lang.String value,
java.lang.String trimmed,
StringComparison stringComparison)
Trims a value using the trimmed string.
|
static java.lang.String |
StringUtils.trimStart(java.lang.String value,
java.lang.String trimmed,
StringComparison stringComparison)
Trims a value using the trimmed string.
|
static TryResult<java.lang.Boolean> |
StringUtils.tryParseBool(java.lang.String value,
java.lang.String trueValue,
java.lang.String falseValue,
StringComparison comparisonType)
Tries to parse the given value.
|