Andreas Wundsam | 19dfc1e | 2014-04-24 19:00:27 -0700 | [diff] [blame^] | 1 | package 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 | */ |
| 8 | public 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 | } |