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

1.5.5

Compare
Choose a tag to compare
@venusdrogon venusdrogon released this 27 May 07:46
· 1293 commits to master since this release

[Feature]

CollectionsUtil

  • add O find(Iterable<O> iterable,Predicate<O> predicate) method
  • add BigDecimal sum(Collection<O> objectCollection,String propertyName,Predicate<O> includePredicate) method
  • add Map<String, BigDecimal> sum(Collection<O> objectCollection,Predicate<O> includePredicate,String...propertyNames) method
  • add Map<T, List<O>> group(Collection<O> objectCollection,String propertyName,Predicate<O> includePredicate) method
  • add List<T> collect(final Iterable<O> inputIterable,final Transformer<? super O, ? extends T> transformer)
  • add List<T> collect(final Iterator<O> inputIterator,final Transformer<? super O, ? extends T> transformer)
  • add 'int indexOf(List list,String propertyName,T value)' method

MapUtil

  • add putSumValue(Map<K, Integer> map,K key,Integer value) method

[Update]

ObjectUtil

  • change isBoolean(Object object) method and isInteger(Object object) method return type, from Boolean to boolean

RandomUtil

  • String createRandomFromString(String str,int length) call RandomStringUtils.random(length, str)

CollectionsUtil

  • update avg/sum method return value from Number to BigDecimal
  • change O find(Collection<O> objectCollection,String propertyName,V value) to O find(Iterable<O> iterable,String propertyName,V value) method

ParamUtil

  • rename String joinValues(Map<String, String> singleValueMap,String...includeKeys) to String joinValuesOrderByIncludeKeys(Map<String, String> * singleValueMap,String...includeKeys)
  • rename String joinSingleValueMap(Map<String, String> singleValueMap) to String toQueryStringUseSingleValueMap(Map<String, String> singleValueMap)
  • rename String joinArrayValueMap(Map<String, String[]> arrayValueMap) to String toQueryStringUseArrayValueMap(Map<String,String[]> arrayValueMap)

NumberUtil

  • update some param to Number,and add validator

[Remove]

DateUtil

  • remove Date operateDate(Date date,int field,int amount),use org.apache.commons.lang3.time.DateUtils some method
  • update Calendar toCalendar(Date date) call DateUtils.toCalendar(date) method

NumberUtil

  • remove BigDecimal getAddValue(Number one,Number two)
  • remove BigDecimal getMultiplyValue(BigDecimal one,Serializable two,int scale)
  • remove boolean isSpecificNumber(Serializable value,String specificNumber)

[Fix Bug] 🐛

  • none