Created
October 9, 2013 07:44
-
-
Save shrijeet/6897654 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.example; | |
import com.google.common.hash.Funnel; | |
import com.google.common.hash.PrimitiveSink; | |
public enum StringFunnel implements Funnel<String> { | |
INSTANCE; | |
@Override | |
public void funnel(String from, PrimitiveSink into) { | |
into.putString(from); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment