Class DistinctFacet

java.lang.Object
com.loop54.model.response.Facet
com.loop54.model.response.DistinctFacet

public class DistinctFacet extends Facet
This class provides results for a distinct facet. A distinct facet consists of a finite number of options with the number of connected entities as the values. Only entities connected to selected facet options are returned. Or all if none are selected.
  • Constructor Details

    • DistinctFacet

      public DistinctFacet()
  • Method Details

    • getType

      public FacetType getType()
      The type of the facet (as set in the request).
      Specified by:
      getType in class Facet
      Returns:
      Type of the facet.
    • hasValues

      public boolean hasValues()
      Whether or not the facet has any options.
      Specified by:
      hasValues in class Facet
      Returns:
      Whether or not the facet have any options.
    • getItems

      The options found for this facet.
      Returns:
      The options found for this facet.