You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by gi...@apache.org on 2023/02/06 08:33:54 UTC
[groovy-dev-site] branch asf-site updated: 2023/02/06 08:33:51: Generated dev website from groovy-website@b800ec2
This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-dev-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new f4444ee 2023/02/06 08:33:51: Generated dev website from groovy-website@b800ec2
f4444ee is described below
commit f4444eefb6c45147a2137114f830b176602467c6
Author: jenkins <bu...@apache.org>
AuthorDate: Mon Feb 6 08:33:51 2023 +0000
2023/02/06 08:33:51: Generated dev website from groovy-website@b800ec2
---
blog/comparators-and-sorting-in-groovy.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/blog/comparators-and-sorting-in-groovy.html b/blog/comparators-and-sorting-in-groovy.html
index 9647ce8..7eacbc1 100644
--- a/blog/comparators-and-sorting-in-groovy.html
+++ b/blog/comparators-and-sorting-in-groovy.html
@@ -56,7 +56,7 @@
</div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='/blog/'>Blog index</a></li><li class='active'><a href='#doc'>Comparators and Sorting in Groovy</a></li><li><a href='#_the_java_comparator_story_recap' class='anchor-link'>The Java comparator story recap</a></li><li><a href='#_the_groovy_comparator_story' class='anchor-link'>The Groovy comparator story</a></li><li><a href='#_mixi [...]
<div class="sectionbody">
<div class="paragraph">
-<p><span class="image"><img src="https://blogs.apache.org/groovy/mediaresource/2eb621f3-0419-437e-950b-0c9e5e15804e" alt="Cher" width="200"></span>
+<p><span class="image right"><img src="https://blogs.apache.org/groovy/mediaresource/2eb621f3-0419-437e-950b-0c9e5e15804e" alt="Cher" width="179" height="179"></span>
This blog post is inspired by the Comparator examples in the excellent <em>Collections Refuelled</em> <a href="https://www.youtube.com/watch?v=q6zF3vf114M&t=13s">talk</a> and <a href="https://blogs.oracle.com/java/post/collections-refueled">blog</a> by Stuart Marks. That blog, from 2017, highlights improvements in the Java collections library in Java 8 and 9 including numerous Comparator improvements. It is now 5 years old but still highly recommended for anyone using the Java collec [...]
</div>
<div class="paragraph">
@@ -71,7 +71,7 @@ This blog post is inspired by the Comparator examples in the excellent <em>Colle
<h2 id="_the_java_comparator_story_recap">The Java comparator story recap</h2>
<div class="sectionbody">
<div class="paragraph">
-<p><span class="image right"><img src="img/JavaLogo.png" alt="Java logo" width="120"></span>
+<p><span class="image right"><img src="img/JavaLogo.png" alt="Java logo" width="95" height="128"></span>
Our <code>Celebrity</code> class if we wrote it in Java would look something like:</p>
</div>
<div class="listingblock">
@@ -230,7 +230,7 @@ is the same as previously.</p>
<h2 id="_the_groovy_comparator_story">The Groovy comparator story</h2>
<div class="sectionbody">
<div class="paragraph">
-<p><span class="image right"><img src="img/groovy_logo.png" alt="Groovy logo" width="150"></span>
+<p><span class="image right"><img src="img/groovy_logo.png" alt="Groovy logo" width="180" height="90"></span>
At about the same time that Java was evolving its comparator story Groovy added some complementary features to tackle many of the same problems. We’ll look at some of those features and also how the JDK improvements we saw above features can be used instead if preferred.</p>
</div>
<div class="paragraph">