Quantcast
Channel: poetix » octarine
Browsing latest articles
Browse All 5 View Live

Enriching is Easy

Today I’d like to talk about a pattern that as far as I know is unique to Java 8. It makes use of the unusual way Java 8 implements lambdas as single-method interfaces, and the support for default...

View Article


Validation in Octarine

A Record  in Octarine is a heterogeneous map, whose keys carry type information about their values. The only type guarantee you get is that if a Record  contains a Key<T> , then the value pointed...

View Article


Octarine vs Rekord: Design Comparison

Rekord is an excellent Java 7 library by my friend and sometime colleague Samir, which overlaps in several respects with my Java 8 library Octarine. The similarities are due both to a common ancestry...

View Article

Extractors

An Extractor<S, T> may be seen as a partial function from S to T: it can only “extract” a value of type T from a value of type S if such a value (or the material from which one can be created) is...

View Article

What’s New In Octarine

Octarine is now at version 0.5, and has been enhanced with New Stuff: Transformers Transform records (and anything else you have extractors/lenses for) with a fluent mapping DSL. Key<String>...

View Article

Browsing latest articles
Browse All 5 View Live