private void validateString ( Class < ? > clazz ) throws SerializerException { if ( null != clazz && ! clazz . isAssignableFrom ( String . class ) ) { throw new SerializerException ( "String serializer is able to work only with data types assignable from java.lang.String" ) ; } }
Validates that provided class is assignable from java . lang . String