Java 类com.badlogic.gdx.utils.ObjectSet.ObjectSetIterator 实例源码

项目:libgdx-inGameConsole    文件:CommandCompleter.java   
public void set (CommandExecutor ce, String s) {
    reset();
    setString = s.toLowerCase();
    Array<Method> methods = getAllMethods(ce);
    for (Method m : methods) {
        String name = m.getName();
        if (name.toLowerCase().startsWith(setString) && ConsoleUtils.canDisplayCommand(ce.console, m)) {
            possibleCommands.add(name);
        }
    }
    iterator = new ObjectSetIterator<>(possibleCommands);
}
项目:gdx-autumn-mvc    文件:AssetService.java   
private void injectRequestedAssets() {
    for (final ObjectSetIterator<AssetInjection> iterator = assetInjections.iterator(); iterator.hasNext();) {
        final AssetInjection assetInjection = iterator.next();
        if (assetInjection.inject(this)) {
            assetInjection.removeScheduledAssets(scheduledAssets);
            iterator.remove();
        }
    }
}
项目:gdx-lml    文件:AssetService.java   
private void injectRequestedAssets() {
    for (final ObjectSetIterator<AssetInjection> iterator = assetInjections.iterator(); iterator.hasNext();) {
        final AssetInjection assetInjection = iterator.next();
        if (assetInjection.inject(this)) {
            assetInjection.removeScheduledAssets(scheduledAssets);
            iterator.remove();
        }
    }
}