com.maxifier.mxcache.impl.caches.def.ObjectLongTroveStorage 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.def;
import gnu.trove.map.custom_hash.TObjectLongCustomHashMap;
import gnu.trove.strategy.HashingStrategy;
import com.maxifier.mxcache.storage.*;
/**
* THIS IS GENERATED CLASS! DON'T EDIT IT MANUALLY!
*
* GENERATED FROM O2PTroveStorage.template
*
* @author Andrey Yakoushin ([email protected])
* @author Alexander Kochurov ([email protected])
*/
public class ObjectLongTroveStorage extends TObjectLongCustomHashMap implements ObjectLongStorage {
public ObjectLongTroveStorage() {
//noinspection unchecked
super(DEFAULT_HASHING_STRATEGY);
}
public ObjectLongTroveStorage(HashingStrategy strategy) {
super(strategy);
}
@Override
public boolean isCalculated(E o) {
return super.contains(o);
}
@Override
public long load(E o) {
return super.get(o);
}
@Override
public void save(E o, long t) {
put(o, t);
}
}