Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WildcardMasker

        public WildcardMasker()
    • 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 match
        input - the input string
        Returns:
        the remains string