Questions tagged [lombok]
Project Lombok is a tool for reducing boilerplate code in Java through annotations and compile time code generation.
11 questions
15
votes
1
answer
2k
views
Multiplication 128 x 64 bits
I was fooling around with the Collatz sequence a bit and found out that long is only sufficient for starting values below ...
8
votes
1
answer
1k
views
Designing yet another coffee machine, Lombok style
After reading Designing a coffee machine, I decided to implement the same problem as an exercise to get to know Guava and Lombok.
I used the problem statement from the given question:
Design a coffee ...
7
votes
2
answers
582
views
Java - Something similar to Abstract Factory?
I have many repositories stored in a map. User chooses some of them and then a downloading begins. Repository may be one of 4 types (see code below).
...
3
votes
2
answers
357
views
BigRational based on BigIntegers
For Project Euler I've implemented a BigRational. The functionality is rather limited, just things I needed or will probably need soon. The style departs a bit from ...
3
votes
1
answer
183
views
Aggregation on list forEach and maps improvals
I am using a function in a SpringBoot @RestController, with Lombok
This function is an intermediate result that permit me to do an aggregation between two classes.
This 2 classes are:
...
3
votes
1
answer
228
views
ToDoApp - adding users, managing tasks, getting tasks
I've implemented a console ToDo application. I would like to hear some opinions about it, what should I change etc.
About project:
It is intended to manage everyday tasks. Application contains:
...
3
votes
1
answer
285
views
Solving Diophantine equations - reloaded once
Inspired by this question, I was curios, if I could solve it for large n. For n=6209, its fifth power overflows ...
2
votes
1
answer
1k
views
AutoCloseable Lock
Surprisingly, this question has no satisfactory answer. A safe usage of a LockCloseable would be like
...
1
vote
1
answer
243
views
Restricting types not related through inheritance without using instanceOf by creating own class hierarchy
Restricting types not related through inheritance without using instanceOf by creating own class hierarchy. It needs to interact with a key value data store, will ...
0
votes
1
answer
2k
views
Nested pojo java class - What could I make better
I need code review. I've used Lombok and jackson. Static statemts look very "ugly" in Root class. I don't know what I should make with that. Is There another way to create nested classes?
...
0
votes
1
answer
2k
views
Parsing messages with fixed-width fields into Employee objects
I'm writing a application that reads from a queue of messages from a legacy mainframe system.
Some characteristics of message in the queue:
Message from the Q is always fixed length plain text : 64 ...