blob: f7648d762e0773bdb2b41de722d762e8191fc4da [file] [log] [blame]
Andreas Wundsam19dfc1e2014-04-24 19:00:27 -07001package org.projectfloodlight.openflow.types;
2
3/** A hash function that can hash a {@link PrimitiveSinkable}.
4 *
5 * @author Andreas Wundsam <andreas.wundsam@bigswitch.com>
6 * @param <H> - the hash.
7 */
8public interface HashFunc<H extends HashValue<H>> {
9 /** Hash the PrimitivateSinkable with this hash function and return the result */
10 public H hash(PrimitiveSinkable v);
11
12 /** Provide a defined null-hash */
13 public H nullHash();
14}