/** * Return a {@link Modifications} instance to track modifications * to the given cache, creating and caching the instance if it does * not already exist in the given map. */ private static Modifications getModifications(Map<DataCache,Modifications> modMap, DataCache cache) { Modifications mods = (Modifications) modMap.get(cache); if (mods == null) { mods = new Modifications(); modMap.put(cache, mods); } return mods; }
/** * Return a {@link Modifications} instance to track modifications * to the given cache, creating and caching the instance if it does * not already exist in the given map. */ private static Modifications getModifications(Map<DataCache,Modifications> modMap, DataCache cache) { Modifications mods = (Modifications) modMap.get(cache); if (mods == null) { mods = new Modifications(); modMap.put(cache, mods); } return mods; }
/** * Return a {@link Modifications} instance to track modifications * to the given cache, creating and caching the instance if it does * not already exist in the given map. */ private static Modifications getModifications(Map modMap, DataCache cache) { Modifications mods = (Modifications) modMap.get(cache); if (mods == null) { mods = new Modifications(); modMap.put(cache, mods); } return mods; }
/** * Return a {@link Modifications} instance to track modifications * to the given cache, creating and caching the instance if it does * not already exist in the given map. */ private static Modifications getModifications(Map<DataCache,Modifications> modMap, DataCache cache) { Modifications mods = (Modifications) modMap.get(cache); if (mods == null) { mods = new Modifications(); modMap.put(cache, mods); } return mods; }
/** * Return a {@link Modifications} instance to track modifications * to the given cache, creating and caching the instance if it does * not already exist in the given map. */ private static Modifications getModifications(Map<DataCache,Modifications> modMap, DataCache cache) { Modifications mods = (Modifications) modMap.get(cache); if (mods == null) { mods = new Modifications(); modMap.put(cache, mods); } return mods; }