net.java.truecommons.shed.Visitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truecommons-shed Show documentation
Show all versions of truecommons-shed Show documentation
Hosts small but useful tools and utilities that didn't fit anywhere else.
/*
* 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;
}