DurchflusstabelleFactory - GroovyClassLoader-Demo





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

9
Date Submitted Wed. Dec. 27th, 2006 9:40 AM
Revision 1
Scripter bertheymans
Tags Java | List | Set | uniqueness
Comments 2 comments
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.
6
Date Submitted Thu. Feb. 8th, 2007 8:26 AM
Revision 1
Helper glaforge
Tags grid | groovy | jgroups
Comments 0 comments
Using a JGroups ReplicatedHashtable from Groovy
6
Date Submitted Fri. Feb. 9th, 2007 7:36 AM
Revision 1
Helper glaforge
Tags groovy
Comments 0 comments
Recursively iterate over folders and files to check for differences.
1
Date Submitted Sun. Mar. 4th, 2007 12:53 PM
Revision 1
Helper BerndSchiffer
Tags dsl | groovy | properties
Comments 0 comments
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.
7
Date Submitted Thu. Mar. 22nd, 2007 4:30 PM
Revision 1
Helper glaforge
Tags google | groovy
Comments 1 comments
Using the SwingX JXMapViewer and using a special tile factory to retrieve Google Maps tiles, from a Groovy SwingBuilder.
1
Date Submitted Thu. Apr. 12th, 2007 11:23 AM
Revision 1
Beginner vbuskirk
Tags dsl | FSM | groovy | Machines | State
Comments 1 comments
/**
* GOAL: Write a quick-and-dirty DSL in Groovy that emulates Bruce Tate's
* example "acts_as_statemachine" Ruby code at
* http://www-128.ibm.com/developerworks/java/library/j-cb03137/index.html,
* within 20 minutes or less (i.e. steer clear of MOP-magic engineering ;).
*
* For more context, see the Apr'07 "Symbols" thread on the groovy-user mailing
* list.
*/
2
Date Submitted Thu. Apr. 12th, 2007 1:42 PM
Revision 1
Helper esumerfd
Tags dsl | FSM | groovy | Machines | State
Comments 1 comments
Try to create a DSL for a finite state machine.

Inspired by Chris vanBuskirk version on this site and the Ruby article at

http://www-128.ibm.com/developerworks/java/library/j-cb03137/index.html
1
Date Submitted Fri. Apr. 13th, 2007 11:50 AM
Revision 1
Helper BerndSchiffer
Tags conway | groovy
Comments 0 comments
Conway's Game of Life - a solution for GroovyQuiz.com. You can download all of the sources and an executable jar.
2
Date Submitted Sun. Apr. 29th, 2007 9:58 PM
Revision 1
Helper esumerfd
Tags "Sieve | Eratosthenes" | groovy | of | primes
Comments 0 comments
A possible implementation of the Sieve of Eratosthenes for generating prime numbers below some limit.
5
Date Submitted Sun. Apr. 29th, 2007 10:02 PM
Revision 1
Helper esumerfd
Tags "Sieve | Eratosthenes" | groovy | of | primes
Comments 0 comments
Generate prime numbers blow some limit using the Sieve of Eratosthenes algorithm. This snippet uses some object abstractions to simplify the algorithm.