fixedlength icon indicating copy to clipboard operation
fixedlength copied to clipboard

Support for Java 14 Records

Open mbechto opened this issue 9 months ago • 1 comments

It would be nice to be able to use this library with Java 14 records, for example:

public record LineRecord(
    @FixedField(offset = 1, length = 42)
    String firstStr,
    @FixedField(offset = 43, length = 5)
    String secondStr
) {}

As it is a lot more declarative than defining traditional POJOs & it automatically implements toString, hashCode and equals.

mbechto avatar May 16 '24 13:05 mbechto