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

Releases: ifeilong/feilong-core

1.8.6

24 Aug 08:14
Compare
Choose a tag to compare

detail see in 1.8.6 milestone

[Feature] 🆕

  • none

[Update]

  • update some javadoc
  • add some test
  • NumberUtil NumberUtil.getAddValue(Number...) add empty validate fix #236
  • NumberUtil NumberUtil.setScale(BigDecimal, int, RoundingMode) update to public ,fix #233
  • NumberUtil NumberUtil.setScale(BigDecimal, int) update to public ,fix #232
  • ConvertUtil ConvertUtil.toMap(Collection<E>) add null element validate,and will throw IllegalArgumentException, fix #218
  • ConvertUtil ConvertUtil.toMap(Entry<K, V>...) add null element validate,and will throw IllegalArgumentException, fix #217
  • DateUtil 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 use HALF_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

17 Aug 03:28
Compare
Choose a tag to compare

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 to String 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, if RoundingMode is null , will use RoundingMode.HALF_UP instead of DecimalFormat default RoundingMode.HALF_EVEN,see #122

1.8.4

09 Aug 09:35
Compare
Choose a tag to compare

detail see in 1.8.4 milestone

[Feature] 🆕

  • ObjectUtil add boolean isPrimitiveArray(Object object)

[Update]

  • ConvertUtil update String toString(ToStringConfig toStringConfig,final Collection<?> collection) param order to String toString(final Collection<?> collection,ToStringConfig toStringConfig)
  • ConvertUtil update String toString(ToStringConfig toStringConfig,Object...arrays) to String toString(Object[] arrays,ToStringConfig toStringConfig)
  • DateExtensionUtil update String getIntervalForView(Date beginDate) method name to String formatDuration(Date beginDate)
  • DateExtensionUtil update String getIntervalForView(Date beginDate,Date endDate) method name to String formatDuration(Date beginDate,Date endDate)
  • DateExtensionUtil update String getIntervalForView(long spaceMilliseconds) method name to String formatDuration(long spaceMilliseconds)
  • NumberUtil use BigDecimal.ZERO instead of new 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

03 Aug 10:55
Compare
Choose a tag to compare

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 update Calendar toCalendar(Date date) method remove public access Modifiers

[Remove]

  • DateExtensionUtil remove List<Date> getIntervalDayList(Date fromDate,Date toDate) method
  • Formatter remove String format(String[] columnTitles,List<Object[]> dataList)
  • FormatterUtil remove String formatToSimpleTable(String[] columnTitles,List<Object[]> dataList)
  • ResourceBundleUtil remove ResourceBundle getResourceBundleByFileName(String fileName)
  • ResourceBundleUtil remove ResourceBundle getResourceBundle(Reader reader)

[Fix Bug] 🐛

  • AggregateUtil update BigDecimal avg(Collection<O> objectCollection,String propertyName,int scale),when objectCollection is null return right result
  • AggregateUtil update Map<String, BigDecimal> avg(Collection<O> objectCollection,String[] propertyNames,int scale),when objectCollection is null return right result

1.8.2

28 Jul 07:27
Compare
Choose a tag to compare

detail see in 1.8.2 milestone

[Feature] 🆕

  • add SimpleTableFormatter
  • add FormatterUtil
  • CollectionsUtil add boolean addIgnoreNullOrEmpty(final Collection<T> objectCollection,final T element)
  • BeanComparatorUtil add Comparator<T> propertyComparator(String propertyName,List<V> propertyValues,UnknownObjectBehavior unknownObjectBehavior);

[Update]

  • use import static
  • SortUtil update sort(List<O> list,String...propertyNames)
  • SortUtil update T[] sort(T[] arrays,Comparator<? super T> comparator) to T[] sort(T[] arrays,Comparator<T>...comparators)
  • SortUtil update List<O> sort(List<O> list,Comparator<? super O> comparator) to List<O> sort(List<O> list,Comparator<O>...comparators)
  • BeanComparatorUtil Comparator<T> propertyComparator(String propertyName,V...propertyValues) method call propertyComparator(propertyName, toList(propertyValues))

[Remove]

  • SortUtil remove List<O> sort(List<O> list,String propertyName)

[Fix Bug] 🐛

  • SortUtil update Map<K, V> sortByKeyAsc(Map<K, V> map) support null key map to sort

1.8.1

18 Jul 09:24
Compare
Choose a tag to compare

detail see in 1.8.1 milestone

[Feature] 🆕

  • rename StatisticsUtil to AggregateUtil
  • ResourceBundleUtil add T readToAliasBean(String baseName,Class<T> aliasBeanClass)
  • ResourceBundleUtil add Properties readToProperties(String baseName)
  • ResourceBundleUtil change readAllPropertiesToMap method to readToMap
  • BeanUtil add populateAliasBean(T aliasBean,Map<String, ?> aliasAndValueMap)
  • BeanUtil add DynaBean newDynaBean(Map<String, ?> valueMap)

[Update]

  • ResourceBundleUtil update String getValue support Object...arguments param
  • ConvertUtil update Map<String, String> toMap(Properties properties) method ,return treeMap instead of hashMap
  • BeanUtil rename DynaBean createDynaBean to BeanUtil.newDynaBean
  • BeanUtil change populate(T bean,Map<String, ?> properties) param and return type
  • update slf4j-log4j12 dependency

[Remove]

  • ResourceBundleUtil remove getArray(String baseName,String key,String delimiters)
  • ResourceBundleUtil remove getArray(String baseName,String key,String delimiters,Class<T> typeClass)
  • ResourceBundleUtil remove T[] getArray(ResourceBundle resourceBundle,String key,String delimiters,Class<T> typeClass)
  • ResourceBundleUtil remove String[] getArray(ResourceBundle resourceBundle,String key,String delimiters)
  • ResourceBundleUtil remove String getValueWithArguments(ResourceBundle resourceBundle,String key,Object...arguments)
  • ResourceBundleUtil remove String getValueWithArguments(String baseName,String key,Locale locale,Object...arguments)
  • BeanUtil remove DynaBean newDynaBean(Map<String, Class<?>> typeMap,Map<String, Object> valueMap),

[Fix Bug] 🐛

  • none

1.8.0

14 Jul 10:02
Compare
Choose a tag to compare

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

1.7.3

01 Jul 10:54
Compare
Choose a tag to compare

[Feature] 🆕

  • ConvertUtil add Properties toProperties(final Map<String, String> map)
  • ConvertUtil add Map<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]

  1. change some class log level from debug to trace
  2. 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 to feilong-servlet
  • remove ResourceBundleUtil Map<String, String> readAllPropertiesToMap(ResourceBundle resourceBundle)

[Fix Bug] 🐛

  • none

1.7.2

24 Jun 11:50
Compare
Choose a tag to compare

[Feature] 🆕

  • ObjectUtil add T defaultIfNullOrEmpty(final T object,final T defaultValue) method
  • ConvertUtil add Locale 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

18 Jun 14:29
Compare
Choose a tag to compare

[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) to Map<String, Object> getAllFieldNameAndValueMap(Object obj,String...excludeFieldNames)
  • update T getFieldValue(Object obj,String fieldName)

ArrayContainsPredicate

  • change ArrayContainsPredicate(String propertyName, Object...propertyValues) to ArrayContainsPredicate(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