Type Discrimination
l
The type of an Object can be
discriminated using the
instanceof
operator:
Object ob = L.first();
if( ob instanceof Long ) ...
if( ob instanceof OpenList ) ...