class InterfaceMethodImpl implements InterfaceMethod {

    private final Method m;
	
    /**
     * Wraps the specified method.
     * 
     * @param wrapped  the inner method
     */
	public InterfaceMethodImpl(Method wrapped) {
		this.m = requireNonNull(wrapped);
	}

    @Override
    public InterfaceMethod setParent(Interface parent) {
        m.setParent(parent);
        return this;
    }

    @Override
    public Optional<Interface> getParent() {
        return m.getParent().map(Interface.class::cast);
    }

    @Override
	public String getName() {
		return m.getName();
	}

    @Override
	public Type getType() {
		return m.getType();
	}

    @Override
	public List<Field> getFields() {
		return m.getFields();
	}

    @Override
	public List<String> getCode() {
		return m.getCode();
	}

    @Override
	public Set<Modifier> getModifiers() {
		return m.getModifiers();
	}

    @Override
	public Optional<Javadoc> getJavadoc() {
		return m.getJavadoc();
	}

    @Override
	public List<AnnotationUsage> getAnnotations() {
		return m.getAnnotations();
	}

    @Override
    public List<Import> getImports() {
        return m.getImports();
    }

    @Override
    public InterfaceMethod setName(String name) {
        m.setName(name);
        return this;
    }

    @Override
    public InterfaceMethod set(Type type) {
        m.set(type);
        return this;
    }

    @Override
    public List<Generic> getGenerics() {
        return m.getGenerics();
    }

    @Override
    public InterfaceMethod set(Javadoc doc) {
        m.set(doc);
        doc.setParent(this);
        return this;
    }

    @Override
    public Set<Type> getExceptions() {
        return m.getExceptions();
    }

    @Override
	public InterfaceMethodImpl copy() {
		return new InterfaceMethodImpl(m.copy());
	}

    @Override
    public int hashCode() {<FILL_FUNCTION_BODY>}

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final InterfaceMethodImpl other = (InterfaceMethodImpl) obj;
        return Objects.equals(this.m, other.m);
    }

}

        int hash = 7;
        hash = 11 * hash + Objects.hashCode(this.m);
        return hash;
    
<no_super_class>