DurchflusstabelleFactory - GroovyClassLoader-Demo
9
A utility class that gets the MD5 hash of an input stream. Also includes a method for converting byte array to hex-formatted string.
8
Read a eight bytes in little endian order from the given InputStream and create a long out of them.
8
If you only want to compare yyyy-mm-dd you can use the java.sql.Date class, the valueOf method does the trick. It's perfectly safe as the sql Date class is a subclass of the Date class.
Check out the docs here for more detail.
enjoy
Check out the docs here for more detail.
enjoy
9
This is a very convenient way to remove all doubles from a List in Java. The only prerequisite is that the elements in the list have proper equals and hashCode methods.
It work by using the constructor of a Set that takes a Collection as an argument.
I poured the snippet in a little program so can run it straight away.
It work by using the constructor of a Set that takes a Collection as an argument.
I poured the snippet in a little program so can run it straight away.
1
This is an example from practice. The domain is a whater flow messure system. I wrote a blog entry where I fully described the evolution of this class - in german.
1
Conway's Game of Life - a solution for GroovyQuiz.com. You can download all of the sources and an executable jar.
2
Answer to a groovier solution to Hamlet D'Arcy's Rot13 algorithm.
3
Answer to a groovier solution to Hamlet D'Arcy's Rot13 algorithm. This is the refactored version with less redundance.
1
WeatherMunger Kata 1 (not DRY)
1
WeatherMunger Kata 1 (not DRY)









