Skip to content

Instantly share code, notes, and snippets.

@nwillc
Last active September 20, 2016 22:23
Show Gist options
  • Save nwillc/fc58dd5f7be1319538293423c13ee461 to your computer and use it in GitHub Desktop.
Save nwillc/fc58dd5f7be1319538293423c13ee461 to your computer and use it in GitHub Desktop.
public static <T, B> void copy(B bean,
BiConsumer<B, T> setter,
ResultSet rs,
BiFunction<ResultSet, Integer, T> getter,
Integer index) {
setter.accept(bean, getter.apply(rs, index));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment