com.netflix.zeno.hash
Class HashOrderDependent
java.lang.Object
com.netflix.zeno.hash.HashOrderDependent
- All Implemented Interfaces:
- HashAlgorithm
public class HashOrderDependent
- extends java.lang.Object
- implements HashAlgorithm
Implements hashing algorithm which is order dependent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HashOrderDependent
public HashOrderDependent()
write
public void write(char b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(boolean b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(long b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(float b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(double b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(java.lang.String b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(char[] b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(boolean[] b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(short[] b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(int[] b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(long[] b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(float[] b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
write
public void write(double[] b)
throws java.io.IOException
- Specified by:
write
in interface HashAlgorithm
- Throws:
java.io.IOException
bytes
public byte[] bytes()
- Specified by:
bytes
in interface HashAlgorithm
- Returns:
- the hash of the previously written entities