This repository has been archived by the owner on Aug 20, 2021. It is now read-only.
Releases: ifeilong/feilong-core
Releases Β· ifeilong/feilong-core
1.7.0
[Feature]
- none
[Update]
ClassLoaderUtil
URL getResource(ClassLoader classLoader,String resourceName)
URL getRootClassPath(ClassLoader classLoader)
ClassLoader getClassLoaderByCurrentThread()
friendlyDateExtensionUtil
int getIntervalMinute(long spaceMilliseconds)
int getIntervalSecond(long spaceMilliseconds)
int getIntervalHour(long spaceMilliseconds)
int getIntervalDay(long spaceMilliseconds)
friendly- make
CalendarUtil
friendly
[Remove]
remove @Deprecated method
- Slf4jUtil
String formatMessage(String messagePattern,Object...args)
- DateUtil
Date string2Date(String dateString,String datePattern)
- DateUtil
String date2String(Date date,String datePattern)
DateUtil
- remove
boolean isBefore(String dateString,String whenDateString,String datePattern)
- remove
boolean isInTime(Date date,String beginTime,String endTime,String datePattern)
DateExtensionUtil
- remove
List<Date> getIntervalDayList(String fromDateString,String toDateString,String datePattern)
- remove
int getIntervalWeek(String date1,String date2,String datePattern)
- remove
int getIntervalDay(String date1,String date2,String datePattern)
NumberUtil
- remove
BigDecimal getMultiplyValue(Number one,Number two)
[Fix Bug] π
- none
1.6.3
[Feature]
MapUtil
- add
void putAllIfNotNull(final Map<K, V> map,Map<? extends K, ? extends V> m)
- add
void putIfValueNotNullOrEmpty(final Map<K, V> map,final K key,final V value)
CollectionsUtil
- add
boolean addAllIgnoreNull(final Collection<O> objectCollection,final Iterable<? extends O> iterable)
[Update]
PropertyUtil
- rename
boolean isCannotFindType(Object obj)
toboolean isDonotSupportFindType(Object obj)
ClassUtil
- change
boolean isInstanceAnyClass(Object obj,Class<?>[] klasses)
toboolean isInstanceAnyClass(Object obj,Class<?>...klasses)
[Remove]
ResourceBundleUtil
- remove
Map<String, String> readPrefixAsMap(String baseName,String prefix,String delimiters,Locale locale)
JsonUtil
- remove
JsonConfig defaultIfNull(JsonConfig jsonConfig)
call ObjectUtils.defaultIfNull
[Fix Bug] π
- none
1.6.2
[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)
toMap<String, BigDecimal> sum(Collection<O> objectCollection,String[] propertyNames,Predicate<O> includePredicate)
- update
BigDecimal avg(Collection<O> objectCollection,int scale,String propertyName)
toBigDecimal avg(Collection<O> objectCollection,String propertyName,int scale)
- update
Map<String, BigDecimal> avg(Collection<O> objectCollection,int scale,String...propertyNames)
toMap<String, BigDecimal> avg(Collection<O> objectCollection,String[] propertyNames,int scale)
- update
Map<T, Integer> groupCount(Collection<O> objectCollection,Predicate<O> includePredicate,String propertyName)
toMap<T, Integer> groupCount(Collection<O> objectCollection,String propertyName,Predicate<O> includePredicate)
ClassLoaderUtil
- rename
URL getClassPath(ClassLoader classLoader)
toURL getRootClassPath(ClassLoader classLoader)
- rename
URL getClassPath()
toURL getRootClassPath()
- rename
URL getResource(String resourceName,Class<?> callingClass)
toURL getResourceInAllClassLoader(String resourceName,Class<?> callingClass)
MapUtil
- update
putSumValue(Map<K, Integer> map,K key,Integer value)
update return type fromvoid
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 addClass<?> getClass(String className)
[Fix Bug] π
- [fix bug] when call JsonUtil
String format(Object obj,String[] excludes,Integer indentFactor,Integer indent)
setindentFactor
indent
Not effective
1.6.1
[Feature]
ArrayUtil
addT[] newArray(Class<T> componentType,int length)
ConvertUtil
addInteger toInteger(Object toBeConvertedValue,Integer defaultValue)
methodConvertUtil
addList<T> toList(final Collection<T> collection)
[Update]
- none
[Remove]
ArrayUtil
removeMap<T, List<O>> group(O[] array,String propertyName)
methodArrayUtil
removeMap<T, List<T>> group(T[] array)
method
[Fix Bug] π
- none
1.6.0
[Feature]
ConvertUtil
- add
T[] toArray(T...arrays)
method
[deprecated]
Slf4jUtil
String formatMessage(String messagePattern,Object...args)
deprecated, pls useString format(String messagePattern,Object...args)
method
DateUtil
String date2String(Date date,String datePattern)
deprecated, pls useString toString(Date date,String datePattern)
methodDate string2Date(String dateString,String datePattern)
deprecated, pls useDate toDate(String dateString,String datePattern)
method
[Update]
RegexUtil
- make
Matcher getMatcher(String regexPattern,CharSequence input,int flags)
private
DateUtil
- update
String toString(Date date,String datePattern)
method , call commons-lang3DateFormatUtils.format(date, datePattern)
- move interval method to DateExtensionUtil
CollectionsUtil
- change
List<O> removeAll(Collection<O> objectCollection,String propertyName,V value)
toList<O> removeAll(Collection<O> objectCollection,String propertyName,V...propertyValues)
ConvertUtil
- change
T[] convert(String[] values,Class<T> targetType)
method toT[] toArray(String[] values,Class<T> targetType)
[Remove]
DateExtensionUtil
- remove
List<String> getWeekDateStringList(int week,String datePattern)
- remove
String toPrettyDateString(Date inDate)
removeList<String> toStringList(List<Date> dateList,String datePattern)
CollectionsUtil
- remove
List<O> select(Collection<O> objectCollection,String propertyName,V value)
- remove
List<O> selectRejected(Collection<O> objectCollection,String propertyName,V value)
CalendarUtil
- remove
int getMaxDayOfMonth(Calendar calendar)
- remove
Calendar toCalendar(String dateString,String datePattern)
- remove
Calendar toCalendar(int year,int month,int day)
[Fix Bug] π
- none
1.5.6
[Feature]
- remove
@version
- update
@author
[Update]
DateFormatUtil
- if param
locale
is null,will useLocale.getDefault()
ClassUtil
- rename
boolean isInstance(Object obj,Class<?>[] klasses)
toboolean isInstanceAnyClass(Object obj,Class<?>[] klasses)
ConvertUtil
- change
List<T> toList(T[] arrays)
toList<T> toList(T...arrays)
JsonUtil
- change
Map<String, Object> toMap(String json)
method to<T> Map<String, T> toMap(String json)
- change
String formatObjectFiledsNameAndValueMap(Object obj)
method toString formatObjectFieldsNameAndValueMap(Object obj)
[Remove]
DateExtensionUtil
- remove
String getEnglishWeek(int week)
method - remove
String getChineseWeek(int week)
method
CalendarUtil
- remove
int getDayOfYear(int year,int month,int day)
- remove
int getMaxDayOfMonth(int year,int month)
[Fix Bug] π
- none
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
1.5.4
[Feature]
- DateExtensionUtil add
List<Date> getIntervalDayList(Date fromDate,Date toDate)
- PropertyComparator add
PropertyComparator(String propertyName,Comparator comparator)
Constructor - PropertyComparator add
PropertyComparator(String propertyName, Class<? extends Comparable> propertyValueConvertToClass, Comparator comparator)
Constructor
[Update]
- update EnumerationUtil.contains method
- make RandomUtil
JVM_RANDOM
private - update
ResourceBundleUtil.readPrefixAsMap(String baseName,String prefix,String delimiters,Locale locale)
, returnTreeMap
instead ofHashMap
; and useStringUtil.tokenizeToStringArray(key, delimiters)
instead ofkey.split(spliter)
- Replace all
<pre> with <pre class="code">
in JavaDoc
[Remove]
- none
[Fix Bug] π
- none
1.5.3
[Feature]
- add
Alphabet
- PropertyUtil add setPropertyIfValueNotNullOrEmpty(Object bean,String propertyName,Object value)
- PropertyUtil add setPropertyIfValueNotNull(Object bean,String propertyName,Object value)
- JsonUtil add
registerDefaultJsonValueProcessor(JsonConfig jsonConfig)
method - add
EnumerationUtil
and moveCollectionsUtil.contains(Enumeration<O> enumeration,O value)
- add
IteratorUtil
,and moveCollectionsUtil.contains(Iterator<?> iterator,Object value)
[Update]
- make
com.feilong.core.RegexPattern.EMAIL
com.feilong.core.RegexPattern.IP
com.feilong.core.RegexPattern.URLLINK
Deprecated pls usecommons-validator
some class instead - make RegexPattern some constants deprecated
- change
ObjectPropertyEqualsPredicate
toBeanPropertyValueEqualsPredicate
- update Validator , if (value instanceof CharSequence),call StringUtils.isBlank((CharSequence) value)
- update PropertyUtil
isCanFindType(Object obj,Class<T> toBeFindedClassType)
toisCannotFindType(Object obj)
- change MapUtil some method's param from
K[] keys
toK... keys
some MapUtil method use 'LinkedHashMap' instead of 'HashMap'
[Remove]
- none
[Fix Bug] π
- none
1.5.2
[Feature]
- some method use
Validate.notNull
- move
Validator
class fromcom.feilong.core.util
tocom.feilong.core
package - move
UncheckedIOException
class fromcom.feilong.core.util
tocom.feilong.core
package - move
com.feilong.core.tools.jsonlib
package tocom.feilong.tools.jsonlib
- move
com.feilong.core.tools.slf4j
package tocom.feilong.tools.slf4j
- move
DatePattern
tocom.feilong.core
package - move
TimeInterval
tocom.feilong.core
package - move
CharsetType
tocom.feilong.core
package - move
NumberPattern
tocom.feilong.core
package - move
HtmlConstants
tocom.feilong.core
package - move
HttpMethodType
tocom.feilong.core
package - move
URIComponents
tocom.feilong.core
package - move
RegexPattern
tocom.feilong.core
package
[Update]
- update
URLUtil
String[] toStringArray(URL...urls)
method, callConvertUtil.toStrings(urls)
- Validator
boolean arrayIsNullOrEmpty(Object value)
call Array.getLength(value) - update
Validator
class code
[Remove]
- none
[Fix Bug] π
- none