lundi 28 décembre 2015

Why Java's String is not assignable from Comparable interface

Javadoc says that String implements Comparable<String>

But, the following code returns false:

String.class.isAssignableFrom(Comparable.class)

How to check if some class implements given interface (in Spring environment)?





Aucun commentaire:

Enregistrer un commentaire