boolean (Object obj) { if (!(obj instanceof DFAMap)) return false; @SuppressWarnings({"unchecked"}) DFAMap<V> rhs = (DFAMap<V>) obj; if (myAll == null) { if (rhs.myAll != null) return false; if (myK == null) return rhs.myK == null; return myK.equals(rhs.myK) && myV.equals(rhs.myV); } else { if (rhs.myAll == null) return false; return myAll.equals(rhs.myAll); } }