Skip to content

Miscellaneous

Bogdan T edited this page Jan 28, 2024 · 5 revisions

Tuples

It is a convenient feature presented in a kotlin lang, that I decided to add. f you need to have a variable containing 2 or 3 objects and the methods to work with, that will use the classes of those objects as return types and parameters, then its your choice.

There are 2 types of tuples added:

  • Nullable
  • NotNull, or Record

The difference between them is only about the lombok annotations used.

You can find the list of tuple classes here

Registry

This feature can help you to work with data that needs to have an id and track when it is registered and when it is removed.

It basically replaces the HashMap<> usage in that case

How to use it:

First you need to create the class implementing Registrable.

Then, where it is more convenient for you, add field with type Registry < Generic of class you created earlier >

Input

IN DEVELOPMENT

Clone this wiki locally