本文整理汇总了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();
}
}
示例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);
}
示例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;
}