Java String Starts Wtih startsWithAnyOfThose(final String in, final String[] prefixes)

Here you can find the source of startsWithAnyOfThose(final String in, final String[] prefixes)

Description

starts With Any Of Those

License

Apache License

Declaration

private static boolean startsWithAnyOfThose(final String in, final String[] prefixes) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static boolean startsWithAnyOfThose(final String in, final String[] prefixes) {
        for (final String prefix : prefixes) {
            if (in.startsWith(prefix)) {
                return true;
            }// w  w w.  j a v  a 2s  .  c o m
        }
        return false;
    }
}

Related

  1. startsWithAny(String toMatch, String... startsWithAny)
  2. startsWithAnyCI(String string, String... prefixes)
  3. startsWithAnyCS(String str, String[] needles)
  4. startsWithAnyIgnoreCase(String s, String... options)
  5. startsWithAnyIgnoreCase(String string, String... searchStrings)
  6. startsWithAt(String text, String toFind, int offset)
  7. startsWithCamelCase(String string, String prefix)
  8. startsWithCapLettersEndsWithDigits(String text)
  9. startsWithChar(CharSequence s, char prefix)