Java String Ends With endsWith(StringBuilder sb, String end)

Here you can find the source of endsWith(StringBuilder sb, String end)

Description

ends With

License

Open Source License

Declaration

public static boolean endsWith(StringBuilder sb, String end) 

Method Source Code

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

public class Main {
    public static boolean endsWith(StringBuilder sb, String end) {
        int i = sb.indexOf(end, sb.length() - end.length());
        return i != -1;
    }/*from www .  j av  a 2 s .c  o m*/
}

Related

  1. endsWith(String[] searchStrings, String text)
  2. endsWith(String[] searchStrings, String text)
  3. endsWith(StringBuffer buf, String s)
  4. endsWith(StringBuffer buffer, String suffix)
  5. endsWith(StringBuffer in, String ending)
  6. endsWith(StringBuilder sb, String s)
  7. endsWith(StringBuilder sb, String suffix)
  8. endsWith3(String string, int char1, int char2, int char3)
  9. endsWithAny(final byte[] str, int startIndex, int endIndex, final byte... chars)