Skip to content

Instantly share code, notes, and snippets.

View tiagofmcosta's full-sized avatar

Tiago Costa tiagofmcosta

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tiagofmcosta on github.
  • I am tiagofmcosta (https://keybase.io/tiagofmcosta) on keybase.
  • I have a public key ASA0h4EtkfGsodg4UiCHVsi0CciZq6oxKqo6Q9kcl5oxcwo

To claim this, I am signing this object:

@tiagofmcosta
tiagofmcosta / GenericBuilder.java
Created February 23, 2018 00:10
Implementation of the Builder pattern in Java without repeating code
package com.example.util;
import java.util.ArrayList;
import java.util.List;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Supplier;
@SuppressWarnings("unused")
public class GenericBuilder<T> {