Skip to content

Instantly share code, notes, and snippets.

Will Hayworth wsh

Block or report user

Report or block wsh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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;
@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:

You can’t perform that action at this time.