Uses of Interface
com.google.common.hash.PrimitiveSink
Packages that use PrimitiveSink
-
Uses of PrimitiveSink in com.google.common.hash
Subinterfaces of PrimitiveSink in com.google.common.hashModifier and TypeInterfaceDescriptioninterface
APrimitiveSink
that can compute a hash code after reading the input.Methods in com.google.common.hash that return PrimitiveSinkModifier and TypeMethodDescriptionPrimitiveSink.putBoolean
(boolean b) Puts a boolean into this sink.PrimitiveSink.putByte
(byte b) Puts a byte into this sink.PrimitiveSink.putBytes
(byte[] bytes) Puts an array of bytes into this sink.PrimitiveSink.putBytes
(byte[] bytes, int off, int len) Puts a chunk of an array of bytes into this sink.PrimitiveSink.putBytes
(ByteBuffer bytes) Puts the remaining bytes of a byte buffer into this sink.PrimitiveSink.putChar
(char c) Puts a character into this sink.PrimitiveSink.putDouble
(double d) Puts a double into this sink.PrimitiveSink.putFloat
(float f) Puts a float into this sink.PrimitiveSink.putInt
(int i) Puts an int into this sink.PrimitiveSink.putLong
(long l) Puts a long into this sink.PrimitiveSink.putShort
(short s) Puts a short into this sink.PrimitiveSink.putString
(CharSequence charSequence, Charset charset) Puts a string into this sink using the given charset.PrimitiveSink.putUnencodedChars
(CharSequence charSequence) Puts each 16-bit code unit from theCharSequence
into this sink.Methods in com.google.common.hash with parameters of type PrimitiveSinkModifier and TypeMethodDescriptionstatic OutputStream
Funnels.asOutputStream
(PrimitiveSink sink) Wraps aPrimitiveSink
as anOutputStream
, so it is easy tofunnel
an object to aPrimitiveSink
if there is already a way to write the contents of the object to anOutputStream
.void
Funnel.funnel
(T from, PrimitiveSink into) Sends a stream of data from thefrom
object into the sinkinto
.