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 HitBuilder
builder()
builder factory method for Hitstatic HitBuilder
create builder for Hit instancestatic Hit
factory method to create a deep copy of Hit@NotNull String
getId()
Unique identifier of the Order.The higher the value is, the more relevant the hit is for the search request.@NotNull Long
Current version of the Order.static Hit
of()
factory methodstatic Hit
factory method to create a shallow copy Hitvoid
Unique identifier of the Order.void
setRelevance
(Double relevance) The higher the value is, the more relevant the hit is for the search request.void
setVersion
(Long version) Current version of the Order.static com.fasterxml.jackson.core.type.TypeReference<Hit>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor 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
-
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
-