- 浏览: 122328 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (165)
- 数据库 (45)
- 架构 (0)
- java web前端+框架 (9)
- java web后端+框架 (56)
- Eclipse插件 (1)
- 解题思路 (2)
- Eclipse (2)
- linux (6)
- jquery (4)
- 正则 (3)
- jsp (1)
- javascript (8)
- oracle (39)
- 生活 (1)
- weblogic (5)
- tomcat (3)
- Jrebel (1)
- powerdesigner (1)
- svn (1)
- log4j (1)
- IDE (1)
- POI (2)
- jvm (2)
- ssh (1)
- http (1)
- notepad++ (2)
- 润乾 (1)
- 设计模式 (0)
- 实用类Utils (2)
- 算法 (1)
- xml (1)
- 实用类 (2)
最新评论
/**
* 键值对
*
* @author vernon.chen
*
*/
public class KeyValuePair2<K, V> {
private static Logger logger = LoggerFactory.getLogger(KeyValuePair2.class);
private K key;
private V value;
public KeyValuePair2() {
super();
}
public KeyValuePair2(K key, V value) {
super();
this.key = key;
this.value = value;
}
public K getKey() {
return key;
}
public void setKey(K key) {
this.key = key;
}
public V getValue() {
return value;
}
public void setValue(V value) {
this.value = value;
}
public static void main(String[] args) {
KeyValuePair2<String, String> kv2 = new KeyValuePair2<String, String>();
kv2.setKey("key");
kv2.setValue("value");
logger.debug(kv2.getKey());
logger.debug(kv2.getValue());
}
}
* 键值对
*
* @author vernon.chen
*
*/
public class KeyValuePair2<K, V> {
private static Logger logger = LoggerFactory.getLogger(KeyValuePair2.class);
private K key;
private V value;
public KeyValuePair2() {
super();
}
public KeyValuePair2(K key, V value) {
super();
this.key = key;
this.value = value;
}
public K getKey() {
return key;
}
public void setKey(K key) {
this.key = key;
}
public V getValue() {
return value;
}
public void setValue(V value) {
this.value = value;
}
public static void main(String[] args) {
KeyValuePair2<String, String> kv2 = new KeyValuePair2<String, String>();
kv2.setKey("key");
kv2.setValue("value");
logger.debug(kv2.getKey());
logger.debug(kv2.getValue());
}
}
发表评论
-
eclipse java代码格式化 javaformatter20150123.zip
2015-01-23 11:30 665eclipse java代码格式化 javaformatter ... -
List to Map
2015-01-21 17:22 437/** * <p>将List变为Map</p ... -
读取access工具类-ReadAccessUtil2
2015-01-06 13:52 505import com.healthmarketscience. ... -
ParameterizedType获取java泛型参数类型
2014-11-14 15:15 662ParameterizedType获取java泛型参数类型 ... -
分页帮助类-oracle-java
2014-10-09 17:46 420/** * 分页帮助类 * * @author ver ... -
java自动实例化List AutoArrayList
2014-07-21 15:51 704import java.util.ArrayList; p ... -
单一登录过滤器
2014-06-20 17:13 362/** * 单一登录过滤器 * * @author v ... -
正则 java 查找 打印 所有匹配项
2014-06-18 11:26 598package com.test.regex; import ... -
第3方包读取Access
2014-05-26 16:07 624package com.test; import java. ... -
多线程加签验签例子.zip
2014-05-26 16:08 479多线程加签验签例子.zip -
DateTimeUtils
2014-05-26 16:08 616import java.text.DateFormat; im ... -
listToMap
2014-05-26 16:09 396/** * List实用类 * * @author v ... -
JdbcTemplateRowMapper
2015-05-19 15:44 535import java.lang.reflect.Constr ... -
OrderUtil -排序工具
2014-05-22 09:35 612/** * 排序工具 * * @author vern ... -
ZipUtils
2014-05-22 09:35 420import java.io.BufferedOutputSt ... -
TimerUtils
2014-05-22 09:34 433import org.slf4j.Logger; import ... -
Excel View 4 Spring
2014-05-22 09:29 301Excel View 4 Spring @RequestMa ... -
DOMUtils xml操作实用类
2014-04-07 21:41 776/* * Copyright 2001-2004 The A ... -
生成验证码 数学+字母
2014-04-01 10:08 397public static String getCharAnd ... -
ConnUtils2程序耗时输出 oracle.sql.Clob类型转换成String类型
2014-03-29 10:00 650package com.achievo.ems.web.ser ...
相关推荐
利用KeyValuePair生成sql键值对csharpVS2015,C#中直接将一长串sql写到程序里太长,用来换行,看起来舒服。第一次发没啥技术含量,没脸要分。
List<KeyValuePair> lPair = new ArrayList<KeyValuePair>(); lPair.add(new KeyValuePair("ColumnName01", "表头01")); lPair.add(new KeyValuePair("ColumnName02", "表头02")); tableGrid.setDataSource...
List<KeyValuePair> lPair = new ArrayList<KeyValuePair>(); lPair.add(new KeyValuePair("ColumnName01", "表头01")); lPair.add(new KeyValuePair("ColumnName02", "表头02")); tableFixHeaders....
namespace _10_自己写Dictionary { class KeyValuePair { public KeyValuePair() { } public KeyValuePair(string key, string value) { this.key = key; this.value = value; } private string key; public string...
List<KeyValuePair, Boolean>> , List) 说明: 当窗体内的控件存在[ReadOnly]属性时,只设置[ReadOnly]属性,否则设置[Enabled]属性 方法中,List参数提供时,代表不修改其可编辑性,保持其状态为原始的可编辑或...
C++ 编辑框 列表框 可选项 可编辑,属性列表, 正常情况下,我们的ListCtrl是不可编辑的。那么我们怎么来实现一个可编辑的ListCtrl类呢
[KeyValuePair keyValuePairWithKeyAndValue:@"test2" value:@"Test 2"], [KeyValuePair keyValuePairWithKeyAndValue:@"test3" value:@"Test 3"], nil]; //button 类型为 PopupPickerButton 传入数据进行...
代码如下: Dictionary<string> list=new Dictionary;...}//KeyValuePair<T>foreach(KeyValuePair<string> kv in list){ Console.WriteLine(kv.Key+kv.Value);}//通过键的集合取foreach(string key in list.Keys){
介绍: 该项目使IronPython2在UWP中运行,IronPython2的版本是2.7.11,发布日期为2020-11-17问题IronPython2默认不...解决方案删除本地访问部分删除一些反射代码修改整个IronPython的源代码,改变KeyValuePair<,>到
本文实例讲述了C#实现自定义Dictionary类。...MyDictionary类是一个具有两个参数的泛型类,内部机制采用以键值对(KeyValuePair)类型为元素的双向链表(LinkedList)实现 2.实现代码 class MyDictioinary { Linke
if (pair.Key.Length < 2 || pair.Key.Length > MaxWordLength) continue; double p = 0; for (int i=1; i; ++i) { double t = ps [pair.Key.Substring (0, i)] * ps [pair.Key.Substring (i)...
将数据字典枚举为KeyValuePair不会以任何特定顺序返回数据,并且使用System.Collection.Specialized的OrderedDictionary很麻烦。因此,我创建了自己的有序词典,称为ListDictionary,本技巧文章中对此进行了讨论。
代码如下: Dictionary<string> o_Dic = new Dictionary(); //添加元素 o_Dic.Add(“01”, “aaa”); o_Dic.Add(“02″,”bbb”); //判断某个key是否存在 if (!... //遍歷 foreach (KeyValuePair<string, strin
本文实例讲述了C#将字母或数字加密成字母的... static List<KeyValuePair>> MappingList; #region 加密 public static string Encrypt(string str) /// /// 加密 /// /// ”str”>要加密的字符串</param>
ts-activex-gen ... 还允许为LibreOffice API生成定义。 通过遵循外部库中定义的类型并为其生成定义,确保类型定义是完整的。 还可以为类型库中的一个或多个特定类型生成定义。... KeyValuePair < string , Na
主要为大家详细介绍了C#遍历Dictionary的方法,.NET中的Dictionary是键/值对的集合,使用起来比较方便,Dictionary也可以用KeyValuePair来迭代遍历,感兴趣的小伙伴们可以参考一下
.aspx页面代码 代码如下: ”...# ((KeyValuePair<int>>)Container.DataItem).Key %> ”Repeater2″ runat=”server” xss=removed>>)Container.DataItem).Value %>’> <ItemTemplate> <%# (Container.
Even faster Key/Value store nosql embedded database engine utilizing the new MGIndex data structure with MurMur2 Hashing and WAH Bitmap indexes for duplicates. See Also More like this More by this...
命名空间System.Collections ArrayList 可变长度数组,使用类似于数组 属性 Capacity Count 方法 Add() AddRange() Remove() RemoveAt() Clear() Contains() ToArray() Hashtable 键值对(KeyValuePair)的集合,类似...
.getArray(value => new KeyValuePair, int>(diantou.dataProxy.user.get(value.Key), value.Value.Count)) .group(value => value.Key.grade0) .getArray(value => new userStat { grade0 = value.Key, count...