Here you can find the source of isStringWithLen(Object obj, int len)
public static final boolean isStringWithLen(Object obj, int len)
//package com.java2s; public class Main { public static final boolean isStringWithLen(String str, int len) { if (str == null) { return false; }//from w ww . j ava2 s . c o m if (str.trim().length() < len) { return false; } return true; } public static final boolean isStringWithLen(Object obj, int len) { if (obj == null) { return false; } if (obj.toString().trim().length() < len) { return false; } return true; } }