All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.truecommons.shed.Visitor Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
/*
 * Copyright (C) 2005-2015 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package net.java.truecommons.shed;

/**
 * A generic visitor for items of any type.
 *
 * @param   The type of items to {@link #visit}.
 * @param   The type of exceptions to be thrown by {@link #visit}.
 * @since  TrueCommons 2.2
 * @author Christian Schlichtherle
 */
public interface Visitor {

    /**
     * Visits the given item.
     *
     * @param  item the item to visit.
     * @throws Exception at the discretion of the implementation.
     */
    void visit(I item) throws X;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy