1、四大核心函数式接口 接口类型 表现形式 实现方法 说明 消费性接口 Consumer<T> void accept<T t> 参数为 t,无返回值 供给型接口 Supplier<T> T get() 无参数,返回值类型为 T 函数型接口 Function<T,R> R apply(T t) 参数 ...
分类:
编程语言 时间:
2021-06-20 17:43:37
阅读次数:
0
1. MongoDB相关概念 1.1 业务应用场景 传统的关系型数据库(如MySQL),在数据操作的“三高”需求以及应对Web2.0的网站需求面前,显得力不从心。 解释:“三高”需求: High performance - 对数据库高并发读写的需求。 Huge Storage - 对海量数据的高效率 ...
分类:
数据库 时间:
2021-06-20 17:35:12
阅读次数:
0
生产者-消费者ArrayBlockingQueue是一个实现了BlockingQueue接口的类,其可以很方便的实现生产者-消费者模式。用法如下: class Producer implements Runnable { private final BlockingQueue queue; Prod ...
分类:
其他好文 时间:
2021-06-19 18:48:33
阅读次数:
0
语法 for (初始化;布尔表达式;更新){ //代码语句} 特点: 支持迭代的一种通用结构,是最有效和最灵活的 循环结构 执行次数是在执行点就定义好的 实例1: package com.yeyue.struct;?public class ForDemo01 { public static voi ...
分类:
其他好文 时间:
2021-06-18 19:12:55
阅读次数:
0
TP框架使用命令行 <?php namespace app\command; use think\Db; use app\shopee\Item; use think\console\Input; use think\console\Output; use think\console\Command ...
分类:
其他好文 时间:
2021-06-17 17:23:24
阅读次数:
0
快速排序法 ①先从队尾开始向前扫描且当low < high时,如果a[high] > tmp,则high–,但如果a[high] < tmp,则将high的值赋值给low,即arr[low] = a[high],同时要转换数组扫描的方式,即需要从队首开始向队尾进行扫描了②同理,当从队首开始向队尾进行 ...
分类:
编程语言 时间:
2021-06-17 17:03:32
阅读次数:
0
一、Linux应用程序基础 1、应用程序和系统命令的关系 角色 系统命令 应用程序 文件位置 一般在/bin和/sbin目录中,或为Shell内部指令 通常在/usr/bin、/usr/sbin 和/usr/local/bin、/usr/local/sbin 目录中 主要用途 完成对系统的基本管理工 ...
分类:
其他好文 时间:
2021-06-17 16:50:34
阅读次数:
0
sql_item = "select rate_swap_id_sequence.nextval from (select 1 from DCS_FILE_RECORD where rownum <=%d)" % (num_data) ...
分类:
数据库 时间:
2021-06-16 18:27:10
阅读次数:
0
https://www.66law.cn/tiaoli/82.aspx#%E7%AC%AC%E5%85%AD%E7%AB%A0%C2%A0%E9%99%84%C2%A0%E5%88%99 https://baike.baidu.com/item/%E4%B8%AD%E5%8D%8E%E4%BA%BA ...
分类:
其他好文 时间:
2021-06-16 18:26:11
阅读次数:
0
js 基础 for in 和 for of的区别详解 const obj = { a: 1, b: 2, c: 3 } for (let i in obj) { console.log(i) // a // b // c } for (let i of obj) { console.log(i) / ...
分类:
其他好文 时间:
2021-06-16 18:08:46
阅读次数:
0