Javadoc says that String implements Comparable<String>
String
Comparable<String>
But, the following code returns false:
false
String.class.isAssignableFrom(Comparable.class)
How to check if some class implements given interface (in Spring environment)?
Aucun commentaire:
Enregistrer un commentaire