Interface RangeFacetResult

All Superinterfaces:
FacetResult

public interface RangeFacetResult extends FacetResult
RangeFacetResult
Example to create an instance using the builder pattern

     RangeFacetResult rangeFacetResult = RangeFacetResult.builder()
             .plusRanges(rangesBuilder -> rangesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getRanges

      @NotNull @Valid @NotNull @Valid List<FacetRange> getRanges()
      Returns:
      ranges
    • setRanges

      void setRanges(FacetRange... ranges)
      set ranges
      Parameters:
      ranges - values to be set
    • setRanges

      void setRanges(List<FacetRange> ranges)
      set ranges
      Parameters:
      ranges - values to be set
    • of

      static RangeFacetResult of()
      factory method
      Returns:
      instance of RangeFacetResult
    • of

      static RangeFacetResult of(RangeFacetResult template)
      factory method to create a shallow copy RangeFacetResult
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of RangeFacetResult
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static RangeFacetResultBuilder builder()
      builder factory method for RangeFacetResult
      Returns:
      builder
    • builder

      static RangeFacetResultBuilder builder(RangeFacetResult template)
      create builder for RangeFacetResult instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withRangeFacetResult

      default <T> T withRangeFacetResult(Function<RangeFacetResult,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<RangeFacetResult> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference