com.maxifier.mxcache.impl.caches.def.LongCharacterTroveStorage Maven / Gradle / Ivy
/*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package com.maxifier.mxcache.impl.caches.def;
import com.maxifier.mxcache.storage.*;
/**
* THIS IS GENERATED CLASS! DON'T EDIT IT MANUALLY!
*
* GENERATED FROM P2PTroveStorage.template
*
* @author Andrey Yakoushin ([email protected])
* @author Alexander Kochurov ([email protected])
*/
public class LongCharacterTroveStorage extends gnu.trove.map.hash.TLongShortHashMap implements LongCharacterStorage {
@Override
public boolean isCalculated(long o) {
return super.contains(o);
}
@Override
public char load(long o) {
return (char)super.get(o);
}
@Override
public void save(long o, char t) {
put(o, (short)t);
}
}