/** * Workaround for a JDK 1.4.1 bug where <tt>IdentityHashMap</tt>s are not * correctly deserialized. * * @param o * @return Map */ public static Map deserialize(Object o) { return new IdentityMap( (Map) o ); }
/** * Workaround for a JDK 1.4.1 bug where <tt>IdentityHashMap</tt>s are not * correctly deserialized. * * @param o * @return Map */ public static Map deserialize(Object o) { return new IdentityMap( (Map) o ); }
/** * Return a new instance of this class, with an undefined * iteration order * * @return Map */ public static Map instantiate(int size) { return new IdentityMap( new HashMap(size) ); }
/** * Return a new instance of this class, with an undefined * iteration order * * @return Map */ public static Map instantiate(int size) { return new IdentityMap( new HashMap(size) ); }
/** * Return a new instance of this class, with iteration * order defined by the order that entries were added */ public static Map instantiateSequenced(int size) { return new IdentityMap( new SequencedHashMap(size) ); }
/** * Return a new instance of this class, with iteration * order defined by the order that entries were added */ public static Map instantiateSequenced(int size) { return new IdentityMap( new SequencedHashMap(size) ); }