Java Code Examples for org.rapidoid.u.U#str()
The following examples show how to use
org.rapidoid.u.U#str() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: D.java From rapidoid with Apache License 2.0 | 5 votes |
public static void print(Object... values) { String text; if (values != null) { text = values.length == 1 ? U.str(values[0]) : U.str(values); } else { text = "null"; } System.out.println(">" + text + "<"); }
Example 2
Source File: RenderCtxImpl.java From rapidoid with Apache License 2.0 | 5 votes |
private String str(Object value) { if (value instanceof byte[]) { return Str.toWebSafeBinary((byte[]) value); } return U.str(value); }
Example 3
Source File: Err.java From rapidoid with Apache License 2.0 | 4 votes |
public static void secure(boolean condition, String msg) { if (!condition) { throw new SecurityException(U.str(msg)); } }
Example 4
Source File: AbstractValue.java From rapidoid with Apache License 2.0 | 4 votes |
@Override public String toString() { return U.str(getOrNull()); }
Example 5
Source File: Log.java From rapidoid with Apache License 2.0 | 4 votes |
private static String printable(Object value) { return U.str(value); }
Example 6
Source File: AbstractVar.java From rapidoid with Apache License 2.0 | 4 votes |
@Override public String toString() { return U.str(get()); }