/** * Return whether a Map is fast * @param map The map * @return Whether it is fast or not. * @since 1.8.0 */ public static boolean getCacheFast(final Map<?, ?> map) { if (map instanceof WeakFastHashMap) { return ((WeakFastHashMap<?, ?>) map).getFast(); } else { return false; } }
/** * Return whether a Map is fast * @param map The map * @return Whether it is fast or not. * @since 1.8.0 */ public static boolean getCacheFast(final Map<?, ?> map) { if (map instanceof WeakFastHashMap) { return ((WeakFastHashMap<?, ?>) map).getFast(); } else { return false; } }
/** * Return a shallow copy of this <code>FastHashMap</code> instance. * The keys and values themselves are not copied. * * @return a clone of this map */ @Override public Object clone() { WeakFastHashMap<K, V> results = null; if (fast) { results = new WeakFastHashMap<K, V>(map); } else { synchronized (map) { results = new WeakFastHashMap<K, V>(map); } } results.setFast(getFast()); return (results); }
/** * Return a shallow copy of this <code>FastHashMap</code> instance. * The keys and values themselves are not copied. * * @return a clone of this map */ @Override public Object clone() { WeakFastHashMap<K, V> results = null; if (fast) { results = new WeakFastHashMap<K, V>(map); } else { synchronized (map) { results = new WeakFastHashMap<K, V>(map); } } results.setFast(getFast()); return (results); }
/** * Return whether a Map is fast * @param map The map * @return Whether it is fast or not. * @since 1.8.0 */ public static boolean getCacheFast(Map map) { if (map instanceof WeakFastHashMap) { return ((WeakFastHashMap)map).getFast(); } else { return false; } }
/** * Return whether a Map is fast * @param map The map * @return Whether it is fast or not. * @since 1.8.0 */ public static boolean getCacheFast(Map map) { if (map instanceof WeakFastHashMap) { return ((WeakFastHashMap)map).getFast(); } else { return false; } }
/** * Return whether a Map is fast * @param map The map * @return Whether it is fast or not. * @since 1.8.0 */ public static boolean getCacheFast(Map map) { if (map instanceof WeakFastHashMap) { return ((WeakFastHashMap)map).getFast(); } else { return false; } }
/** * Return whether a Map is fast * @param map The map * @return Whether it is fast or not. * @since 1.8.0 */ public static boolean getCacheFast(final Map<?, ?> map) { if (map instanceof WeakFastHashMap) { return ((WeakFastHashMap<?, ?>) map).getFast(); } else { return false; } }
/** * Return a shallow copy of this <code>FastHashMap</code> instance. * The keys and values themselves are not copied. * * @return a clone of this map */ public Object clone() { WeakFastHashMap results = null; if (fast) { results = new WeakFastHashMap(map); } else { synchronized (map) { results = new WeakFastHashMap(map); } } results.setFast(getFast()); return (results); }
/** * Return a shallow copy of this <code>FastHashMap</code> instance. * The keys and values themselves are not copied. * * @return a clone of this map */ public Object clone() { WeakFastHashMap results = null; if (fast) { results = new WeakFastHashMap(map); } else { synchronized (map) { results = new WeakFastHashMap(map); } } results.setFast(getFast()); return (results); }
/** * Return a shallow copy of this <code>FastHashMap</code> instance. * The keys and values themselves are not copied. * * @return a clone of this map */ public Object clone() { WeakFastHashMap results = null; if (fast) { results = new WeakFastHashMap(map); } else { synchronized (map) { results = new WeakFastHashMap(map); } } results.setFast(getFast()); return (results); }
/** * Return a shallow copy of this <code>FastHashMap</code> instance. * The keys and values themselves are not copied. * * @return a clone of this map */ @Override public Object clone() { WeakFastHashMap<K, V> results = null; if (fast) { results = new WeakFastHashMap<K, V>(map); } else { synchronized (map) { results = new WeakFastHashMap<K, V>(map); } } results.setFast(getFast()); return (results); }