Multi-threading represents a very intriguing topic, even after years of research and development for high quality, robust, and efficient software. With equal emphasis on hardware improvements and the software that runs on it – we have newer paradigms for parallelism. The most important yet basic concepts are the ones which I present here. I then explain the intricacies of multi-threading in the Java programming language. Some of these are newer features and supported only from the Java Platform Standard Edition 5.0. Let us start with a quick overview and understanding of the core concepts.
Tag: java
Underscores in Numeric Literals
Concurrency: Java Futures and Kotlin Coroutines
POJO, equals, hashcode
How to simplify developing of pojo classes?
Problems:
pojoclass is simple class with members, getters, setters. To keep test coverage more 80% we should develop tests forpojoclasses. But it is a ridiculous.- do not forget to add new members to
equalsandhashcodemethods.
Decisions:
- Lombok. We have to type just members of class and use annotations. But there are problems:
- final members without initialization
- there are conflicts in annotationProcessor
- AutoValue. by Google.
- complicated to use
- generate child class
- Kotlin data classes.
- by Google
- no problems in annotationProcessor
- we use Kotlin!!!