码迷,mamicode.com
首页 >  
搜索关键字:synchronized method    ( 16544个结果
jdk7 中Collections.sort 异常
Collections.sort 异常 java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.util.TimSort.mergeHi(TimSort.java:868) at java.util.TimSort.mergeAt(Ti...
分类:其他好文   时间:2014-06-25 19:47:27    阅读次数:250
Programming In Scala Reading Note 1
Chapter1 and Chapter2方法定义:def methodName(param1: ParamType, param2: ParamType2, [maybe more]): ReturnType = { // method body}函数式编程中一个约定俗成的说法就是,方法会返回一....
分类:其他好文   时间:2014-06-25 19:15:35    阅读次数:205
C#设计模式(0):C#的23种设计模式概括
创建型: 1. 单件模式(SingletonPattern) 2. 抽象工厂(AbstractFactory) 3. 建造者模式(Builder) 4. 工厂方法模式(Factory Method) 5. 原型模式(Prototype)结构型: 6. 适配器模式(AdapterPattern)...
分类:其他好文   时间:2014-06-25 18:16:08    阅读次数:148
Some useful methods about linkedList.
/** * Method 1: Delete the input element x  * and meanwhile keep the length of array after deleted n * @param a  the array * @param n  the length of array after deleted. * @param x  the element t...
分类:其他好文   时间:2014-06-25 08:27:27    阅读次数:171
No Memory Alignment with GCC
attribute method: #include struct packed { char a; int b; } __attribute__((packed)); struct not_packed { char a; int b; }; int main(void) { printf("Packed: %zu\n", sizeof(...
分类:其他好文   时间:2014-06-25 07:29:49    阅读次数:155
9 abstract 和 Virtual 之间的区别
(1) abstract方法没有具体的实现,同时必须被覆写 (2) 虚(Virtual)方法可以没有具体的实现,也不一定必须覆写(虚方法定义时,可以没有具体的实现代码,但是必须创建方法体:即必须有方法的左右花括号)。 (3) 抽象方法不可以使用base.method()方式调用,但是虚方法是可以的 //定义一个抽象方法 using System; using System.Colle...
分类:其他好文   时间:2014-06-24 22:21:22    阅读次数:331
java 反射和暴力反射 两个DEMO
该类为反射函数 获取和暴力获取ReflectPoin类中的属性 package com.tuozou.test; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public class ReflectTes...
分类:编程语言   时间:2014-06-24 22:02:03    阅读次数:252
How Tomcat workd 之第十章 Installing the Authentictor Value 安装校验值
login-config元素在部署描述符中仅仅出现一次,它包含了auth-method元素,指定了Authentiction方法。就这是说context仅仅有LoginConfig的一个实例对象并部署一个校验类的实现。 AuthentictorBase类的哪个子类用作context的校验值取决于部署描述符中auth-method元素的值。auth-method值有一下几种: B...
分类:其他好文   时间:2014-06-24 20:26:39    阅读次数:248
【Java】【Flume】Flume-NG启动过程源码分析(三)
本篇分析加载配置文件后各个组件是如何运行的?   加载完配置文件订阅者Application类会收到订阅信息执行: @Subscribe public synchronized void handleConfigurationEvent(MaterializedConfiguration conf) { stopAllComponents(); startAll...
分类:编程语言   时间:2014-06-24 17:24:59    阅读次数:445
java反射调用方法
1:Class类中的方法 public Method getDeclaredMethod(String name, Class... parameterTypes) throws NoSuchMethodException, ...
分类:编程语言   时间:2014-06-24 15:37:45    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!