List of usage examples for java.lang CharSequence toString
public String toString();
From source file:gsn.storage.SQLUtils.java
public static void main(String[] args) { TreeMap<CharSequence, CharSequence> map = new TreeMap<CharSequence, CharSequence>( new CaseInsensitiveComparator()); String query = "seLect ali.fd, x.x, fdfd.fdfd, *.r, * from x,x, bla, x whEre k"; map.put("x", "done"); CharSequence out = newRewrite(query, map); System.out.println(out.toString()); System.out.println(extractProjection(query)); out = newRewrite(extractProjection(query), map); System.out.println(out.toString()); }
From source file:Main.java
static public boolean isValidPassword(CharSequence target) { return target.toString().matches("(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,20}"); }
From source file:Main.java
public static String convertCharSequence2String(CharSequence charSeq) { return charSeq.toString(); }
From source file:Main.java
public static boolean isEmpty(CharSequence target) { target = target.toString().trim(); return TextUtils.isEmpty(target); }
From source file:Main.java
protected static String toString(CharSequence cs) { return cs == null ? null : cs.toString(); }
From source file:Main.java
public static String nullToEmpty(CharSequence str) { return str == null ? "" : str.toString(); }
From source file:Main.java
static public boolean isNullOrEmpty(CharSequence cs) { return cs == null || cs.toString().equals(""); }
From source file:Main.java
/** * toString method for values include null * @param cs// w w w . j a v a 2 s . c o m * @return the string */ public static String toString(CharSequence cs) { return cs == null ? null : cs.toString(); }
From source file:Main.java
public static boolean isNull(CharSequence text) { if (text == null || "".equals(text.toString().trim()) || "null".equals(text)) return true; return false; }
From source file:Main.java
public static boolean isEmpty(CharSequence str) { return (null == str || str.toString().length() == 0); }