Package com.google.common.hash
Interface PrimitiveSink
-
- All Known Subinterfaces:
Hasher
@Beta @Deprecated(since="2022-12-01") public interface PrimitiveSink
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023An object which can receive a stream of primitive values.- Since:
- 12.0 (in 11.0 as
Sink)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description PrimitiveSinkputBoolean(boolean b)Deprecated.Puts a boolean into this sink.PrimitiveSinkputByte(byte b)Deprecated.Puts a byte into this sink.PrimitiveSinkputBytes(byte[] bytes)Deprecated.Puts an array of bytes into this sink.PrimitiveSinkputBytes(byte[] bytes, int off, int len)Deprecated.Puts a chunk of an array of bytes into this sink.PrimitiveSinkputChar(char c)Deprecated.Puts a character into this sink.PrimitiveSinkputDouble(double d)Deprecated.Puts a double into this sink.PrimitiveSinkputFloat(float f)Deprecated.Puts a float into this sink.PrimitiveSinkputInt(int i)Deprecated.Puts an int into this sink.PrimitiveSinkputLong(long l)Deprecated.Puts a long into this sink.PrimitiveSinkputShort(short s)Deprecated.Puts a short into this sink.PrimitiveSinkputString(java.lang.CharSequence charSequence)Deprecated.Use {PrimitiveSink#putUnencodedChars} instead.PrimitiveSinkputString(java.lang.CharSequence charSequence, java.nio.charset.Charset charset)Deprecated.Puts a string into this sink using the given charset.PrimitiveSinkputUnencodedChars(java.lang.CharSequence charSequence)Deprecated.Puts each 16-bit code unit from theCharSequenceinto this sink.
-
-
-
Method Detail
-
putByte
PrimitiveSink putByte(byte b)
Deprecated.Puts a byte into this sink.- Parameters:
b- a byte- Returns:
- this instance
-
putBytes
PrimitiveSink putBytes(byte[] bytes)
Deprecated.Puts an array of bytes into this sink.- Parameters:
bytes- a byte array- Returns:
- this instance
-
putBytes
PrimitiveSink putBytes(byte[] bytes, int off, int len)
Deprecated.Puts a chunk of an array of bytes into this sink.bytes[off]is the first byte written,bytes[off + len - 1]is the last.- Parameters:
bytes- a byte arrayoff- the start offset in the arraylen- the number of bytes to write- Returns:
- this instance
- Throws:
java.lang.IndexOutOfBoundsException- ifoff < 0oroff + len > bytes.lengthorlen < 0
-
putShort
PrimitiveSink putShort(short s)
Deprecated.Puts a short into this sink.
-
putInt
PrimitiveSink putInt(int i)
Deprecated.Puts an int into this sink.
-
putLong
PrimitiveSink putLong(long l)
Deprecated.Puts a long into this sink.
-
putFloat
PrimitiveSink putFloat(float f)
Deprecated.Puts a float into this sink.
-
putDouble
PrimitiveSink putDouble(double d)
Deprecated.Puts a double into this sink.
-
putBoolean
PrimitiveSink putBoolean(boolean b)
Deprecated.Puts a boolean into this sink.
-
putChar
PrimitiveSink putChar(char c)
Deprecated.Puts a character into this sink.
-
putString
@Deprecated PrimitiveSink putString(java.lang.CharSequence charSequence)
Deprecated.Use {PrimitiveSink#putUnencodedChars} instead. This method is scheduled for removal in Guava 16.0.Puts a string into this sink.
-
putUnencodedChars
PrimitiveSink putUnencodedChars(java.lang.CharSequence charSequence)
Deprecated.Puts each 16-bit code unit from theCharSequenceinto this sink.- Since:
- 15.0 (since 11.0 as putString(CharSequence))
-
putString
PrimitiveSink putString(java.lang.CharSequence charSequence, java.nio.charset.Charset charset)
Deprecated.Puts a string into this sink using the given charset.
-
-