Class AddressCommon


  • public class AddressCommon
    extends Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String POBOX  
      static String[] sampleStreets  
    • Constructor Summary

      Constructors 
      Constructor Description
      AddressCommon()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isAddressNumber​(String input)
      This routine attempts to determine if the input is 'numeric' in the context of an address.
      static boolean isDirection​(String input)  
      static boolean isInitialMarker​(String input)  
      static boolean isModifier​(String input)  
      • Methods inherited from class java.lang.Object

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

      • sampleStreets

        public static final String[] sampleStreets
    • Constructor Detail

      • AddressCommon

        public AddressCommon()
    • Method Detail

      • isDirection

        public static boolean isDirection​(String input)
      • isModifier

        public static boolean isModifier​(String input)
      • isInitialMarker

        public static boolean isInitialMarker​(String input)
      • isAddressNumber

        public static boolean isAddressNumber​(String input)
        This routine attempts to determine if the input is 'numeric' in the context of an address. For example, in '1st Avenue', 'One Broadway', '45 Penaton St', '312-314 Kings Rd.', '5/2 Hanlon Crescent' are all valid addresses and should return true.
        Parameters:
        input - The input to test.
        Returns:
        True if the input looks plausible as the start of an address.