Java String Sanitize sanitizeToLong(String origMSISDN)

Here you can find the source of sanitizeToLong(String origMSISDN)

Description

sanitize To Long

License

Open Source License

Declaration

public static final long sanitizeToLong(String origMSISDN) 

Method Source Code

//package com.java2s;

public class Main {

    public static final long sanitizeToLong(String origMSISDN) {
        return Long.parseLong(sanitizeToString(origMSISDN));
    }/*w ww  .  j  a v a  2s  .  co  m*/

    public static final String sanitizeToString(String origMSISDN) {
        origMSISDN = origMSISDN.trim();
        return origMSISDN.startsWith("86") ? origMSISDN : "86" + origMSISDN;
    }
}

Related

  1. sanitizeTag(String s)
  2. sanitizeTextAsDomId(final String text)
  3. sanitizeTimezones(String s)
  4. sanitizeTokenString(final String tokenString)
  5. sanitizeToLineFeed(CharSequence string)
  6. sanitizeToString(String origMSISDN)
  7. sanitizeTypename(String name)
  8. sanitizeUnicode(String str)
  9. sanitizeUserEmail(String userEmail)