Questions tagged [lombok]

Project Lombok is a tool for reducing boilerplate code in Java through annotations and compile time code generation.

0
votes
1answer
302 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 ...
3
votes
1answer
117 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: ...
1
vote
0answers
75 views

Sorted set a Queue

I needed a data structure offering both poll returning the smallest element and fast contains. A ...
1
vote
0answers
49 views

Manager for a changeable controller

In my program I have a Controller that is sometimes changed and Views should react to that changed. I created a simple manager in order to accomplish this. It works by holding a list of all views ...
1
vote
1answer
493 views

AutoCloseable Lock

Surprisingly, this question has no satisfactory answer. A safe usage of a LockCloseable would be like ...
1
vote
1answer
173 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 ...
7
votes
2answers
571 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). ...
7
votes
1answer
767 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 ...
3
votes
1answer
231 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 ...
3
votes
2answers
250 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 ...
15
votes
1answer
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 ...