阅读背景:

获得可能的实例/对象类型

来源:互联网 

I have the problem that a given object could be one of several different objects (like files in a directory, that could be sound, image, text, ...) Is there the possibility to find out the type of the object beside from the 'instanceof' operator? Couse that would result in an endless if - then row ...I have the problem that a given object could be




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: