Class CommonPropHelper
-
- All Implemented Interfaces:
public class CommonPropHelper- Since:
2022-06-17
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringDisabledValuepublic final static StringMaskingValue
-
Constructor Summary
Constructors Constructor Description CommonPropHelper()
-
Method Summary
Modifier and Type Method Description static booleannotValue(String str)static booleanhasValue(String value)static LinkedHashSet<String>onlyValue(Collection<String> values)static LinkedHashMap<String, String>onlyValue(Map<String, String> values)static StringtoString(@NotNull() Resource resource)Use 'classpath:' format for ClassPathResource and getURL(). static voidmergeNotValue(@NotNull() Map<String, String> thiz, @Nullable() Map<String, String> that)if this.value is invalid, then use that.value by key matches. static Array<String>arrayOrNull(String str, boolean nonnull)comma-separated values to StringArray -
-
Method Detail
-
onlyValue
@NotNull() static LinkedHashSet<String> onlyValue(Collection<String> values)
-
toString
@NotNull() static String toString(@NotNull() Resource resource)
Use 'classpath:' format for ClassPathResource and getURL().toExternalForm() for the rest
-
mergeNotValue
static void mergeNotValue(@NotNull() Map<String, String> thiz, @Nullable() Map<String, String> that)
if this.value is invalid, then use that.value by key matches.
- Parameters:
thiz- this mapthat- that map
-
arrayOrNull
@Contract(value = "_,true->!null") static Array<String> arrayOrNull(String str, boolean nonnull)
comma-separated values to StringArray
-
-
-
-