# hihuzi_collection_tool **Repository Path**: hihuzi-top/collection_tool ## Basic Information - **Project Name**: hihuzi_collection_tool - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-10-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hihuzi_collection_tool #### 集合工具提取和填充器 #使用方法-->FillFactory.beach().需要方法() #使用方法-->PickFactoryTest.beach().需要方法() /** * tips HttpServletRequest-->MAP * 默认 方法一 保存空值 * * @parameter: HttpServletRequest request * @return: Map * @author: hihuzi 2018/6/14 14:51 */ Map fill(HttpServletRequest request); /** * tips HttpServletRequest-->MAP * 方法二 保存空值 并且舍弃str特定字段 * * @parameter: HttpServletRequest request * @parameter: String[] key * @return: Map * @author: hihuzi 2018/7/23 15:05 */ Map fill(HttpServletRequest request, String... key); /** * tips HttpServletRequest-->MAP * 方法三 是否舍弃空值 并且舍弃str特定字段(默认舍弃空值) * * @parameter: HttpServletRequest * @parameter: StuffConfig * @return: Map * @author: hihuzi 2018/7/23 15:05 */ Map fill(HttpServletRequest request, StuffConfig config); /** * tips HttpServletRequest-->MAP * 方法四 是否舍弃空值 并且舍弃str特定字段(默认保存空值) * * @parameter: HttpServletRequest request * @parameter: StuffConfig config * @parameter: String[] key * @return: Map * @author: hihuzi 2018/7/23 15:05 */ Map fill(HttpServletRequest request, StuffConfig config, String... key); /** * tips HttpServletRequest--> obj * * @parameter: HttpServletRequest request * @parameter: E e * @return: E * @author: hihuzi 2018/6/14 14:50 */ E fillEntity(HttpServletRequest request, E e) throws Exception; /** * tips HttpServletRequest--> obj * * @parameter: HttpServletRequest request * @parameter: E e * @return: E * @author: hihuzi 2018/6/14 14:50 */ E fillEntity(HttpServletRequest request, E e, StuffConfig config) throws Exception; /** * tips 对MAP数据装填--> 对象 * * @parameter: Map map * @parameter: E e * @return: E * @author: hihuzi 2018/6/14 14:50 */ E fillEntity(Map map, E e) throws Exception; /** * tips 对MAP数据装填--> 对象 * * @parameter: Map map * @parameter: E e * @return: E * @author: hihuzi 2018/6/14 14:50 */ E fillEntity(Map map, E e, StuffConfig config) throws Exception; /** * tips List --> E --> List * * @parameter: List list * @parameter: E e * @return: List * @author: hihuzi 2018/6/26 14:51 */ List fillEntity(List list, E e) throws Exception; /** * tips list --> E --> list 针对数据库与实体类名有区别 * * @parameter: List list * @parameter: E e * @return: List * @author: hihuzi 2018/6/26 14:51 */ List fillEntity(List list, E e, StuffConfig config) throws Exception; /** * tips E --> Map 针对E的属性属性值填充到map * * @parameter: E e * @parameter: map map * @return: map * @author: hihuzi 2018/6/26 14:51 */ Map fillMap(E e, Map map) throws Exception; /** * tips E --> Map 针对E的属性属性值填充到map * * @notice: 属性值为空的舍弃 * @parameter: E e * @parameter: map map * @return: map * @author: hihuzi 2018/6/26 14:51 */ Map fillMap(E e, Map map, StuffConfig config) throws Exception; /** * tips list --> E --> list 针对数据库与实体类名有区别 * * @parameter: List list * @parameter: E e * @return: List * @author: hihuzi 2018/6/26 14:51 */ List listToEntity(List list, E e) throws Exception; /** * tips E --> Map 针对E的属性属性值填充到map * * @notice: 属性值为空的舍弃 * @parameter: E e * @parameter: map map * @return: map * @author: hihuzi 2018/6/26 14:51 */ List listToEntity(List list, E e, StuffConfig config) throws Exception; /** * tips 从对象集合中取特定字段 * * @parameter: List list * @parameter: String[] parameter * @return: List * @author: hihuzi 2018/7/12 8:03 */ List pick(List list, String... parameter) throws Exception; /** * tips 从对象集合中取特定字段(带控制返回值) * * @parameter: List list * @parameter: PickConfig config * @parameter: String[] parameter * @return: List * @author: hihuzi 2018/7/12 8:03 */ List pick(List list, PickConfig config, String... parameter) throws Exception; /** * tips 从对象集合中取特定字段的value(带控制返回值)(去重) * * @parameter: List list * @parameter: String[] parameter * @return: Set * @author: hihuzi 2018/4/30 15:49 */ Set pickValue(List list, String... parameter) throws Exception; /** * tips 从对象集合中取特定字段的value(带控制返回值)(去重) * * @parameter: List list * @parameter: PickConfig enmu * @parameter: String[] parameter * @return: Set * @author: hihuzi 2018/4/30 15:49 */ Set pickValue(List list, PickConfig config, String... parameter) throws Exception; /** * tips 单个对象取出特定字段 * * @parameter: E e * @parameter: String[] key * @return: Map * @author: hihuzi 2018/4/30 15:49 */ Map pickValue(E e, String... key) throws Exception; /** * tips 单个对象 返回选定字段(带控制返回) * * @parameter: E e * @parameter: PickConfig config * @parameter: String[] key * @return: Map * @author: hihuzi 2018/4/30 15:49 */ Map pickValue(E e, PickConfig config, String... key) throws Exception; /** * tips 从集合中取出特定key * * @parameter: Map map * @parameter: String[] key * @return: Map * @author: hihuzi 2018/8/3 17:09 */ Map pickMap(Map map, String... key); /** * tips 从集合中取出特定Key(带返回控制) * * @parameter: Map map * @parameter: PickConfig config * @parameter: String[] key * @return: Map * @author: hihuzi 2018/8/3 17:09 */ Map pickMap(Map map, PickConfig config, String... key);