This repository has been archived by the owner on Aug 20, 2021. It is now read-only.
1.5.5
[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 andisInteger(Object object)
method return type, fromBoolean
toboolean
RandomUtil
String createRandomFromString(String str,int length)
callRandomStringUtils.random(length, str)
CollectionsUtil
- update
avg/sum
method return value from Number toBigDecimal
- change
O find(Collection<O> objectCollection,String propertyName,V value)
toO find(Iterable<O> iterable,String propertyName,V value)
method
ParamUtil
- rename
String joinValues(Map<String, String> singleValueMap,String...includeKeys)
toString joinValuesOrderByIncludeKeys(Map<String, String> * singleValueMap,String...includeKeys)
- rename
String joinSingleValueMap(Map<String, String> singleValueMap)
toString toQueryStringUseSingleValueMap(Map<String, String> singleValueMap)
- rename
String joinArrayValueMap(Map<String, String[]> arrayValueMap)
toString 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)
callDateUtils.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