Class DistinctFacet.DistinctFacetItem

java.lang.Object
com.loop54.model.response.DistinctFacet.DistinctFacetItem
Enclosing class:
DistinctFacet

public static class DistinctFacet.DistinctFacetItem extends Object
Represents a facet option found in the result set.
  • Field Details

    • item

      public Object item
    • count

      public int count
      Number of entities belonging to this option.
    • selected

      public boolean selected
      Whether or not this option was marked selected in the request.
  • Constructor Details

    • DistinctFacetItem

      public DistinctFacetItem()
  • Method Details

    • getItem

      public <T> T getItem(Class<T> clazz)
      Gets the facet option as the type provided.
      Type Parameters:
      T - The type of the expected facet value.
      Parameters:
      clazz - Type of the option. Must match the type of the attribute faceted on.
      Returns:
      The facet option as the type provided.