Java 类gnu.trove.map.hash.TShortObjectHashMap 实例源码

项目:MMServerEngine    文件:EventService.java   
public void init(){
    netEventService = BeanHelper.getServiceBean(NetEventService.class);
    TShortObjectHashMap<Set<Class<?>>> handlerClassMap= ServiceHelper.getEventListenerHandlerClassMap();
    handlerClassMap.forEachEntry(new TShortObjectProcedure<Set<Class<?>>>() {
        @Override
        public boolean execute(short i, Set<Class<?>> classes) {
            Set<EventListenerHandler> handlerSet=new HashSet<EventListenerHandler>();
            for(Class<?> cls : classes){
                handlerSet.add((EventListenerHandler)BeanHelper.getServiceBean(cls));
            }
            handlerMap.put(i,handlerSet);
            return true;
        }
    });
}
项目:dis-timeintervaldataanalyzer    文件:TroveShortIndexedCollection.java   
/**
 * Constructor which specifies the index's key.
 * 
 * @param keyDefinition
 *            the {@code IndexKeyDefinition} to be used
 */
public TroveShortIndexedCollection(final IndexKeyDefinition keyDefinition) {
    super(keyDefinition);

    if (!keyDefinition.isSingleTypedKey(Short.class)) {
        throw new IllegalArgumentException("The key must be a single Short");
    }

    troveMap = new TShortObjectHashMap<Object>();
}
项目:MMServerEngine    文件:ServiceHelper.java   
public static TShortObjectHashMap<Set<Class<?>>> getEventListenerHandlerClassMap(){
    return eventListenerHandlerClassMap;
}
项目:SWG-Station-Chat    文件:ChatApiTcpHandler.java   
public ChatApiTcpHandler() {
    packetTypes = new TShortObjectHashMap<>();
    insertPacketHandlers();
}
项目:pre-cu    文件:AutoDeltaShortObjectMap.java   
public AutoDeltaShortObjectMap(Function<ByteBuffer, V> valueCreator) {
    this.changes = new ArrayList<>(5);
    this.container = new TShortObjectHashMap<>();
    this.baselineCommandCount = 0;
    this.valueCreator = valueCreator;
}
项目:pre-cu    文件:AutoDeltaShortStringMap.java   
public AutoDeltaShortStringMap() {
    this.changes = new ArrayList<>(5);
    this.container = new TShortObjectHashMap<>();
    this.baselineCommandCount = 0;
}