Code example for HashSet

Methods: add, contains

0
	private TypeDescriptor resolve(HashSet<String> circularCheck) {
		TypeDescriptor ref = module.getTypeDescriptor(typeref, 0, false);
		if (ref == null) {
			throw new IllegalArgumentException("Unknown type: " + typeref);
		} 
		if (circularCheck.contains(name)) {
			throw new IllegalArgumentException("Circular definition of " + name);
		} 
		circularCheck.add(name);
		if (ref instanceof Typedef) {
			return ((Typedef) ref).resolve(circularCheck);
		} 
		return ref;
	} 
 
	@Override 
	public Class getNativeClass() {
		return resolve().getNativeClass(); 
	} 
 
	@Override