/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.intuism.ui.autocorrection.phonenumber; import com.intuism.ui.form.text.caret.Insertion; /** * Corrects a US phone number such as 6505067000 to the more * easy-to-read and globally valid value +1 (650) 506-7000. * * @author Randahl Fink Isaksen */ public class UsPhoneNumberCorrector extends AbstractNationalPhoneNumberCorrector { private static final UsPhoneNumberCorrector instance = new UsPhoneNumberCorrector(); private UsPhoneNumberCorrector() { super( "+1 (650) 506-7000", new Insertion(8, "-"), new Insertion(5, ") "), new Insertion(2, " (") ); } public static UsPhoneNumberCorrector getInstance() {return instance;} }