On this pages you find a paper as work in progress.
The Java 1.5 release will introduce generic types to Java which have been known in functional programming for quite a while.
The paper presents a Java 1.5 library for parsing xml document structures as defined in DTDs. The library is written in the functional style of parser combinators and it makes extensive use of generic types and function objects.
The paper is based on the paper on algebraic types in Java