
com.maxifier.mxcache.impl.caches.batch.MapValueStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mxcache-runtime Show documentation
Show all versions of mxcache-runtime Show documentation
Constains all classes necessary for launching a MxCache-instrumentated application
/*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package com.maxifier.mxcache.impl.caches.batch;
import gnu.trove.map.hash.THashMap;
import java.util.*;
/**
* @author Alexander Kochurov ([email protected])
*/
final class MapValueStrategy implements ValueStrategy, V, Void> {
private MapValueStrategy() {}
private static final MapValueStrategy INSTANCE = new MapValueStrategy();
public static MapValueStrategy getInstance() {
//noinspection unchecked
return INSTANCE;
}
@Override
public Map compose(Map knownValue, Map calculated, Void composition) {
knownValue.putAll(calculated);
return knownValue;
}
@Override
public Map createValue(Class
© 2015 - 2025 Weber Informatics LLC | Privacy Policy