Package | Description |
---|---|
com.google.common.hash |
Hash functions and related structures.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Hasher
A
PrimitiveSink that can compute a hash code after reading the input. |
Modifier and Type | Method and Description |
---|---|
PrimitiveSink |
PrimitiveSink.putBoolean(boolean b)
Puts a boolean into this sink.
|
PrimitiveSink |
PrimitiveSink.putByte(byte b)
Puts a byte into this sink.
|
PrimitiveSink |
PrimitiveSink.putBytes(byte[] bytes)
Puts an array of bytes into this sink.
|
PrimitiveSink |
PrimitiveSink.putBytes(byte[] bytes,
int off,
int len)
Puts a chunk of an array of bytes into this sink.
|
PrimitiveSink |
PrimitiveSink.putBytes(ByteBuffer bytes)
Puts the remaining bytes of a byte buffer into this sink.
|
PrimitiveSink |
PrimitiveSink.putChar(char c)
Puts a character into this sink.
|
PrimitiveSink |
PrimitiveSink.putDouble(double d)
Puts a double into this sink.
|
PrimitiveSink |
PrimitiveSink.putFloat(float f)
Puts a float into this sink.
|
PrimitiveSink |
PrimitiveSink.putInt(int i)
Puts an int into this sink.
|
PrimitiveSink |
PrimitiveSink.putLong(long l)
Puts a long into this sink.
|
PrimitiveSink |
PrimitiveSink.putShort(short s)
Puts a short into this sink.
|
PrimitiveSink |
PrimitiveSink.putString(CharSequence charSequence,
Charset charset)
Puts a string into this sink using the given charset.
|
PrimitiveSink |
PrimitiveSink.putUnencodedChars(CharSequence charSequence)
Puts each 16-bit code unit from the
CharSequence into this sink. |
Modifier and Type | Method and Description |
---|---|
static OutputStream |
Funnels.asOutputStream(PrimitiveSink sink)
Wraps a
PrimitiveSink as an OutputStream , so it is easy to funnel an object to a PrimitiveSink if there is already a way to write the contents of
the object to an OutputStream . |
void |
Funnel.funnel(T from,
PrimitiveSink into)
Sends a stream of data from the
from object into the sink into . |
Copyright © 2010–2017. All rights reserved.