com.maxifier.mxcache.impl.caches.def.CharacterBooleanTroveStorage 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 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 CharacterBooleanTroveStorage extends gnu.trove.map.hash.TShortByteHashMap implements CharacterBooleanStorage {
@Override
public boolean isCalculated(char o) {
return super.contains((short)o);
}
@Override
public boolean load(char o) {
return super.get((short)o) != 0;
}
@Override
public void save(char o, boolean t) {
put((short)o, (byte)(t? 1 : 0));
}
}