Skip to content

Instantly share code, notes, and snippets.

@shrijeet
Created October 9, 2013 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrijeet/6897654 to your computer and use it in GitHub Desktop.
Save shrijeet/6897654 to your computer and use it in GitHub Desktop.
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