Package fr.becpg.repo.web.scripts.search
Record Class SearchFacetCounter.Facet
java.lang.Object
java.lang.Record
fr.becpg.repo.web.scripts.search.SearchFacetCounter.Facet
- Record Components:
field- the propertyvalues- its values
- Enclosing class:
SearchFacetCounter
public static record SearchFacetCounter.Facet(org.alfresco.service.namespace.QName field, List<SearchFacetCounter.FacetValue> values)
extends Record
The values found for one property, the most frequent first.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFacet(org.alfresco.service.namespace.QName field, List<SearchFacetCounter.FacetValue> values) Creates an instance of aFacetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.alfresco.service.namespace.QNamefield()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Field Details
-
Constructor Details
-
Facet
public Facet(org.alfresco.service.namespace.QName field, List<SearchFacetCounter.FacetValue> values) Creates an instance of aFacetrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
field
public org.alfresco.service.namespace.QName field()Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-