/** {@inheritDoc} */ public EncryptedKey next() { EncryptedKey tempKey; if (nextKey != null) { tempKey = nextKey; nextKey = null; return tempKey; } tempKey = getNextKey(); if (tempKey != null) { return tempKey; } else { throw new NoSuchElementException("No more EncryptedKey elements are available"); } }
/** {@inheritDoc} */ public EncryptedKey next() { EncryptedKey tempKey; if (nextKey != null) { tempKey = nextKey; nextKey = null; return tempKey; } tempKey = getNextKey(); if (tempKey != null) { return tempKey; } else { throw new NoSuchElementException("No more EncryptedKey elements are available"); } }
/** {@inheritDoc} */ public boolean hasNext() { if (nextKey != null) { return true; } nextKey = getNextKey(); if (nextKey != null) { return true; } return false; }
/** {@inheritDoc} */ public boolean hasNext() { if (nextKey != null) { return true; } nextKey = getNextKey(); if (nextKey != null) { return true; } return false; }