Groovy Goodness: Getting Extension And BaseName For File And Path
Groovy 5 adds the extension methods getExtension and getBaseName to the File and Path classes. You can invoke them as properties for a File and Path objects. Also the asBoolean method is added. This m
JDriven BlogCombining elements from two Iterable intances into a new List using the interleave method added in Groovy 5:
https://blog.mrhaki.com/2025/10/groovy-goodness-interleaving-elements.html #groovy-lang
#Groovy #Groovy5
Groovy Goodness: Interleaving Elements From Collections
A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.
Messages from mrhaki
Groovy Goodness: Grouping Iterables Using zip And zipAll
A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.
Messages from mrhakiGetting the extension or base name for a File or Path instance in Groovy 5 is easy with new extension methods:
https://blog.mrhaki.com/2025/09/groovy-goodness-getting-extension-and.html #Groovy #Groovy5Since Groovy 5 you can use the name of a named group in a regular expression to access the value easily:
https://blog.mrhaki.com/2025/09/groovy-goodness-accessing-regular.html #Groovy #Groovy5
Groovy Goodness: Accessing Regular Expression Named Groups By Name
A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.
Messages from mrhaki
Groovy Goodness: Get Next And Previous Characters
A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.
Messages from mrhakiGroovy 5 introduces support for operator overloading for classes with different method names using a new AST transformation:
https://blog.mrhaki.com/2025/09/groovy-goodness-map-methods-to-operators.html #Groovy #Groovy5
Groovy Goodness: Map Methods To Operators
A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.
Messages from mrhakiAnother new Groovy 5 language feature is the addition of the logical implication operator ==>. See usage of this operator in the following post:
https://blog.mrhaki.com/2025/09/groovy-goodness-logical-implication.html #Groovy #Groovy5
Groovy Goodness: Logical Implication Operator
A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.
Messages from mrhaki
Groovy Goodness: Create Ascii Bar Charts
A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.
Messages from mrhaki