Package com.aspectran.core.util.wildcard
Class WildcardMasker
- java.lang.Object
-
- com.aspectran.core.util.wildcard.WildcardMasker
-
public class WildcardMasker extends java.lang.Object
Erase the characters that does not corresponds to the wildcard, and returns collect only the remaining characters. In other words, only the characters that correspond to wildcards are left.
-
-
Constructor Summary
Constructors Constructor Description WildcardMasker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
mask(WildcardPattern pattern, java.lang.CharSequence input)
Erase the characters that does not corresponds to the wildcard, and returns collect only the remaining characters.
-
-
-
Method Detail
-
mask
public static java.lang.String mask(WildcardPattern pattern, java.lang.CharSequence input)
Erase the characters that does not corresponds to the wildcard, and returns collect only the remaining characters. In other words, only the characters that correspond to wildcards are left.- Parameters:
pattern
- the pattern to matchinput
- the input string- Returns:
- the remains string
-
-