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 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[]) new O[0] : 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