易截截图软件、单文件、免安装、纯绿色、仅160KB

12.18 java中的view,ibatis dao

Java内部类当初的设计目的应该是实现多重继承,后来发现内部类还带来了其他好处,如可以使用内部类包装一些函数,实现函数级别的权限控制等。
     Java中,LIst.subList()等方法产生的是一个view,即不是传值,而仅是引用。似乎在java中除了primitive类,其他类都需new才能产生新对象。
iBatis DAO框架图


相关文档:

JAVA排序算法测试类

import java.util.Random;
 
/**
 * 排序测试类
 *
 * 排序算法的分类如下:
 * 1.插入排序(直接插入排序、折半插入排序、希尔排序);
 * 2.交换排序(冒泡泡排序、快速排序);
 * 3.选择排序(直接选择排序、堆排序);
 * 4.归并排序;
 * 5.基数排序。
&nbs ......

Java调用 xx.so库

package com.xxx.yyy;
public class kkkEncode
{
    public native static boolean encode(double loIn, double laIn, double[] point);    //声明一个同库一样的方法   
    public native static boolean decode(double loIn, double laIn, double[] p ......

年底收藏系列 Java安全工具,生成MD5,Base64,UUID


/*
* EncryptUtils.java
* Copyright (C) 2007-3-19 <JustinLei@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ......

年底收藏系列 Java Web工具SessionTick

package org.lambdasoft.web.support;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import org.lambdasoft.web.Enviroment;
public class SessionSupport {
private SessionS ......

年底收藏系列 Java Web工具CookieSupport

/*
* CookieSupport.java
* Copyright (C) 2007-3-19 <JustinLei@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号