码迷,mamicode.com
首页 >  
搜索关键字:isempty    ( 460个结果
Salesforce 记录
String.isNotBlank(str) //判断字符串不为空 String.isBlank(str)//判断字符串为空 //判断List,Map,Set等不为空 if(null != list && !list.isEmpty()){ //code } ...
分类:其他好文   时间:2019-01-15 22:04:18    阅读次数:205
补充实验
第二周 Arraystack类的实现和测试 1、完成课本中ArrayStack类的实现,特别是完成peek、isEmpty、size和toString方法的实现,并完成四个方法的测试。 (评分4分,包括4个方法的实现和测试,每个方法的实现和测试占1分,缺少实现或测试均扣除0.5分) public T ...
分类:其他好文   时间:2019-01-10 01:08:01    阅读次数:148
正则验证规则整理
const validate = { //验证非空 isEmpty(value, text) { return value; }, //验证身份证 idCard(value) { return /^\d{15}(\d{2}[A-Za-z0-9])?$/i.test(value); }, //验证最少 ...
分类:其他好文   时间:2018-12-20 14:31:23    阅读次数:214
ring buffer 亲测好用 C++ 11 加入 条件变量
#pragma once #include #include class CCycleBuffer { public: bool isFull(); bool isEmpty(); void empty(); int getReadableLength(); int getWriteableLeng... ...
分类:编程语言   时间:2018-12-17 02:16:04    阅读次数:144
Map结果集排序
/** * MAP结果集排序 * @param sourceMap * @return */ private Map sortData(Map sourceMap) { // 结果集 Map resultMap = new HashMap(); if (!sourceMap.isEmpty()) .... ...
分类:编程语言   时间:2018-12-14 13:04:07    阅读次数:192
编程7:生成窗口最大值数组
isEmpty() && $arr[$i] >= $arr[$qMax->top()]){ //遍历到数组i位置时,从队尾开始依次进行比较,若比队列元素大,就让队列元素从队尾弹出 $qMax->pop(); } $qMax->push($i); //否则就将这个比较大的元素的下标加进队尾 //处理队... ...
分类:编程语言   时间:2018-11-27 16:44:26    阅读次数:175
集合工具类CollectionUtils、ListUtils、SetUtils、MapUtils的使用
要使用这个工具类,我们要在maven工程当中加入相应的依赖: 今天来总结下这些工具类。 主要用它的isEmpty(final Collection<?> coll)静态方法来判断一个给定的集合是否为null或者是否长度为0。最近才发现此工具类还可以取集合的交集、并集、甚至差集,集合1:[1,2,3, ...
分类:其他好文   时间:2018-11-14 14:34:21    阅读次数:154
图片上传代码
public static String imageUpdate(MultipartFile multfile, HttpServletRequest request,String pathName){ if (!multfile.isEmpty()) { CommonsMultipartFile ... ...
分类:Web程序   时间:2018-10-16 15:51:14    阅读次数:270
日常Bug(9.10)
一不小心又写了个bug,其实很简单的一个问题,马虎马虎不仔细,特此记录下来。 上述代码中的queryMaxSerialNumber.isEmpty() 这一块由于上面的查询到的queryMaxSerialNumber没有数据,所以并没有给Map<String,Object> queryMaxSeri ...
分类:其他好文   时间:2018-09-10 11:01:20    阅读次数:154
C语言实现常用数据结构——栈
#include #include //用链表实现栈 typedef struct Node { int data; struct Node *next; } node; int IsEmpty(node *p) { return p->next==NULL; } node *CreateStack... ...
分类:编程语言   时间:2018-09-05 19:47:31    阅读次数:200
460条   上一页 1 ... 9 10 11 12 13 ... 46 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!