当前位置: 首页>>代码示例>>Java>>正文


Java Entry类代码示例

本文整理汇总了Java中com.badlogic.gdx.utils.IdentityMap.Entry的典型用法代码示例。如果您正苦于以下问题:Java Entry类的具体用法?Java Entry怎么用?Java Entry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Entry类属于com.badlogic.gdx.utils.IdentityMap包,在下文中一共展示了Entry类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initiateRegularComponents

import com.badlogic.gdx.utils.IdentityMap.Entry; //导入依赖的package包/类
/** @param context will contain instances of scanned components. This method will clear scanners, as they are no
 *            longer expected to be needed.
 * @param contextDestroyer used to register destruction callbacks. */
private void initiateRegularComponents(final Context context, final ContextDestroyer contextDestroyer) {
    final Array<Class<?>> componentTypes = GdxArrays.newArray();
    for (final Entry<Class<?>, ClassScanner> scannerData : scanners) {
        componentTypes.addAll(scannerData.value.findClassesAnnotatedWith(scannerData.key, scannedAnnotations));
    }
    final Array<Object> components = createComponents(componentTypes, context);
    // Manually added components are already mapped. Now they will be initiated:
    components.addAll(manuallyAddedComponents);
    manuallyAddedComponents.clear();
    initiateComponents(components, context, contextDestroyer);
    // Scanners no longer needed, all components found:
    if (clearProcessors) {
        scanners.clear();
    }
}
 
开发者ID:gdx-libs,项目名称:gdx-autumn,代码行数:19,代码来源:ContextInitializer.java

示例2: initiateMetaComponents

import com.badlogic.gdx.utils.IdentityMap.Entry; //导入依赖的package包/类
/** @param context will contain instances of scanned annotation procesors.
 * @param contextDestroyer used to register destruction callbacks. */
private void initiateMetaComponents(final Context context, final ContextDestroyer contextDestroyer) {
    final Array<Class<?>> metaComponentTypes = GdxArrays.newArray();
    for (final Entry<Class<?>, ClassScanner> scannerData : scanners) {
        metaComponentTypes
                .addAll(scannerData.value.findClassesAnnotatedWith(scannerData.key, scannedMetaAnnotations));
    }
    final Array<Object> metaComponents = createComponents(metaComponentTypes, context);
    metaComponents.addAll(manuallyAddedProcessors);
    manuallyAddedProcessors.clear();
    initiateComponents(metaComponents, context, contextDestroyer);
}
 
开发者ID:gdx-libs,项目名称:gdx-autumn,代码行数:14,代码来源:ContextInitializer.java

示例3: selectFirstEnabledTab

import com.badlogic.gdx.utils.IdentityMap.Entry; //导入依赖的package包/类
private boolean selectFirstEnabledTab () {
	for (Entry<Tab, TabButtonTable> entry : tabsButtonMap) {
		if (entry.value.button.isDisabled() == false) {
			switchTab(entry.key);
			return true;
		}
	}

	return false;
}
 
开发者ID:kotcrab,项目名称:vis-editor,代码行数:11,代码来源:TabbedPane.java


注:本文中的com.badlogic.gdx.utils.IdentityMap.Entry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。