Package com.google.caliper.model
Class Host.Builder
- java.lang.Object
-
- com.google.caliper.model.Host.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Host.BuilderaddAllProperties(Map<String,String> properties)Host.BuilderaddProperty(String key, String value)Hostbuild()Host.BuilderhashFunctionForTesting(com.google.common.hash.HashFunction hashFunction)This only exists for tests to induce hash collisions.
-
-
-
Method Detail
-
addProperty
public Host.Builder addProperty(String key, String value)
-
addAllProperties
public Host.Builder addAllProperties(Map<String,String> properties)
-
hashFunctionForTesting
public Host.Builder hashFunctionForTesting(com.google.common.hash.HashFunction hashFunction)
This only exists for tests to induce hash collisions. Only use this in test code as changing the hash function will break persisted objects.
-
build
public Host build()
-
-