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