码迷,mamicode.com
首页 >  
搜索关键字:default interface method    ( 44813个结果
When to use Class.isInstance() & when to use instanceof operator?
I think the official documentation gives you the answer to this one (albeit in a fairly nonspecific way):This method is the dynamic equivalent of the ...
分类:其他好文   时间:2014-05-14 03:31:06    阅读次数:223
smack 监听不同packet机制
之前做即时通讯,扒了smack源码来参考。说下其中解包后进行通知的机制。Filter类:accept(Packet packet)函数,传入packet在此函数中进行对比判断,返回true 则通过此filter认证。实现PacketFilter接口即可。public interface Packet...
分类:其他好文   时间:2014-05-14 03:22:52    阅读次数:364
mybatis(单表增删改查)
(mybatis注意各个文件的映射问题)用到的t_user数据库脚本:-- 导出 mybatis 的数据库结构CREATE DATABASE IF NOT EXISTS `mybatis` /*!40100 DEFAULT CHARACTER SET utf8 */;USE `mybatis`;--...
分类:其他好文   时间:2014-05-14 03:19:55    阅读次数:396
maven错误解决一:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile)
解决方法是将 jre的目录在 window->Preferences 里修改java installed里的jre目录改为jdk目录即可。原因是在jre目录下不存在tools.jar.
分类:其他好文   时间:2014-05-12 22:08:31    阅读次数:895
spring程序示例(SpringDemo项目)
Action接口:public interface Action {public String execute(String str);}Action的两个实现public class UpperAction implements Action {private String message;pub...
分类:编程语言   时间:2014-05-12 21:29:36    阅读次数:389
iOS 人机交互指导方针(iOS Human Interface Guidelines)
iOS 人机交互指导方针(iOS Human Interface Guidelines)...
分类:移动开发   时间:2014-05-11 22:17:38    阅读次数:479
emacs使用本地emacs server模式打开远程文件
使用emacs的用户都知道,一般要打开远程机器上的文件要使用TrampMode模式,调用方式如下: C-x C-f /remotehost:filename RET (or /method:user@remotehost:filename) 但,这样打开有点麻烦,你必要输入用户名和机器ip等  emacs提供了一种client/server的模式,当我们在本地打开一个emacs,可以将它作...
分类:其他好文   时间:2014-05-11 21:55:05    阅读次数:366
并发 错误 java.lang.IllegalMonitorStateException: current thread not owner 分析
public class ThreadTest implements Callable { public String call() throws Exception { // TODO Auto-generated method stub wait(10000); return "hello"; } }调用代码: public static void main(Stri...
分类:编程语言   时间:2014-05-11 21:27:24    阅读次数:533
DButils工具类可以用来获取数据库连接向数据库插入更新删除对象
package com.ctl.util; import java.io.IOException; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.sql.Connection; impo...
分类:数据库   时间:2014-05-11 21:04:49    阅读次数:501
Reading vmstat in linux – Part 1
Linuxcomeswithmanytoolstoenableadministratorstoevaluatetheperformanceofasystem.Oneoftheseveryusefultoolsisvmstat.VmstatisavailableonmostunixdistributionsandisincludedbydefaultonmanymodernLinuxdistributions.AswithmostLinuxcommands,builtinhelpisavailableviath..
分类:系统相关   时间:2014-05-11 19:39:38    阅读次数:680
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!