static String unnull(String s) { return s == null ? "" : s; } static Collection unnull(Collection l) { ret l == null ? emptyList() : l; } static L unnull(L l) { ret l == null ? emptyList() : l; } static int[] unnull(int[] l) { ret l == null ? emptyIntArray() : l; } static char[] unnull(char[] l) { ret l == null ? emptyCharArray() : l; } static double[] unnull(double[] l) { ret l == null ? emptyDoubleArray() : l; } static float[] unnull(float[] l) { ret l == null ? emptyFloatArray() : l; } static Map unnull(Map l) { ret l == null ? emptyMap() : l; } static Iterable unnull(Iterable i) { ret i == null ? emptyList() : i; } static A[] unnull(A[] a) { ret a == null ? (A[]) emptyObjectArray() : a; } static BitSet unnull(BitSet b) { ret b == null ? new BitSet() : b; } ifclass Pt static Pt unnull(Pt p) { ret p == null ? new Pt : p; } endif //ifclass Symbol ifndef SymbolAsString static Symbol unnull(Symbol s) { ret s == null ? emptySymbol() : s; } //endif endifndef ifclass Pair static Pair unnull(Pair p) { ret p != null ? p : Pair(null, null); } endif static int unnull(Int i) { ret i == null ? 0 : i; } static long unnull(Long l) { ret l == null ? 0L : l; } static double unnull(Double l) { ret l == null ? 0.0 : l; }