Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

1.6.2

Compare
Choose a tag to compare
@venusdrogon venusdrogon released this 09 Jun 22:32
· 1163 commits to master since this release

[Feature]

MapUtil

  • add Map<K, String> toSingleValueMap(Map<K, String[]> arrayValueMap)
  • add Map<K, V[]> toArrayValueMap(Map<K, V> singleValueMap)
  • add Map<K, List<V>> putMultiValue(Map<K, List<V>> map,K key,V value)

[Update]

CollectionsUtil

  • update Map<String, BigDecimal> sum(Collection<O> objectCollection,Predicate<O> includePredicate,String...propertyNames) to Map<String, BigDecimal> sum(Collection<O> objectCollection,String[] propertyNames,Predicate<O> includePredicate)
  • update BigDecimal avg(Collection<O> objectCollection,int scale,String propertyName) to BigDecimal avg(Collection<O> objectCollection,String propertyName,int scale)
  • update Map<String, BigDecimal> avg(Collection<O> objectCollection,int scale,String...propertyNames) to Map<String, BigDecimal> avg(Collection<O> objectCollection,String[] propertyNames,int scale)
  • update Map<T, Integer> groupCount(Collection<O> objectCollection,Predicate<O> includePredicate,String propertyName) to Map<T, Integer> groupCount(Collection<O> objectCollection,String propertyName,Predicate<O> includePredicate)

ClassLoaderUtil

  • rename URL getClassPath(ClassLoader classLoader) to URL getRootClassPath(ClassLoader classLoader)
  • rename URL getClassPath() to URL getRootClassPath()
  • rename URL getResource(String resourceName,Class<?> callingClass) to URL getResourceInAllClassLoader(String resourceName,Class<?> callingClass)

MapUtil

  • update putSumValue(Map<K, Integer> map,K key,Integer value) update return type from void to `Map<K, Integer>

ParamUtil

  • update Map<String, String[]> toSafeArrayValueMap(String queryString,String charsetType)

JsonUtil

  • make String format(Object obj,JsonConfig jsonConfig,int indentFactor,int indent) private

NumberFormatUtil

  • update String format(Number value,String numberPattern,RoundingMode roundingMode),if exception ,don't return

[Remove]

StringUtil

  • remove int searchTimes(final CharSequence source,final CharSequence target)
  • remove String firstCharToUpperCase(String word)
  • remove String firstCharToLowerCase(String word)

NumberUtil

  • remove String intToHexString(int i)
  • remove int hexStringToInt(String hexString)

PropertiesUtil

  • remove String getPropertiesValueWithClassLoader(Class<?> klass,String propertiesPath,String key)
  • remove String getPropertiesValue(Class<?> klass,String propertiesPath,String key)

ParamUtil

  • remove Map<String, String> toSingleValueMap(Map<String, String[]> arrayValueMap)
  • remove Map<String, String[]> toArrayValueMap(Map<String,String> singleValueMap)

FieldUtil

  • remove String[] getFieldsNames(Field[] fields) method

JsonUtil

  • remove String format(Object obj,JsonConfig jsonConfig)

DateFormatUtil

  • remove String format(Date date,String pattern)
  • remove String format(Date date,String pattern,Locale locale)

ClassLoaderUtil

  • remove Enumeration<URL> getResources(String resourceName,Class<?> callingClass)
  • remove Class<?> getClass(String className) ClassUtil add Class<?> getClass(String className)

[Fix Bug] 🐛

  • [fix bug] when call JsonUtil String format(Object obj,String[] excludes,Integer indentFactor,Integer indent) set indentFactor indent Not effective