Java Hash String hasHexPrefix(final String hexSymbols)

Here you can find the source of hasHexPrefix(final String hexSymbols)

Description

has Hex Prefix

License

Open Source License

Declaration

public static boolean hasHexPrefix(final String hexSymbols) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final String HEX_STRING_PREFIX1 = "0x";
    public static final String HEX_STRING_PREFIX2 = "0X";

    public static boolean hasHexPrefix(final String hexSymbols) {
        return (hexSymbols.startsWith(HEX_STRING_PREFIX1) || hexSymbols.startsWith(HEX_STRING_PREFIX2));
    }//from  w w  w  .  j a  v  a 2s .  c  om
}

Related

  1. hashCodeOfStringArray(String[] stringArray)
  2. hashCodeToString(byte[] hash)
  3. hashCodeToString(long code)
  4. hasHeirarchy(String xpath)
  5. hasHexOrDecLongUrnSuffix(String value)
  6. hasHighChars(String s)
  7. hasHint(String hint, String parameter)
  8. hashIt(String s)
  9. hasHost(String path)