Immutables: how to customize the generated classes

In a previous post we’ve seen a brief introduction to the Immutables library and its main features. With a few annotations we can automatically generate immutable classes out-of-the-box. Such immutable classes provide a whole range of useful characteristics that make them the ideal means to represent a resource’s state in an application. In this post we’ll see how to customize the classes generated by Immutables, with special regard to classes’ names and checks on data. […]

Introduction to the Immutables library

The Immutables library is a very powerful and interesting library, focused on easily creating immutable object classes with few annotations. In this introduction to the Immutables library we’ll show the basic features of this library and how to get the most out of them. The project We are going to create a simple maven project with just two dependencies: the immutables library junit5 (for testing purposes) We won’t use any frameworks in this demo. Just […]