This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Optional; | |
import java.util.Set; | |
import java.util.function.Function; | |
import java.util.regex.Matcher; | |
import java.util.stream.Collectors; | |
import com.google.common.collect.ImmutableList; | |
import com.google.common.collect.ImmutableMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ಠ_ಠ(new IOException("Disk blew up.")) | |
... | |
public <T extends Throwable> void ಠ_ಠ(T exception) throws T{ | |
throw exception; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.impressiveinteractive.playground; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Optional; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.rules.ExpectedException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.function.Consumer; | |
import java.util.function.Function; | |
import java.util.function.Supplier; | |
public class UtilException<E extends Exception> { | |
private static final UtilException INSTANCE = new UtilException(); | |
@SuppressWarnings("unchecked") | |
public static <E extends Exception> UtilException<E> create() throws E { | |
return INSTANCE; |
NewerOlder