Class ChinesePostcodeValidateStrategy

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getRegex()  
      void setRegex​(java.lang.String regex)  
      boolean validate​(java.lang.String postcode)
      validate the specific postcode
      • Methods inherited from class java.lang.Object

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

      • ChinesePostcodeValidateStrategy

        public ChinesePostcodeValidateStrategy()
    • Method Detail

      • validate

        public boolean validate​(java.lang.String postcode)
        Description copied from interface: PostcodeValidateStrategy
        validate the specific postcode
        Specified by:
        validate in interface PostcodeValidateStrategy
        Parameters:
        postcode - the specific postcode
        Returns:
        validated result
      • getRegex

        protected java.lang.String getRegex()
      • setRegex

        public void setRegex​(java.lang.String regex)