Here you can find the source of endsWith(String inEnd, String inValue)
Parameter | Description |
---|---|
inStart | a parameter |
inValue | a parameter |
public static boolean endsWith(String inEnd, String inValue)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w.ja v a 2 s.com*/ * NPE safe {@link String} startsWith * * @param inStart * @param inValue * @return */ public static boolean endsWith(String inEnd, String inValue) { if (inEnd == null && inValue == null) { return true; } else if (inEnd == null || inValue == null) { return false; } return inValue.endsWith(inEnd); } }