aboutsummaryrefslogtreecommitdiffstats
/*
 * Copyright (C) 2010-2014 Thialfihar <thi@thialfihar.org>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.sufficientlysecure.keychain.util;

import java.util.ArrayList;
import java.util.Iterator;

public class IterableIterator<T> implements Iterable<T> {
    private Iterator<T> mIter;

    public IterableIterator(Iterator<T> iter, boolean failsafe) {
        mIter = iter;
        if (failsafe && mIter == null) {
            // is there a better way?
            mIter = new ArrayList<T>().iterator();
        }
    }
    public IterableIterator(Iterator<T> iter) {
        this(iter, false);
    }

    public Iterator<T> iterator() {
        return mIter;
    }
}
Commit message (Collapse)AuthorAgeFilesLines
...
* [Keyboard] Fix error_log complaint about handwired/onekey layout macro (#9263)Ryan2020-06-0710-50/+44
|
* [Docs] Japanese translation of docs/feature_ps2_mouse.md (#9030)umi2020-06-081-0/+293
| | | | | | | | | | | * add feature_ps2_mouse.md translation * update based on comment * update based on comment * update based on comment * update based on comment
* [Docs] Japanese translation of docs/feature_terminal.md (#9033)umi2020-06-081-0/+112
| | | | | | | * add feature_terminal.md translation * add header for git * update based on comment
* [Docs] Update udev rules to use TAG+="uaccess". (#8750)Pete Johanson2020-06-071-15/+12
|
* [Docs] Japanese translation of docs/feature_swap_hands.md (#9032)umi2020-06-071-0/+36
| | | | | | | * add feature_swap_hands.md translation * update based on comment * back to original translation
date keyboards/meishi2/keymaps/led_status/keymap.c * Changes to abishalom Tada68 keymap (#9278)Abi Shalom2020-06-053-41/+15 | | | | | | * Changes to abishalom Tada68 keymap * Update keyboards/tada68/keymaps/abishalom/rules.mk * [Keyboard] keyboards/anavi: Add ANAVI Macro Pad 8 (#9164)Leon Anavi2020-06-059-0/+507 | | | | | | | | | | | | ANAVI Macro Pad 8 is an open source mini mechanical keyboard with 8 keys, backlit, addressable RGB WS2812B LED strip on the back and mini OLED display. Powered by ATmega 32U4 microcontroller and with microUSB connector. Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> Co-authored-by: Joel Challis <git@zvecr.com> Signed-off-by: Leon Anavi <leon@anavi.org> * [Keyboard] Add ortho5by12 keyboard (#9141)itsnoteasy2020-06-047-0/+587 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add files via upload * Update keyboards/ortho5by12/rules.mk * Add files via upload * Add files via upload * Update keyboards/ortho5by12/ortho5by12.h * Update keyboards/ortho5by12/ortho5by12.h * Add files via upload * Add files via upload * Update keyboards/ortho5by12/readme.md * Update keyboards/ortho5by12/readme.md * Update keyboards/ortho5by12/readme.md * Update keyboards/ortho5by12/readme.md * Update keyboards/ortho5by12/readme.md * Update keyboards/ortho5by12/readme.md * Update keyboards/ortho5by12/info.json * Update keyboards/ortho5by12/ortho5by12.h * Apply suggestions from code review * Update rules.mk * Update config.h * Update config.h * Update config.h * Delete rules.mk * Delete config.h * Delete info.json * Delete ortho5by12.c * Delete ortho5by12.h * Delete readme.md * Delete keymap.c * Fix mechlovin/pisces Configurator config (#9290)Joel Challis2020-06-041-2/+3 | | | | | | * Fix mechlovin/pisces Configurator config * Update keyboards/mechlovin/pisces/info.json * [Keyboard] add hineybush/h10 pcb (#9036)Josh Hinnebusch2020-06-0411-0/+454 | | | | | | | | | | | | | | | | | | | | | | | | * initial h10 commit * update h10 * update files, add via keymap * edit h10 readme * update per PR requests * add copyright (i think this is what fauxpark wants) * fix comment * remove config.h files * update per PR requests * Update keyboards/hineybush/h10/info.json * Update keyboards/hineybush/h10/info.json * Add Via support for Percent Canoe (#9276)Frothy2020-06-046-6/+59 | | | | | | | | | | | | | | | | | | | | | * Add Via support for Percent Canoe * Removed unnecessary flags from rules.mk * Changes as per PR * Added 2 additional empty layers (for a total of 4) * Set a unique vendor id for all percent studio boards * Set a unique product id for the canoe * Fixed formatting, removed trailing comma * Fixed PS/PT typo for vendor id * Removed unnecessary variables * Removed unnecessary slashes * Fixed missing layer name * Fix 'does not have a readme.md' warnings (#9294)Joel Challis2020-06-042-0/+20 | * Fix handwired/novem Configurator config (#9291)Joel Challis2020-06-041-2/+6 | * Fix wt60_d and rama_works_u80_a Configurator config (#9292)Joel Challis2020-06-042-2/+2 | * [keyboard] Add two new The Mad Noodle Keypads (#8934)Jesse Leventhal2020-06-0414-0/+477 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding support for two new The Mad Noodle Keypads (Revised..Again) * Adding support for two new The Mad Noodle Keypads (Revised..Again) * Update keyboards/themadnoodle/ncc1701kbv2/ncc1701kbv2.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/noodlepad.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/ncc1701kbv2/rules.mk Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/rules.mk Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Requested Changes to all files * Revert "Requested Changes to all files" This reverts commit 7f6c708da8edf779664ccc80b8932cad3ad37bf3. * Update keyboards/themadnoodle/ncc1701kbv2/info.json Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/ncc1701kbv2/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/ncc1701kbv2/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/ncc1701kbv2/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/themadnoodle/ncc1701kbv2/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/themadnoodle/ncc1701kb/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/themadnoodle/ncc1701kbv2/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * rework ncc1701kb v1 to vendor/keyboard/revision structure * rework ncc1701kb v2 to vendor/keyboard/revision structure * Update keyboards/themadnoodle/ncc1701kb/v2/rules.mk Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/themadnoodle/noodlepad/config.h Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/themadnoodle/noodlepad/info.json Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/themadnoodle/noodlepad/noodlepad.h Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/themadnoodle/noodlepad/rules.mk Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * checkedout folder and removed v1 as requested * Update keyboards/themadnoodle/noodlepad/config.h Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/themadnoodle/ncc1701kb/v2/config.h Co-authored-by: Joel Challis <git@zvecr.com> * Updated Noodle Pad Readme Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> Co-authored-by: Joel Challis <git@zvecr.com> * [Keyboard] New Keyboard: Duck TC-V3 (#8265)MechMerlin2020-06-0215-1/+797 | | | | | | | | | Co-Authored-By: Ryan <fauxpark@gmail.com> Co-Authored-By: James Young <18669334+noroadsleft@users.noreply.github.com> Co-Authored-By: Drashna Jaelre <drashna@live.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * VIA Support: Waldo 60 (#9151)MechMerlin2020-06-034-1/+57 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pick a sane VID * add the VIA Keymap * update copyright notice * Update keyboards/waldo/keymaps/via/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/waldo/keymaps/via/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/waldo/keymaps/via/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/waldo/keymaps/via/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/waldo/keymaps/via/readme.md Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Move encoder_read to common location (#9003)Joel Challis2020-06-033-18/+11 |\ | * Move encoder_read to common locationzvecr2020-05-023-18/+11 | | * | [Keyboard] Add zvecr/zv48 (#9227)Joel Challis2020-06-0315-0/+3435 | | | | | | | | | | | | | | * Add zv48 keyboard * tidy up rules * correct product name * | Move dip switch init to back of the init process (#9233)Drashna Jaelre2020-06-032-3/+7 | | * | Update canoe:dhertz to use new post-init functions (#9257)Dan Hertz2020-06-032-1/+3 | | | | | | | | | | * Update to use new post-init functions * Update readme so I don't forget reset key again * | Update keymap.c (#9265)Eduardo Lourenço Pinto Neto2020-06-031-5/+4 | | | | | | Add Insert on Fn+Del and fix TG to TO for layer switching * | jotix ortho_4x12 layout (#9209)jotix2020-06-021-16/+16 | | | | | | Co-authored-by: Ryan <fauxpark@gmail.com> * | Void Linux: Switch to cross-arm-none-eabi toolchain (#9228)Ryan2020-06-021-9/+3 | | * | Adelais: Fix indicator LED pinout (#9241)mechlovin2020-06-012-4/+4 | | | | | | | | | | | | * Fix indicator LED pinout Fix indicator LED pinout, active some function * | [Docs] Japanese translation of docs/feature_mouse_keys.md (#8992)umi2020-06-011-0/+127 | | | | | | | | | | | | | | | | | | | | | | | | | | * add feature_mouse_keys.md translation * update based on comment * update based on comment * update based on comment * update based on comment * update based on comment * | Fixing the PRODUCT_ID to match the liminal.json on VIA repo (#9232)goranzarkovic2020-06-011-1/+1 | | * | Infinity CE PCB: Update rules.mk (#9235)mechlovin2020-06-011-1/+1 | | | | | | | | | | * Update rules.mk Actice NKRO function * | Fix layer mask size for RGBLIGHT_LAYER_BLINK (#9260)Joshua Diamond2020-06-011-3/+3 | | * | [Keymap] plattfot - Kyria layout (#9110)Fredrik Salomonsson2020-06-014-0/+644 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Keymap] plattfot - Kyria layout Keymap for programming, writing in both English and Swedish and easy navigate a tiling window manager. See README.md for more info * Fix letter case on the headline for the readme As suggested by fauxpark * Update keyboards/kyria/keymaps/plattfot/keymap.c Clean up double tap As suggested by fauxpark * Update led check for render_status As suggested by fauxpark * Update to use get_highest_layer for encoder_update_user As suggested by fauxpark * Missing an apostrophe in the header of the README.md Last minute change. * Removed explicit initialization for _DEFAULT As suggested by drashna * Use smaller image for the README.md As suggested by noroadsleft * | Fix error_log complaint about Elongate info.json (#9262)Ryan2020-06-011-1/+1 | | * | Prime_E - Increase number of via layers (#9065)Joel Challis2020-06-012-0/+30 | | | | | | | | | | * Prime_E - Increase number of via layers * Fix keymap alignment * | Remove the extra comma in the macro in the community keymap (#9175)KOBAYASHI Daisuke2020-06-021-1/+1 | | * | Added new keyboard boardsource/3x4 (#9247)cole smith2020-06-027-0/+255 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added bordsource 3x4 macro pad * added bordsource 3x4 macro pad * Update keyboards/boardsource/3x4/3x4.h Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/boardsource/3x4/3x4.c Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/boardsource/3x4/config.h Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/boardsource/3x4/config.h Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/boardsource/3x4/config.h Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/boardsource/3x4/config.h Co-authored-by: Nick Brassel <nick@tzarc.org> * added link to readme * Update keyboards/boardsource/3x4/keymaps/default/keymap.c Co-authored-by: Nick Brassel <nick@tzarc.org> * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Nick Brassel <nick@tzarc.org> Co-authored-by: Ryan <fauxpark@gmail.com> * | Mac layout for XD87 (#9251)siano2020-06-013-0/+49 | | | | | | | | | | | | | | | | | | | | | | | | | | * Mac layout for XD87 * Rename to mac_underglow * Removed unused file * Fixed missing KC_RGUI * Cleanup * Updated readme. * | `French (Belgium)` was missing (#9245)Kimat Boven2020-06-011-0/+1 | | * | Option to allow lighting layers when RGB Lighting is off (#9051)Joshua Diamond2020-06-013-6/+24 | | * | BE_J should map to KC_J (#9243)Kimat Boven2020-06-011-1/+1 | | * | Move plaid via keymap to correct location (#9255)Joel Challis2020-06-014-0/+0 | | * | Fix build when using IGNORE_MOD_TAP_INTERRUPT_PER_KEY. (#9258)Nick Brassel2020-06-011-1/+1 | | * | 2020 May 30 Breaking Changes Update (#9215)James Young2020-05-30460-12712/+2625 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Branch point for 2020 May 30 Breaking Change * Migrate `ACTION_LAYER_TOGGLE` to `TG()` (#8954) * Migrate `ACTION_MODS_ONESHOT` to `OSM()` (#8957) * Migrate `ACTION_DEFAULT_LAYER_SET` to `DF()` (#8958) * Migrate `ACTION_LAYER_MODS` to `LM()` (#8959) * Migrate `ACTION_MODS_TAP_KEY` to `MT()` (#8968) * Convert V-USB usbdrv to a submodule (#8321) * Unify Tap Hold functions and documentation (#8348) * Changing board names to prevent confusion (#8412) * Move the Keyboardio Model01 to a keyboardio/ subdir (#8499) * Move spaceman keyboards (#8830) * Migrate miscellaneous `fn_actions` entries (#8977) * Migrate `ACTION_MODS_KEY` to chained mod keycodes (#8979) * Organizing my keyboards (plaid, tartan, ergoinu) (#8537) * Refactor Lily58 to use split_common (#6260) * Refactor zinc to use split_common (#7114) * Add a message if bin/qmk doesn't work (#9000) * Fix conflicting types for 'tfp_printf' (#8269) * Fixed RGB_DISABLE_AFTER_TIMEOUT to be seconds based & small internals cleanup (#6480) * Refactor and updates to TKC1800 code (#8472) * Switch to qmk forks for everything (#9019) * audio refactor: replace deprecated PLAY_NOTE_ARRAY (#8484) * Audio enable corrections (2/3) (#8903) * Split HHKB to ANSI and JP layouts and Add VIA support for each (#8582) * Audio enable corrections (Part 4) (#8974) * Fix typo from PR7114 (#9171) * Augment future branch Changelogs (#8978) * Revert "Branch point for 2020 May 30 Breaking Change" * | Fix crkbd slave matrix print to require debug_matrix (#9217)Manna Harbour2020-05-281-2/+4 | | | | | | | | | | | | | | | | | | * Fix crkbd slave matrix print to require debug_matrix * Remove redundant include Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>