相当于类模板,后期传入类型格式:col<String>c=newcol<>();classcol<E>{//一般<>内是任意的<T,E,V>三个参数Object[]a=newObject[5];publicvoidf(Eob,intn){a[n]=ob;}publicEget(intn){return(E)a[n];}}
分类:
编程语言 时间:
2019-07-11 09:51:56
阅读次数:
125
1、linux切换到pg命令: 2、查看/退出pg 3、一般优化项 参数名 作用 64GB建议值 256GB建议值 shared_buffers 设置PostgreSQL中用于缓存的专用内存量。建议的设置值为机器总内存大小的25%。 16GB 64GB wal_buffers WAL(预写日志)记录 ...
分类:
系统相关 时间:
2019-07-10 18:38:13
阅读次数:
207
1 Bad practice 坏的实践 一些不好的实践,下面列举几个: HE:类定义了equals(),却没有hashCode();或类定义了equals(),却使用Object.hashCode();或类定义了hashCode(),却没有equals();或类定义了hashCode(),却使用Ob ...
分类:
数据库 时间:
2019-07-08 00:33:19
阅读次数:
144
目录结构: // <![CDATA[ function shocon(){ document.getElementById("modol").style.display="block"; } function clocon(){ document.getElementById("modol").st ...
分类:
编程语言 时间:
2019-07-07 20:25:59
阅读次数:
183
ServletContainerInitializer Shared libraries(共享库) / runtimes pluggability(运行时插件能力) 1、Servlet容器启动会扫描,当前应用里面每一个jar包的 ServletContainerInitializer的实现2、提供S ...
分类:
编程语言 时间:
2019-07-07 19:03:12
阅读次数:
156
如同前面建议的, 当内核收到一个中断, 所有的注册的处理者被调用. 一个共享的处理者 必须能够在它需要的处理的中断和其他设备产生的中断之间区分. 使用 shared=1 选项来加载 short 安装了下列处理者来代替缺省的: irqreturn_t short_sh_interrupt(int ir ...
分类:
系统相关 时间:
2019-07-06 13:12:53
阅读次数:
102
//获取手机信息 function GetPhoneInfo(): string; Var TelephonyManager: JTelephonyManager; TelephonyServiceNative: JObject; begin result := ''; TelephonyServi... ...
分类:
移动开发 时间:
2019-07-05 12:55:37
阅读次数:
323
1、ClientHello 中的参数 ClientHello { Random_C 、extension } 在 extension中的扩展中包含 ( supported_version 、 supported_groups、 signatureschemlist、key_shared ) 2、服务 ...
分类:
其他好文 时间:
2019-07-05 00:02:35
阅读次数:
212
需求:分支机构(R1)只有ADSL线路,需要与总部(R3)实现LAN能互访。===========R3-HQ===============cryptokeyringPSKpre-shared-keyaddress0.0.0.00.0.0.0keyciscocryptoipsectransform-setTSesp-3desesp-sha-hmac!cryptoipsecprofileVTIsett
分类:
其他好文 时间:
2019-07-04 17:23:25
阅读次数:
121