An Introduction to AutoValue - Ryan Harter
Value types in Java are hard. Well, not hard, but tedious. Google's AutoValue library makes them much easier and has just received the long awaited update that adds the flexibility of extensions.
Value Types in Java
Before we can talk about how great AutoValue is, let's look at the problem it solves: value types.
A value type is simply an immutable objects whose equality is based on property values, as opposed to identity. Think of a Money
object:
Read full article from An Introduction to AutoValue - Ryan Harter
No comments:
Post a Comment