Java Utililty Methods SortedMap Type Check

List of utility methods to do SortedMap Type Check

Description

The list of methods to do SortedMap Type Check are organized into topic(s).

Method

booleanisSortedMap(Object object)
Returns true if the given Object is not null and a SortedMap derived type
return isAssignableFromInstance(SortedMap.class, object);
booleanisSortedMapType(Class type)
Returns true if the given type is assignable to the SortedMap interface
boolean retval = false;
if (type != null) {
    retval = SortedMap.class.isAssignableFrom(type);
return retval;