当前位置: 首页 > news >正文

专业网站建设价格分析广州建设网站是什么

专业网站建设价格分析,广州建设网站是什么,网站建设费是否应当入无形资产,自定义wordpress首页标题一、getInterfaces 返回直接实现的接口#xff08; 由于编译擦除#xff0c;没有显示泛型参数#xff09; Class?[] getInterfaces() 确定此对象所表示的类或接口实现的接口。 确定此对象所表示的类或接口实现的接口。 如果此对象表示一个类 由于编译擦除没有显示泛型参数 Class?[] getInterfaces()                 确定此对象所表示的类或接口实现的接口。 确定此对象所表示的类或接口实现的接口。 如果此对象表示一个类则返回值是一个数组它包含了表示该类所实现的所有接口的对象。数组中接口对象顺序与此对象所表示的类的声明的 implements 子句中接口名顺序一致。例如给定声明 class Shimmer implements FloorWax, DessertTopping { ... } 设 s 的值为 Shimmer 的一个实例表达式 s.getClass().getInterfaces()[0]; 的值为表示 FloorWax 接口的 Class 对象 s.getClass().getInterfaces()[1]; 的值为表示 DessertTopping 接口的 Class 对象。 如果此对象表示一个接口则该数组包含表示该接口扩展的所有接口的对象。数组中接口对象顺序与此对象所表示的接口的声明的 extends 子句中接口名顺序一致。 如果此对象表示一个不实现任何接口的类或接口则此方法返回一个长度为 0 的数组。 如果此对象表示一个基本类型或 void则此方法返回一个长度为 0 的数组。  返回该类所实现的接口的一个数组。二、getGenericInterface  返回直接实现的接口包含泛型参数 Type[] getGenericInterfaces()                 返回表示某些接口的 Type这些接口由此对象所表示的类或接口直接实现。 返回表示某些接口的 Type这些接口由此对象所表示的类或接口直接实现。 如果超接口是参数化类型则为它返回的 Type 对象必须准确反映源代码中所使用的实际类型参数。如果以前未曾创建表示每个超接口的参数化类型则创建这个类型。有关参数化类型创建过程的语义请参阅 ParameterizedType 声明。 如果此对象表示一个类则返回一个包含这样一些对象的数组这些对象表示该类实现的所有接口。数组中接口对象顺序与此对象所表示的类的声明的 implements 子句中接口名顺序一致。对于数组类接口 Cloneable 和 Serializable 以该顺序返回。 如果此对象表示一个接口则该数组包含表示该接口直接扩展的所有接口的对象。数组中接口对象顺序与此对象所表示的接口的声明的 extends 子句中接口名顺序一致。 如果此对象表示一个不实现任何接口的类或接口则此方法返回一个长度为 0 的数组。 如果此对象表示一个基本类型或 void则此方法返回一个长度为 0 的数组。 返回此类所实现的接口的一个数组抛出GenericSignatureFormatError - 如果常规类签名不符合 Java Virtual Machine Specification, 3rd edition 规定的格式TypeNotPresentException - 如果任意常规超接口引用不存在的类型声明MalformedParameterizedTypeException - 如果任意常规超接口引用的参数化类型由于某种原因无法实例化代码测试 package cn.test;import java.lang.reflect.Type;public class Test {public static void printInterface(Class?[] cs) {System.out.print(cs.length\t);for(Class? c :cs){System.out.print(c.getCanonicalName()\t);}System.out.println();}public static void printInterface(Type[] cs) {System.out.print(cs.length\t);for(Type c :cs){System.out.print(c.toString()\t);}System.out.println();}public static void main(String[] args) {//IStudentSystem.out.print(IStudent.class.getInterfaces()\t);printInterface(IStudent.class.getInterfaces()); System.out.print(IStudent.class.getGenericInterfaces()\t);printInterface(IStudent.class.getGenericInterfaces());//TestSystem.out.print(Test.class.getInterfaces()\t );printInterface(Test.class.getInterfaces());System.out.print(Test.class.getGenericInterfaces()\t);printInterface(Test.class.getGenericInterfaces());//ObjectSystem.out.print(Object.class.getGenericInterfaces()\t);printInterface(Object.class.getGenericInterfaces());System.out.print(Object.class.getInterfaces()\t );printInterface(Object.class.getInterfaces());//voidSystem.out.print(void.class.getInterfaces()\t);printInterface(void.class.getInterfaces());System.out.print(void.class.getGenericInterfaces()\t);printInterface(void.class.getGenericInterfaces());//int[]System.out.print(int[].class.getInterfaces()\t);printInterface(int[].class.getInterfaces());System.out.print(int[].class.getGenericInterfaces()\t);printInterface(int[].class.getGenericInterfaces());}}interface IPersonT {} interface IWalkT {} interface IStudent extends IPersonTest,IWalkObject,Cloneable{} 运行结果 IStudent.class.getInterfaces() 2 cn.test.IPerson cn.test.IWalk IStudent.class.getGenericInterfaces() 3 cn.test.IPersoncn.test.Test cn.test.IWalkjava.lang.Object interface java.lang.Cloneable Test.class.getInterfaces() 0 Test.class.getGenericInterfaces() 0 Object.class.getGenericInterfaces() 0 Object.class.getInterfaces() 0 void.class.getInterfaces() 0 void.class.getGenericInterfaces() 0 int[].class.getInterfaces() 2 java.lang.Cloneable java.io.Serializable int[].class.getGenericInterfaces() 2 interface java.lang.Cloneable interface java.io.Serializable
http://www.zqtcl.cn/news/87384/

相关文章:

  • 网站支付平台是怎么做的网站建设公司名片
  • 兰州微信信息平台网站建设湖南网站建设欧黎明
  • 网站头部 标签ui设计培训机构学费
  • 开发网站和app制作图片的软件app哪个好用
  • 怎么建设一个购物网站设计培训网页班
  • 网站 谁建设谁负责开发公众号平台
  • 做企业宣传片的网站网站建设的维护
  • 网站备案需要的资料山东省住房和城乡建设厅二级建造师
  • 做网站老板嫌弃太丑谁的锅交互设计考研院校
  • 网站网站建设公司上海网站的系统建设方式有哪些方面
  • 网站建设前期策划方案帮人做非法网站吗
  • 网站建设上如何提高市场竞争力自己建网站做代理商
  • 建设网站哪家便宜iis 网站属性
  • 免费建个人手机网站云服务器网站搭建
  • 山东省建设执业资格注册管理中心网站flash代码做网站教程
  • 电子商务网站建设步骤有什么江阴网站建设工作室
  • WordPress不关站备案插件广西建设网人员查询网
  • 龙华网站建设php做网站导购模板
  • 网站建设与服务费是什么服务黑龙江建设厅网站首页
  • 网站页面权重php用什么工具做网站
  • 应用asp做网站wordpress html 代码编辑器
  • 梅州英文网站建设网站域名设计找谁
  • 邢台网站建设地方山西本土网站建设
  • 个人网站建设价格表江苏交通建设监理协会网站
  • 成都网站制作定制站长seo查询工具
  • 同一虚拟主机 2个网站盐城网站建设厂商
  • 网站模板上传到那个目录海外贸易平台
  • 吉安市建设局施工管理站网站山西建设局网站首页
  • 招聘网站做两份简历wordpress行业主题
  • 网站制作需求文档无线网站应建设在什么地方