CV
- The type of the CipherVersion
to be generated.Iterator<CV>
, CipherVersionGenerator<CV>
, org.refcodes.generator.Generator<CV>
CipherVersionGeneratorImpl
public abstract class AbstractCipherVersionGenerator<CV extends CipherVersion> extends Object implements CipherVersionGenerator<CV>
Constructor | Description |
---|---|
AbstractCipherVersionGenerator(CipherVersionFactory<CV> aCipherVersionFactory) |
Constructor for the
AbstractCipherVersionGenerator . |
Modifier and Type | Method | Description |
---|---|---|
protected String |
createCipher() |
Hook factory method to be implemented by subclasses.
|
protected String |
createCipherUid() |
Hook factory method to be implemented by subclasses.
|
boolean |
hasNext() |
|
CV |
next() |
Generator method to be implemented by subclasses.
|
void |
remove() |
forEachRemaining
public AbstractCipherVersionGenerator(CipherVersionFactory<CV> aCipherVersionFactory)
AbstractCipherVersionGenerator
. The provided
CipherVersionFactory
is used to create the actual
CipherVersion
instances generated by this
CipherVersionGenerator
.aCipherVersionFactory
- The CipherVersionFactory
used to
create the CipherVersion
instances of the required type.public boolean hasNext()
hasNext
in interface org.refcodes.generator.Generator<CV extends CipherVersion>
hasNext
in interface Iterator<CV extends CipherVersion>
public void remove()
remove
in interface Iterator<CV extends CipherVersion>
public CV next()
next
in interface CipherVersionGenerator<CV extends CipherVersion>
next
in interface org.refcodes.generator.Generator<CV extends CipherVersion>
next
in interface Iterator<CV extends CipherVersion>
CipherVersion
for encryption.protected String createCipherUid()
protected String createCipher()
Copyright © 2018. All rights reserved.