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

Commit

Permalink
upgrade-version-1.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
venusdrogon committed Jul 28, 2016
1 parent 51e1edd commit e64594d
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ feilong-core jar 你可以在这里 https://github.com/venusdrogon/feilong-platf

....
<properties>
<version.feilong-platform>1.8.1</version.feilong-platform>
<version.feilong-platform>1.8.2</version.feilong-platform>
....
</properties>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.feilong.platform</groupId>
<artifactId>parent</artifactId>
<version>1.8.2-SNAPSHOT</version>
<version>1.8.2</version>
</parent>

<artifactId>feilong-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/feilong/core/bean/ConvertUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ public static <T> List<T> toList(T...arrays){
*
* <pre class="code">
*
* public static {@code <K, V>} Map<K, V[]> toArrayValueMap(Map{@code <K, V>} singleValueMap){
* public static {@code <K, V>} Map{@code <K, V[]>} toArrayValueMap(Map{@code <K, V>} singleValueMap){
* Map{@code <K, V[]>} arrayValueMap = newLinkedHashMap(singleValueMap.size());//保证顺序和参数singleValueMap顺序相同
* for (Map.Entry{@code <K, V>} entry : singleValueMap.entrySet()){
* arrayValueMap.put(entry.getKey(), toArray(entry.getValue()));//注意此处的Value不要声明成V,否则会变成Object数组
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/feilong/core/lang/ObjectUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private ObjectUtil(){
*
* <pre class="code">
*
* private void putItemToMap(Map<String, List<Item>> map,String categoryName,Item item){
* private void putItemToMap(Map{@code <String, List<Item>>} map,String categoryName,Item item){
* List{@code <Item>} itemList = map.get(categoryName);
*
* if (isNullOrEmpty(itemList)){
Expand All @@ -117,7 +117,7 @@ private ObjectUtil(){
*
* <pre class="code">
*
* private void putItemToMap(Map<String, List<Item>> map,String categoryName,Item item){
* private void putItemToMap(Map{@code <String, List<Item>>} map,String categoryName,Item item){
* List{@code <Item>} itemList = ObjectUtil.defaultIfNullOrEmpty(map.get(categoryName), new ArrayList{@code <Item>}());
* itemList.add(item);
* map.put(categoryName, itemList);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/feilong/core/util/CollectionsUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public static <O> boolean addAllIgnoreNull(final Collection<O> objectCollection,
*
* <pre class="code">
*
* List<Object[]> dataList = new ArrayList<>();
* List{@code <Object[]>} dataList = new ArrayList{@code <>}();
* for (T bean : iterable){
* Object[] objectArray = toObjectArray(bean, propertyNameList);
* if (isNotNullOrEmpty(objectArray)){
Expand All @@ -368,7 +368,7 @@ public static <O> boolean addAllIgnoreNull(final Collection<O> objectCollection,
*
* <pre class="code">
*
* List<Object[]> dataList = new ArrayList<>();
* List{@code <Object[]>} dataList = new ArrayList{@code <>}();
* for (T bean : iterable){
* addIgnoreNullOrEmpty(dataList, toObjectArray(bean, propertyNameList));
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,22 @@ public boolean evaluate(V propertyValue){
*
* <tr valign="top" style="background-color:#eeeeff">
* <td>{@link Criterion#LESS}</td>
* <td>comparator.compare(valueToCompare, propertyValue) < 0</td>
* <td>comparator.compare(valueToCompare, propertyValue) {@code <} 0</td>
* </tr>
*
* <tr valign="top">
* <td>{@link Criterion#GREATER}</td>
* <td>comparator.compare(valueToCompare, propertyValue) > 0</td>
* <td>comparator.compare(valueToCompare, propertyValue) {@code >} 0</td>
* </tr>
*
* <tr valign="top" style="background-color:#eeeeff">
* <td>{@link Criterion#GREATER_OR_EQUAL}</td>
* <td>comparator.compare(valueToCompare, propertyValue) >= 0</td>
* <td>comparator.compare(valueToCompare, propertyValue) {@code >=} 0</td>
* </tr>
*
* <tr valign="top">
* <td>{@link Criterion#LESS_OR_EQUAL}</td>
* <td>comparator.compare(valueToCompare, propertyValue) <= 0</td>
* <td>comparator.compare(valueToCompare, propertyValue) {@code <=} 0</td>
* </tr>
*
* </table>
Expand Down Expand Up @@ -270,22 +270,22 @@ public static <T, V extends Comparable<? super V>> Predicate<T> comparatorPredic
*
* <tr valign="top" style="background-color:#eeeeff">
* <td>{@link Criterion#LESS}</td>
* <td>comparator.compare(valueToCompare, propertyValue) < 0</td>
* <td>comparator.compare(valueToCompare, propertyValue) {@code <} 0</td>
* </tr>
*
* <tr valign="top">
* <td>{@link Criterion#GREATER}</td>
* <td>comparator.compare(valueToCompare, propertyValue) > 0</td>
* <td>comparator.compare(valueToCompare, propertyValue) {@code >} 0</td>
* </tr>
*
* <tr valign="top" style="background-color:#eeeeff">
* <td>{@link Criterion#GREATER_OR_EQUAL}</td>
* <td>comparator.compare(valueToCompare, propertyValue) >= 0</td>
* <td>comparator.compare(valueToCompare, propertyValue) {@code >=} 0</td>
* </tr>
*
* <tr valign="top">
* <td>{@link Criterion#LESS_OR_EQUAL}</td>
* <td>comparator.compare(valueToCompare, propertyValue) <= 0</td>
* <td>comparator.compare(valueToCompare, propertyValue) {@code <=} 0</td>
* </tr>
*
* </table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@

/**
* (Optional) The name of the column. Defaults to the property or field name.
*
* @return the string
*/
String name() default "";

/**
* (Optional) 排序,数值从小到大排序.
*
* @return the int
*/
int order() default 0;
}
4 changes: 2 additions & 2 deletions src/main/java/com/feilong/tools/formatter/FormatterUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public static final <T> String formatToSimpleTable(Iterable<T> iterable,BeanForm
*
* String[] columnTitles = { "name", "age", "address" };
*
* List<Object[]> list = new ArrayList<>();
* for (int i = 0; i < 5; i++){
* List{@code <Object[]>} list = new ArrayList{@code <>}();
* for (int i = 0; i {@code <} 5; i++){
* list.add(ConvertUtil.toArray("feilong" + i, 18 + i, "shanghai"));
* }
*
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/feilong/tools/jsonlib/JsonUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,10 @@ private static JsonFormatConfig buildJsonFormatConfig(String[] excludes,String[]
*
* <pre class="code">
*
* //查询 >10 的元素
* Predicate<Integer> predicate = new ComparatorPredicate<Integer>(10, ComparatorUtils.<Integer> naturalComparator(), Criterion.LESS);
* //查询{@code >10} 的元素
* Predicate{@code <Integer>} predicate = new ComparatorPredicate{@code <Integer>}(10, ComparatorUtils.{@code <Integer>} naturalComparator(), Criterion.LESS);
*
* List<Integer> result = CollectionsUtil.select(toList(1, 5, 10, 30, 55, 88, 1, 12, 3), predicate);
* List{@code <Integer>} result = CollectionsUtil.select(toList(1, 5, 10, 30, 55, 88, 1, 12, 3), predicate);
* LOGGER.debug(JsonUtil.format(result, 0, 0));
*
* </pre>
Expand Down

0 comments on commit e64594d

Please sign in to comment.