Uses of Interface
org.miaixz.bus.core.lang.Wrapper
Packages that use Wrapper
Package
Description
提供数组相关封装
Map相关封装,提供特殊Map实现
多参数类型的Map实现,包括集合类型值的MultiValueMap和Table
MultiValueMap:一个键对应多个值的集合的实现,类似于树的结构。
Table:使用两个键映射到一个值,类似于表格结构。
IO相关封装,包括Inputstream、OutputStream、Buffer等实现
对文件读写的封装,包括文件拷贝、文件读取、文件写出、行处理等
基于JDK7+ WatchService的文件和目录监听封装,支持多级目录
对象池封装实现
整体参考了:
https://github.com/DanielYWoo/fast-object-pool/
https://github.com/apache/commons-pool
基于分区的对象池实现,参考:https://github.com/DanielYWoo/fast-object-pool
提供包装对象的抽象
通过包装接口,实现装饰模式或代理模式,以增强或目标对象功能
-
Uses of Wrapper in org.miaixz.bus.core.center.array
Classes in org.miaixz.bus.core.center.array that implement Wrapper -
Uses of Wrapper in org.miaixz.bus.core.center.map
Classes in org.miaixz.bus.core.center.map that implement WrapperModifier and TypeClassDescriptionclassBiMap<K,V> 双向Map 互换键值对不检查值是否有重复,如果有则后加入的元素替换先加入的元素 值的顺序在HashMap中不确定,所以谁覆盖谁也不确定,在有序的Map中按照先后顺序覆盖,保留最后的值 它与TableMap的区别是,BiMap维护两个Map实现高效的正向和反向查找classCamelCaseLinkedMap<K,V> 驼峰Key风格的LinkedHashMap 对KEY转换为驼峰,get("int_value")和get("intValue")获得的值相同,put进入的值也会被覆盖classCamelCaseMap<K,V> 驼峰Key风格的Map 对KEY转换为驼峰,get("int_value")和get("intValue")获得的值相同,put进入的值也会被覆盖class忽略大小写的LinkedHashMap 对KEY忽略大小写,get("Value")和get("value")获得的值相同,put进入的值也会被覆盖classCaseInsensitiveMap<K,V> 忽略大小写的Map 对KEY忽略大小写,get("Value")和get("value")获得的值相同,put进入的值也会被覆盖class忽略大小写的TreeMap对KEY忽略大小写,get("Value")和get("value")获得的值相同,put进入的值也会被覆盖classCustomKeyMap<K,V> 自定义键的Map,默认HashMap实现class字典对象,扩充了LinkedHashMap中的方法classFuncKeyMap<K,V> 自定义函数Key风格的MapclassFuncMap<K,V> 自定义键值函数风格的Mapstatic classLinkedForestMap.EntryNodeWrapper<K,V, N extends TreeEntry<K, V>> Map.Entry包装类classMapWrapper<K,V> Map包装类,通过包装一个已有Map实现特定功能。例如自定义Key的规则或Value规则classTolerantMap<K,V> 一个可以提供默认值的MapclassTransMap<K,V> 自定义键和值转换的的Map 继承此类后,通过实现TransMap.customKey(Object)和TransMap.customValue(Object),按照给定规则加入到map或获取值。 -
Uses of Wrapper in org.miaixz.bus.core.center.map.multi
Classes in org.miaixz.bus.core.center.map.multi that implement WrapperModifier and TypeClassDescriptionclassAbstractCollValueMap<K,V> MultiValueMap的基本实现classCollectionValueMap<K,V> MultiValueMap的通用实现,可视为值为Collection集合的Map集合。 构建时指定一个工厂方法用于生成原始的Map集合,然后再指定一个工厂方法用于生成自定义类型的值集合。 当调用MultiValueMap中格式为“putXXX”的方法时,将会为key创建值集合,并将key相同的值追加到集合中classGraph<T>支持处理无向图结构的Map,本质上是基于SetValueMap实现的邻接表classListValueMap<K,V> 值作为集合List的Map实现,通过调用putValue可以在相同key时加入多个值,多个值用集合表示classSetValueMap<K,V> 值作为集合Set(LinkedHashSet)的Map实现,通过调用putValue可以在相同key时加入多个值,多个值用集合表示 -
Uses of Wrapper in org.miaixz.bus.core.io
Classes in org.miaixz.bus.core.io that implement WrapperModifier and TypeClassDescriptionclass读取带BOM头的流内容的Reader,如果非bom的流或无法识别的编码,则默认UTF-8 BOM定义:http://www.unicode.org/unicode/faq/utf_bom.html 00 00 FE FF = UTF-32, big-endian FF FE 00 00 = UTF-32, little-endian EF BB BF = UTF-8 FE FF = UTF-16, big-endian FF FE = UTF-16, little-endian 使用:FileInputStream fis = new FileInputStream(file); BomReader uin = new BomReader(fis);class行读取器,类似于BufferedInputStream,支持多行转义,规则如下: 支持'\n'和'\r\n'两种换行符,不支持'\r'换行符 如果想读取转义符,必须定义为'\\' 多行转义后的换行符和空格都会被忽略classReader包装 -
Uses of Wrapper in org.miaixz.bus.core.io.file
Classes in org.miaixz.bus.core.io.file that implement WrapperModifier and TypeClassDescriptionclass文件读取器class文件包装器,扩展文件对象class文件写入器 -
Uses of Wrapper in org.miaixz.bus.core.io.watch
Classes in org.miaixz.bus.core.io.watch that implement WrapperModifier and TypeClassDescriptionclassWatchEvent包装类,提供可选的监听事件和监听选项,实现方法包括: 注册:WatchServiceWrapper.registerPath(Path, int)注册需要监听的路径。 监听:WatchServiceWrapper.watch(Watcher, Predicate)启动监听并指定事件触发后的行为。 -
Uses of Wrapper in org.miaixz.bus.core.lang.pool
Subinterfaces of Wrapper in org.miaixz.bus.core.lang.pool -
Uses of Wrapper in org.miaixz.bus.core.lang.pool.partition
Classes in org.miaixz.bus.core.lang.pool.partition that implement Wrapper -
Uses of Wrapper in org.miaixz.bus.core.lang.wrapper
Classes in org.miaixz.bus.core.lang.wrapper that implement Wrapper