class VerifierFactory {
/**
* Returns all Verifier instances created so far.
* This is useful when a Verifier recursively lets
* the VerifierFactory create other Verifier instances
* and if you want to verify the transitive hull of
* referenced class files.
*/
public static Verifier[] getVerifiers() {
Verifier[] vs = new Verifier[hashMap.values().size()];
return hashMap.values().toArray(vs); // Because vs is big enough, vs is used to store the values into and returned!
}
}