Skip to content

Instantly share code, notes, and snippets.

View martiner's full-sized avatar

Martin Caslavsky martiner

  • Brno, Czech Republic
View GitHub Profile
@martiner
martiner / Pokus.java
Created November 11, 2015 15:56
jopt simple value converter
import joptsimple.ValueConverter;
import java.util.HashMap;
import java.util.Map;
import static org.springframework.core.GenericTypeResolver.resolveTypeArgument;
public class Pokus {
public static void main(String... args) {
import java.util.*;
import java.util.concurrent.*;
import java.util.stream.*;
public class TrueStory {
private static final int SLEEP = 1;
private final int count = 10;
private final ExecutorService service = Executors.newFixedThreadPool(count);