Hi Christopher,

<R> in Table has an upper bound of Record. This means, the following
two assignments are equivalent (tested in javac and with the Eclipse
compiler):

--------------------------------------------------------
List<Table<?>> tables = schema.getTables();
List<Table<? extends Record>> tables = schema.getTables();
--------------------------------------------------------

Just like

--------------------------------------------------------
Table<?> table = schema.getTable("ABC");
Table<? extends Record> table = schema.getTable("ABC");
--------------------------------------------------------

I'm actually not sure if there is a difference, generally... The
reason why I chose to omit repeating the upper bound of the generic
wildcard is to decrease API verbosity. Especially when using IDE
auto-completion, the bounded wild-card can become very annoying very
quickly

Cheers
Lukas

Reply via email to