Skip to content

Instantly share code, notes, and snippets.

@nwillc
Last active September 20, 2016 22:24
Show Gist options
  • Save nwillc/c0ad9950e3490a4975d2834fadea2708 to your computer and use it in GitHub Desktop.
Save nwillc/c0ad9950e3490a4975d2834fadea2708 to your computer and use it in GitHub Desktop.
@FunctionalInterface
public interface Extractor<T> {
/**
* Extract type T from the current position in the ResultSet.
*
* @param rs the ResultSet to extract from
* @return the type T extracted
* @throws SQLException should the extraction fail
*/
T extract(ResultSet rs) throws SQLException;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment