码迷,mamicode.com
首页 >  
搜索关键字:hashmap jni    ( 8784个结果
[转]深入Java集合学习系列:HashMap的实现原理
1. HashMap概述:HashMap是基于哈希表的Map接口的非同步实现。此实现提供所有可选的映射操作,并允许使用null值和null键。此类不保证映射的顺序,特别是它不保证该顺序恒久不变。2. HashMap的数据结构:在java编程语言中,最基本的结构就是两种,一个是数组,另外一个是模拟指针...
分类:编程语言   时间:2014-05-09 12:22:37    阅读次数:478
[转]delphi xe6 android屏幕操持常亮
1) setting the Project Options, Uses Permissions, Wake lock = True2) Adding Android.JNI.PowerManager to the uses clause3) call: AcquireWakeLock; // at...
分类:移动开发   时间:2014-05-05 11:29:06    阅读次数:501
Memcached分布式内存对象缓存系统
Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态、数据库驱动网站的速度。Memcached基于一个存储键/值对的hashmap。其守护进程(daemon )是用C写的,但是客户端可以用任何语...
分类:其他好文   时间:2014-05-04 11:03:43    阅读次数:257
JNI学习之Invocation API
JNI Invocation API资料的学习笔记。...
分类:Windows程序   时间:2014-05-04 08:50:17    阅读次数:1964
【LeetCode】Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:其他好文   时间:2014-05-03 21:35:49    阅读次数:310
【Union Find】JAVA implementation
import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Scanner; class UF { private int[] id; private int count; public UF(int N) { count = N; id = n...
分类:编程语言   时间:2014-05-03 21:21:44    阅读次数:336
android JNI调用
android JNI...
分类:移动开发   时间:2014-05-03 16:14:05    阅读次数:250
SparseArray替代hashmap
最近编程时,发现一个针对HashMap的一个提示: 翻译过来就是:用SparseArray来代替会有更好性能。 那我们就来看看源码中SparseArray到底做了哪些事情: 一、构造 从构造方法我们可以看出,它和一般的List一样,可以预先设置容器大小,默认的大小是10: [java] view plaincopy public Sp...
分类:其他好文   时间:2014-05-01 21:57:37    阅读次数:483
入门: 使用JNI 从C++代码中调用Java的静态方法
开发环境:操作系统: (uname -a output)Linux ubuntu 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/LinuxJDK 版本 : (java -ve...
分类:编程语言   时间:2014-05-01 20:46:54    阅读次数:565
Java web Session 监听类。
public class SessionListener implements HttpSessionListener { static Logger log = Logger.getLogger( SessionListener.class.getName()); private static Map map = new HashMap(); ...
分类:编程语言   时间:2014-04-30 22:31:38    阅读次数:397
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!