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

1.8.0

Compare
Choose a tag to compare
@venusdrogon venusdrogon released this 14 Jul 10:02
· 915 commits to master since this release

detail see in 1.8.0 milestone

[Feature] πŸ†•

  • add SortUtil,
  • add BeanComparatorUtil
  • add BeanPredicate
  • add BeanPredicateUtil
  • add StatisticsUtil
  • use import static MapUtil.newLinkedHashMap
  • use import static Validator
  • use import static TimeInterval
  • DateExtensionUtil add String getIntervalForView(Date beginDate)
  • BeanUtil add DynaBean createDynaBean(Map<String, Class<?>> typeMap,Map<String, Object> valueMap)

[Update]

  • JsonUtil make T toBean(Object json,JsonConfig jsonConfig) private
  • PropertyUtil update Map<String, Object> describe(Object bean,String...propertyNames) method,support propertyNames param
  • MapUtil update Map<K, V> toSingleValueMap(Map<K, V[]> arrayValueMap) support generics
  • MapUtil update Map<K, V> extractSubMap(Map<K, O> map,String extractPropertyName) , remove param Class<K> keysClass
  • MapUtil update Map<K, V> extractSubMap(Map<K, O> map,K[] includeKeys,String extractPropertyName) , remove param Class<K> keysClass
  • URLUtil rename URL newURL(String spec) to URL toURL(String spec)
  • URLUtil change URL toFileURL(String filePath) Access Modifiers from public to private
  • SystemUtil rename Map<String, String> getPropertiesMapForLog() to Map<String, String> getPropertiesMap()
  • SystemUtil rename Map<String, String> getEnvMapForLog() to Map<String, String> getEnvMap
  • ClassLoaderUtil make static ClassLoader getClassLoaderByClass(Class<?> callingClass) default

[Remove]

  • MapUtil move sort method to SortUtil
  • MapUtil move T getMinValue(Map<K, T> map,K...keys) to StatisticsUtil
  • RequestLogBuilder add Map<String, String> getAttributeMapIfValueNotNull(String...attributeNames)
  • BeanUtil remove Map<String, String> describe(Object bean)
  • ClassUtil remove Map<String, Object> getClassInfoMapForLog(Class<?> klass)
  • CollectionsUtil move BigDecimal sum(Collection<O> objectCollection,String propertyName,Predicate<O> includePredicate) to StatisticsUtil
  • CollectionsUtil move BigDecimal sum(Collection<O> objectCollection,String propertyName) to StatisticsUtil
  • CollectionsUtil move Map<String, BigDecimal> sum(Collection<O> objectCollection,String[] propertyNames,Predicate<O> includePredicate) to StatisticsUtil
  • CollectionsUtil move Map<String, BigDecimal> sum(Collection<O> objectCollection,String...propertyNames) to StatisticsUtil
  • CollectionsUtil move Map<String, BigDecimal> avg(Collection<O> objectCollection,String[] propertyNames,int scale) to StatisticsUtil
  • CollectionsUtil move BigDecimal avg(Collection<O> objectCollection,String propertyName,int scale) to StatisticsUtil
  • CollectionsUtil move Map<T, Integer> groupCount(Collection<O> objectCollection,String propertyName,Predicate<O> includePredicate) to StatisticsUtil
  • CollectionsUtil move Map<T, Integer> groupCount(Collection<O> objectCollection,String propertyName) to StatisticsUtil
  • StringUtil remove String addDoubleQuotes(String text)
  • StringUtil remove String stringAddInt(String str,int i)
  • ObjectUtil remove boolean isInteger(Object object)
  • URIUtil rename URI newURI(String uri) to URI create(String uri)
  • URIUtil remove boolean isAbsolutePath(String uriString)
  • URLUtil remove String getUnionFileUrl(String context,String spec) method
  • URLUtil remove String[] toStringArray(URL...urls)
  • ParamUtil remove no use method,such as removeParameter,retentionParamList
  • remove ArrayContainsPredicate,pls use BeanPredicateUtil.Predicate<T> containsPredicate(final String propertyName,final V...propertyValues)
  • remove BeanPropertyValueEqualsPredicate ,pls use BeanPredicateUtil.equalPredicate(String propertyName,V propertyValue)
  • remove CollectionContainsPredicate,pls use BeanPredicateUtil.Predicate<T> containsPredicate(final String propertyName,final Collection<V> propertyValueList)

[Fix Bug] πŸ›

  • EnumUtil when not found constant propertyName is specifiedValue,will return null instead of throw BeanUtilException
  • StringUtil String replace(final String text,final String searchString,final String replacement), if replacement is null,may return text