Skip to content

Instantly share code, notes, and snippets.

Will Hayworth wsh

View GitHub Profile
@wsh
wsh / keybase.md
Created Aug 2, 2016
keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am wsh on github.
  • I am wsh (https://keybase.io/wsh) on keybase.
  • I have a public key ASBOeHd55Uy-7WPwNdthF_FSbTxZy2AelNiRSy79KMyzkwo

To claim this, I am signing this object:

@wsh
wsh / OptionalMap.java
Last active Dec 25, 2015
Break the Map interface to introduce null-safety via Guava's Optional. Does not allow null entries (surprise).
View OptionalMap.java
import java.util.Collection;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import com.google.common.base.Optional;
import com.google.common.collect.Maps;
public class OptionalMap<K, V> {
private final Map<K, V> map;
You can’t perform that action at this time.