Interface FacetResults


public interface FacetResults
FacetResults
Example to create an instance using the builder pattern

     FacetResults facetResults = FacetResults.builder()
             ./^[a-z].*$/(/^[a-z].*$/Builder -> /^[a-z].*$/Builder)
             .build()
 
  • Method Details

    • values

      @NotNull @Valid @NotNull @Valid Map<String,FacetResult> values()
      Returns:
      map of the pattern property values
    • setValue

      void setValue(String key, FacetResult value)
      set pattern property
      Parameters:
      key - property name
      value - property value
    • of

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

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

      @Nullable static FacetResults deepCopy(@Nullable FacetResults template)
      factory method to create a deep copy of FacetResults
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static FacetResultsBuilder builder()
      builder factory method for FacetResults
      Returns:
      builder
    • builder

      static FacetResultsBuilder builder(FacetResults template)
      create builder for FacetResults instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withFacetResults

      default <T> T withFacetResults(Function<FacetResults,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<FacetResults> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference