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.8.6
detail see in 1.8.6 milestone
[Feature] 🆕
- none
[Update]
- update some javadoc
- add some test
NumberUtil
NumberUtil.getAddValue(Number...)
add empty validate fix #236NumberUtil
NumberUtil.setScale(BigDecimal, int, RoundingMode)
update to public ,fix #233NumberUtil
NumberUtil.setScale(BigDecimal, int)
update to public ,fix #232ConvertUtil
ConvertUtil.toMap(Collection<E>)
add null element validate,and will throw IllegalArgumentException, fix #218ConvertUtil
ConvertUtil.toMap(Entry<K, V>...)
add null element validate,and will throw IllegalArgumentException, fix #217DateUtil
DateUtil.toDate(String, String...)
method, add empty or has null element patterns validate fix #277
[Remove]
- remove
DateUtil
Date getFirstWeekOfSpecifyDateYear(Date date,int week)
method,fix #265 - remove
NumberUtil
NumberUtil.toNoScale(Number, RoundingMode)
fix #231 - remove
NumberUtil
NumberUtil.toNoScale(Number)
fix #230 - remove
NumberUtil
String getProgress(Number current,Number total)
method ,fix #225
[Fix Bug] 🐛
- update
MapUtil
Map<V, K> invertMap(Map<K, V> map)
method ,if map is null,will return null instead of NPE fix #309,fix #300 - update
MapUtil
Map<K, V> removeKeys(Map<K, V> map,K...keys)
,if map is null,will return null instead of throw NPE ,fix #299 - update
ConvertUtil
T[] toArray(Collection<T> collection,Class<T> arrayComponentType)
if collection is null, will return null fix #295 - update
NumberUtil
NumberUtil.setScale(Number, int, RoundingMode)
method, if RoundingMode is null will useHALF_UP
fix #244 - update
ConvertUtil.toMap(Properties)
method,support Properties param is null and empty,and return emptyMap() ,fix #219 - update
ParamUtil.toNaturalOrderingQueryString(Map<String, String>)
error javadoc fix #201,fix #200 - update
NumberUtil.toString(Number, String)
error doc ,fix #224
1.8.5
detail see in 1.8.5 milestone
[Feature] 🆕
- none
[Update]
- update some javadoc
- add some test
- update JsonUtil
String format(Object obj,String[] excludes,Integer indentFactor,Integer indent)
method toString format(Object obj,String[] excludes,int indentFactor,int indent)
fix #142 - update
ArrayContainsPropertyNamesPropertyFilter
no public - update
PropertyStrategyWrapper
no public - change
JsonFormatConfig.setExcludes(String[])
param to Varargs, fix #155 - change
JsonFormatConfig.setIncludes(String[])
param to Varargs, fix #154
[Remove]
- remove some temp class,fix #130
- remove package
com.feilong.tools.jsonlib.util
- remove package
com.feilong.tools.jsonlib.filters
- move formatter to
feilong-formatter
project, fix #162
[Fix Bug] 🐛
- fix
RandomUtil.createRandom(Number, Number)
error javadoc,see #118 - fix javadoc error,
DateUtil.getWeekOfYear(2014-12-29)
result is 1 ,fix #196 - update
NumberFormatUtil.format(Number, String, RoundingMode)
method, ifRoundingMode
is null , will useRoundingMode.HALF_UP
instead of DecimalFormat defaultRoundingMode.HALF_EVEN
,see #122
1.8.4
detail see in 1.8.4 milestone
[Feature] 🆕
ObjectUtil
addboolean isPrimitiveArray(Object object)
[Update]
ConvertUtil
updateString toString(ToStringConfig toStringConfig,final Collection<?> collection)
param order toString toString(final Collection<?> collection,ToStringConfig toStringConfig)
ConvertUtil
updateString toString(ToStringConfig toStringConfig,Object...arrays)
toString toString(Object[] arrays,ToStringConfig toStringConfig)
DateExtensionUtil
updateString getIntervalForView(Date beginDate)
method name toString formatDuration(Date beginDate)
DateExtensionUtil
updateString getIntervalForView(Date beginDate,Date endDate)
method name toString formatDuration(Date beginDate,Date endDate)
DateExtensionUtil
updateString getIntervalForView(long spaceMilliseconds)
method name toString formatDuration(long spaceMilliseconds)
NumberUtil
useBigDecimal.ZERO
instead ofnew BigDecimal(0)
[Remove]
- none
[Fix Bug] 🐛
ConvertUtil.toString(Object[], ToStringConfig)
if param arrays is only has one element (which is null array,will NPE)
1.8.3
detail see in 1.8.3 milestone
[Feature] 🆕
- add FeiLongRegexPatternSuiteTests
- add FeiLongCoreTests
- add FeiLongBeanSuiteTests
- add FeiLongDateSuiteTests
- add FeiLongLangSuiteTests
- add FeiLongNetSuiteTests
- add FeiLongTextSuiteTests
- add FeiLongUtilSuiteTests
- add AbstractParameterizedTest
- add ObjectUtilIsArrayParameterizedTest
[Update]
DateUtil
updateCalendar toCalendar(Date date)
method removepublic
access Modifiers
[Remove]
DateExtensionUtil
removeList<Date> getIntervalDayList(Date fromDate,Date toDate)
methodFormatter
removeString format(String[] columnTitles,List<Object[]> dataList)
FormatterUtil
removeString formatToSimpleTable(String[] columnTitles,List<Object[]> dataList)
ResourceBundleUtil
removeResourceBundle getResourceBundleByFileName(String fileName)
ResourceBundleUtil
removeResourceBundle getResourceBundle(Reader reader)
[Fix Bug] 🐛
AggregateUtil
updateBigDecimal avg(Collection<O> objectCollection,String propertyName,int scale)
,when objectCollection is null return right resultAggregateUtil
updateMap<String, BigDecimal> avg(Collection<O> objectCollection,String[] propertyNames,int scale)
,when objectCollection is null return right result
1.8.2
detail see in 1.8.2 milestone
[Feature] 🆕
- add
SimpleTableFormatter
- add
FormatterUtil
CollectionsUtil
addboolean addIgnoreNullOrEmpty(final Collection<T> objectCollection,final T element)
BeanComparatorUtil
addComparator<T> propertyComparator(String propertyName,List<V> propertyValues,UnknownObjectBehavior unknownObjectBehavior)
;
[Update]
- use import static
SortUtil
updatesort(List<O> list,String...propertyNames)
SortUtil
updateT[] sort(T[] arrays,Comparator<? super T> comparator)
toT[] sort(T[] arrays,Comparator<T>...comparators)
SortUtil
updateList<O> sort(List<O> list,Comparator<? super O> comparator)
toList<O> sort(List<O> list,Comparator<O>...comparators)
BeanComparatorUtil
Comparator<T> propertyComparator(String propertyName,V...propertyValues)
method callpropertyComparator(propertyName, toList(propertyValues))
[Remove]
SortUtil
removeList<O> sort(List<O> list,String propertyName)
[Fix Bug] 🐛
SortUtil
updateMap<K, V> sortByKeyAsc(Map<K, V> map)
support null key map to sort
1.8.1
detail see in 1.8.1 milestone
[Feature] 🆕
- rename
StatisticsUtil
toAggregateUtil
ResourceBundleUtil
addT readToAliasBean(String baseName,Class<T> aliasBeanClass)
ResourceBundleUtil
addProperties readToProperties(String baseName)
ResourceBundleUtil
changereadAllPropertiesToMap
method toreadToMap
BeanUtil
addpopulateAliasBean(T aliasBean,Map<String, ?> aliasAndValueMap)
BeanUtil
addDynaBean newDynaBean(Map<String, ?> valueMap)
[Update]
ResourceBundleUtil
updateString getValue
supportObject...arguments
paramConvertUtil
updateMap<String, String> toMap(Properties properties)
method ,returntreeMap
instead ofhashMap
BeanUtil
renameDynaBean createDynaBean
toBeanUtil.newDynaBean
BeanUtil
changepopulate(T bean,Map<String, ?> properties)
param and return type- update slf4j-log4j12 dependency
[Remove]
ResourceBundleUtil
removegetArray(String baseName,String key,String delimiters)
ResourceBundleUtil
removegetArray(String baseName,String key,String delimiters,Class<T> typeClass)
ResourceBundleUtil
removeT[] getArray(ResourceBundle resourceBundle,String key,String delimiters,Class<T> typeClass)
ResourceBundleUtil
removeString[] getArray(ResourceBundle resourceBundle,String key,String delimiters)
ResourceBundleUtil
removeString getValueWithArguments(ResourceBundle resourceBundle,String key,Object...arguments)
ResourceBundleUtil
removeString getValueWithArguments(String baseName,String key,Locale locale,Object...arguments)
BeanUtil
removeDynaBean newDynaBean(Map<String, Class<?>> typeMap,Map<String, Object> valueMap)
,
[Fix Bug] 🐛
- none
1.8.0
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
addString getIntervalForView(Date beginDate)
BeanUtil
addDynaBean createDynaBean(Map<String, Class<?>> typeMap,Map<String, Object> valueMap)
[Update]
JsonUtil
makeT toBean(Object json,JsonConfig jsonConfig)
privatePropertyUtil
updateMap<String, Object> describe(Object bean,String...propertyNames)
method,support propertyNames paramMapUtil
updateMap<K, V> toSingleValueMap(Map<K, V[]> arrayValueMap)
support genericsMapUtil
updateMap<K, V> extractSubMap(Map<K, O> map,String extractPropertyName)
, remove paramClass<K> keysClass
MapUtil
updateMap<K, V> extractSubMap(Map<K, O> map,K[] includeKeys,String extractPropertyName)
, remove paramClass<K> keysClass
URLUtil
renameURL newURL(String spec)
toURL toURL(String spec)
URLUtil
changeURL toFileURL(String filePath)
Access Modifiers frompublic
toprivate
SystemUtil
renameMap<String, String> getPropertiesMapForLog()
toMap<String, String> getPropertiesMap()
SystemUtil
renameMap<String, String> getEnvMapForLog()
toMap<String, String> getEnvMap
ClassLoaderUtil
makestatic ClassLoader getClassLoaderByClass(Class<?> callingClass)
default
[Remove]
MapUtil
movesort method
toSortUtil
MapUtil
moveT getMinValue(Map<K, T> map,K...keys)
toStatisticsUtil
RequestLogBuilder
addMap<String, String> getAttributeMapIfValueNotNull(String...attributeNames)
BeanUtil
removeMap<String, String> describe(Object bean)
ClassUtil
removeMap<String, Object> getClassInfoMapForLog(Class<?> klass)
CollectionsUtil
moveBigDecimal sum(Collection<O> objectCollection,String propertyName,Predicate<O> includePredicate)
toStatisticsUtil
CollectionsUtil
moveBigDecimal sum(Collection<O> objectCollection,String propertyName)
toStatisticsUtil
CollectionsUtil
moveMap<String, BigDecimal> sum(Collection<O> objectCollection,String[] propertyNames,Predicate<O> includePredicate)
toStatisticsUtil
CollectionsUtil
moveMap<String, BigDecimal> sum(Collection<O> objectCollection,String...propertyNames)
toStatisticsUtil
CollectionsUtil
moveMap<String, BigDecimal> avg(Collection<O> objectCollection,String[] propertyNames,int scale)
toStatisticsUtil
CollectionsUtil
moveBigDecimal avg(Collection<O> objectCollection,String propertyName,int scale)
toStatisticsUtil
CollectionsUtil
moveMap<T, Integer> groupCount(Collection<O> objectCollection,String propertyName,Predicate<O> includePredicate)
toStatisticsUtil
CollectionsUtil
moveMap<T, Integer> groupCount(Collection<O> objectCollection,String propertyName)
toStatisticsUtil
StringUtil
removeString addDoubleQuotes(String text)
StringUtil
removeString stringAddInt(String str,int i)
ObjectUtil
removeboolean isInteger(Object object)
URIUtil
renameURI newURI(String uri)
toURI create(String uri)
URIUtil
removeboolean isAbsolutePath(String uriString)
URLUtil
removeString getUnionFileUrl(String context,String spec)
methodURLUtil
removeString[] toStringArray(URL...urls)
ParamUtil
remove no use method,such asremoveParameter
,retentionParamList
- remove
ArrayContainsPredicate
,pls useBeanPredicateUtil.Predicate<T> containsPredicate(final String propertyName,final V...propertyValues)
- remove
BeanPropertyValueEqualsPredicate
,pls useBeanPredicateUtil.equalPredicate(String propertyName,V propertyValue)
- remove
CollectionContainsPredicate
,pls useBeanPredicateUtil.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 BeanUtilExceptionStringUtil
String replace(final String text,final String searchString,final String replacement)
, if replacement is null,may return text
1.7.3
[Feature] 🆕
ConvertUtil
addProperties toProperties(final Map<String, String> map)
ConvertUtil
addMap<String, String> toMap(ResourceBundle resourceBundle)
- add
AbstractJsonValueProcessor
- add
src/site/site.xml
- add
maven-surefire-report-plugin
- add
org.hamcrest:hamcrest-library
1.3 test dependency
[Update]
- change some class log level from
debug
totrace
ClassLoaderUtil.getResource(ClassLoader, String)
增加路径容错功能, support 以 /开头
[Remove]
- remove
PropertiesUtil
, pls use ResourceBundleUtil to resolver properties - remove
ReflectException
no use method - remove
HttpMethodType
- remove
DateFormatUtil
- remove
ClassUtil
Class<?> loadClass(String className) method
- move URIUtil
String decodeISO88591String(String str,String charsetType)
method tofeilong-servlet
- remove ResourceBundleUtil
Map<String, String> readAllPropertiesToMap(ResourceBundle resourceBundle)
[Fix Bug] 🐛
- none
1.7.2
[Feature] 🆕
ObjectUtil
addT defaultIfNullOrEmpty(final T object,final T defaultValue)
methodConvertUtil
addLocale toLocale(Object locale)
method
[Update]
- use
StringUtils.INDEX_NOT_FOUND
- call
MapUtil.newLinkedHashMap
[Remove]
remove HtmlConstants
remove IteratorUtil
Alphabet
remove BINARY
OCTAL
HEXADECIMAL
BASE64
StringUtil
- remove
String substring(final String text,String beginString)
- remove
String substring(final String text,String beginString,int shift)
PropertiesUtil
remove Map<String, String> toMap(Properties properties)
method
[Fix Bug] 🐛
- if jsonString is like
[{'name':'get'},{'name':'set'}]
,when call jsonUtil format exception - CollectionsUtil
Map<String, BigDecimal> sum(Collection<O> objectCollection,String[] propertyNames,Predicate<O> includePredicate)
if property value is null exception
1.7.1
[Feature]
- add
FeiLongSuiteTests
- add
BaseParameterizedTest
MapUtil
- add
HashMap<K, V> newHashMap(int expectedSize)
- add
LinkedHashMap<K, V> newLinkedHashMap(int expectedSize)
FieldUtil
- add
List<Field> getAllFieldList(final Class<?> klass,String...excludeFieldNames)
ConvertUtil
- add
Map<K, V> toMap(K key,V value)
- add
Map<String, String> toMap(Properties properties)
- add
Map<K, V> toMap(Map.Entry<K, V>...mapEntrys)
- add
Map<K, V> toMap(Collection<Map.Entry<K, V>> mapEntryCollection)
RegexPattern
- add
TELEPHONE_MUST_AREACODE
[Update]
FieldUtil
- change
Map<String, Object> getAllFieldNameAndValueMap(Object obj,String[] excludeFieldNames)
toMap<String, Object> getAllFieldNameAndValueMap(Object obj,String...excludeFieldNames)
- update
T getFieldValue(Object obj,String fieldName)
ArrayContainsPredicate
- change
ArrayContainsPredicate(String propertyName, Object...propertyValues)
toArrayContainsPredicate(String propertyName, V...propertyValues)
[Remove]
StringUtil
- remove
boolean contains(final CharSequence seq,final CharSequence searchSeq)
- remove
boolean containsIgnoreCase(final CharSequence str,final CharSequence searchStr)
FieldUtil
- remove
Map<String, Object> getAllFieldNameAndValueMap(Object obj)
- remove
List<Field> getAllFieldList(Object obj,String[] excludeFieldNames)
- remove
Field[] getAllFields(Object obj)
- remove
Field[] getAllFields(Class<?> klass)
- remove
Field getDeclaredField(Class<?> klass,String fieldName)
- remove
void setFieldValue(Object owner,String fieldName,Object value)
- remove
T getStaticFieldValue(String className,String fieldName)
- remove
T getClassFieldValue(Class<?> ownerClass,String fieldName,Object object)
[Deprecated]
PropertiesUtil
- make
Map<String, String> toMap(Properties properties)
@deprecated
[Fix Bug] 🐛
- none