You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2016/04/05 11:02:11 UTC
[2/2] cayenne git commit: CAY-2073 Ordering.orderedList methods
CAY-2073 Ordering.orderedList methods
* adding @since to the new API on top of the PR
* release notes
Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/27707018
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/27707018
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/27707018
Branch: refs/heads/master
Commit: 27707018964f76d9bc66c52ed4cef17c7a6f92d9
Parents: 46b4527
Author: Andrus Adamchik <an...@objectstyle.com>
Authored: Tue Apr 5 12:01:22 2016 +0300
Committer: Andrus Adamchik <an...@objectstyle.com>
Committed: Tue Apr 5 12:01:47 2016 +0300
----------------------------------------------------------------------
.../src/main/java/org/apache/cayenne/query/Ordering.java | 5 +++++
docs/doc/src/main/resources/RELEASE-NOTES.txt | 1 +
2 files changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cayenne/blob/27707018/cayenne-server/src/main/java/org/apache/cayenne/query/Ordering.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/main/java/org/apache/cayenne/query/Ordering.java b/cayenne-server/src/main/java/org/apache/cayenne/query/Ordering.java
index bcb5f9e..94f495d 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/query/Ordering.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/query/Ordering.java
@@ -68,6 +68,8 @@ public class Ordering implements Comparator<Object>, Serializable, XMLSerializab
* according the default iteration order of the Orderings list. I.e. each
* Ordering with lower index is more significant than any other Ordering
* with higher index. List being ordered is modified in place.
+ *
+ * @since 4.0
*/
public static <E> List<E> orderedList(List<E> objects, List<? extends Ordering> orderings) {
List<E> newList = new ArrayList<E>(objects);
@@ -327,6 +329,9 @@ public class Ordering implements Comparator<Object>, Serializable, XMLSerializab
Collections.sort(objects, this);
}
+ /**
+ * @since 4.0
+ */
public <E> List<E> orderedList(List<E> objects) {
List<E> newList = new ArrayList<E>(objects);
http://git-wip-us.apache.org/repos/asf/cayenne/blob/27707018/docs/doc/src/main/resources/RELEASE-NOTES.txt
----------------------------------------------------------------------
diff --git a/docs/doc/src/main/resources/RELEASE-NOTES.txt b/docs/doc/src/main/resources/RELEASE-NOTES.txt
index 3721d85..16d5454 100644
--- a/docs/doc/src/main/resources/RELEASE-NOTES.txt
+++ b/docs/doc/src/main/resources/RELEASE-NOTES.txt
@@ -19,6 +19,7 @@ CAY-2060 Replace Query objects in DataMap with query descriptors
CAY-2062 MappedSelect and MappedExec fluent query API
CAY-2063 ProcedureCall fluent query API
CAY-2065 Pluggable serialization and connectivity layers for ROP
+CAY-2073 Ordering.orderedList methods
Bug Fixes: