Interface Hit
public interface Hit
Hit
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
Hit hit = Hit.builder()
.id("{id}")
.version(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic HitBuilderbuilder()builder factory method for Hitstatic HitBuildercreate builder for Hit instancecopyDeep()static Hitfactory method to create a deep copy of Hit@NotNull StringgetId()Unique identifier of the Order.The higher the value is, the more relevant the hit is for the search request.@NotNull LongCurrent version of the Order.static Hitof()factory methodstatic Hitfactory method to create a shallow copy HitvoidUnique identifier of the Order.voidsetRelevance(Double relevance) The higher the value is, the more relevant the hit is for the search request.voidsetVersion(Long version) Current version of the Order.static com.fasterxml.jackson.core.type.TypeReference<Hit>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
Unique identifier of the Order.
- Returns:
- id
-
getVersion
Current version of the Order.
- Returns:
- version
-
getRelevance
Double getRelevance()The higher the value is, the more relevant the hit is for the search request.
- Returns:
- relevance
-
setId
Unique identifier of the Order.
- Parameters:
id- value to be set
-
setVersion
Current version of the Order.
- Parameters:
version- value to be set
-
setRelevance
The higher the value is, the more relevant the hit is for the search request.
- Parameters:
relevance- value to be set
-
of
factory method- Returns:
- instance of Hit
-
of
factory method to create a shallow copy Hit- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
Hit copyDeep() -
deepCopy
factory method to create a deep copy of Hit- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Hit- Returns:
- builder
-
builder
create builder for Hit instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withHit
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-