public interface Record
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns id of the record.
|
default void |
setId(int id)
Sets id of the record.
|
int getId()
default void setId(int id)
UnsupportedOperationException to guarantee correct
behavior for immutable records utilizing RecordBuilder annotation.
Mutable records that use setters must override this method.id - id of the recordCopyright © 2017, Petr Panteleyev