com.netflix.zeno.hash
Class HashOrderDependent

java.lang.Object
  extended by 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


Constructor Summary
HashOrderDependent()
           
 
Method Summary
 byte[] bytes()
           
 void write(boolean b)
           
 void write(boolean[] b)
           
 void write(byte[] b)
           
 void write(char b)
           
 void write(char[] b)
           
 void write(double b)
           
 void write(double[] b)
           
 void write(float b)
           
 void write(float[] b)
           
 void write(int[] b)
           
 void write(long b)
           
 void write(long[] b)
           
 void write(short[] b)
           
 void write(java.lang.String b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashOrderDependent

public HashOrderDependent()
Method Detail

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