public class PrimitiveSinkUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
putListTo(com.google.common.hash.PrimitiveSink sink,
List<? extends PrimitiveSinkable> set)
puts the elements of a list into the
PrimitiveSink . |
static void |
putNullableStringTo(com.google.common.hash.PrimitiveSink sink,
CharSequence nullableChars)
puts a nullable String into a primitive sink.
|
static void |
putNullableTo(com.google.common.hash.PrimitiveSink sink,
PrimitiveSinkable nullableObj)
puts a nullable element into a primitive sink.
|
static void |
putSortedSetTo(com.google.common.hash.PrimitiveSink sink,
SortedSet<? extends PrimitiveSinkable> set)
puts the elements of a sorted set into the
PrimitiveSink . |
public static void putNullableStringTo(com.google.common.hash.PrimitiveSink sink, @Nullable CharSequence nullableChars)
sink
- the sink to put the objectnullableChars
- the potentially null string to put in the sinkpublic static void putNullableTo(com.google.common.hash.PrimitiveSink sink, @Nullable PrimitiveSinkable nullableObj)
sink
- the sink to put the objectnullableObj
- the nullable objectpublic static void putSortedSetTo(com.google.common.hash.PrimitiveSink sink, SortedSet<? extends PrimitiveSinkable> set)
PrimitiveSink
. Does not support null
elements. The elements are assumed to be self-delimitating.sink
- set
- public static void putListTo(com.google.common.hash.PrimitiveSink sink, List<? extends PrimitiveSinkable> set)
PrimitiveSink
. Does not support null
elements. The elements are assumed to be self-delimitating.sink
- set
- Copyright © 2015. All rights reserved.