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 TypeInterfaceDescriptioninterfaceAPrimitiveSinkthat can compute a hash code after reading the input.Classes in com.google.common.hash that implement PrimitiveSinkModifier and TypeClassDescription(package private) classAbstractHasherthat handles converting primitives to bytes using a scratchByteBufferand streams all bytes to a sink to compute the hash.(package private) classAn abstract implementation ofHasher, which only requires subtypes to implementHasher.putByte(byte).private final classIn-memory stream-based implementation of Hasher.(package private) classA convenience base class for implementors ofHasher; handles accumulating data until an entire "chunk" (of implementation-dependent length) is ready to be hashed.private final classHasher that updates a checksum.(package private) static final classprivate static final classHasher that updates aMac(message authentication code).private static final classHasher that updates a message digest.private static final classprivate static final classprivate static final classFields in com.google.common.hash declared as PrimitiveSinkMethods 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 theCharSequenceinto this sink.Methods in com.google.common.hash with parameters of type PrimitiveSinkModifier and TypeMethodDescriptionstatic OutputStreamFunnels.asOutputStream(PrimitiveSink sink) Wraps aPrimitiveSinkas anOutputStream, so it is easy tofunnelan object to aPrimitiveSinkif there is already a way to write the contents of the object to anOutputStream.voidFunnel.funnel(T from, PrimitiveSink into) Sends a stream of data from thefromobject into the sinkinto.voidFunnels.ByteArrayFunnel.funnel(byte[] from, PrimitiveSink into) voidFunnels.IntegerFunnel.funnel(Integer from, PrimitiveSink into) voidFunnels.LongFunnel.funnel(Long from, PrimitiveSink into) voidFunnels.SequentialFunnel.funnel(Iterable<? extends E> from, PrimitiveSink into) voidFunnels.StringCharsetFunnel.funnel(CharSequence from, PrimitiveSink into) voidFunnels.UnencodedCharsFunnel.funnel(CharSequence from, PrimitiveSink into) Constructors in com.google.common.hash with parameters of type PrimitiveSink