Record Class IndexFieldTypeProfileWithUsages
java.lang.Object
java.lang.Record
org.graylog2.indexer.indexset.profile.IndexFieldTypeProfileWithUsages
public record IndexFieldTypeProfileWithUsages(IndexFieldTypeProfile profile, Set<String> usagesInIndexSets)
extends Record
Profile enriched with usage information, fetched from other collections.
-
Constructor Summary
ConstructorsConstructorDescriptionIndexFieldTypeProfileWithUsages(IndexFieldTypeProfile profile, Set<String> usagesInIndexSets) Creates an instance of aIndexFieldTypeProfileWithUsagesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.profile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theusagesInIndexSetsrecord component.
-
Constructor Details
-
IndexFieldTypeProfileWithUsages
public IndexFieldTypeProfileWithUsages(IndexFieldTypeProfile profile, Set<String> usagesInIndexSets) Creates an instance of aIndexFieldTypeProfileWithUsagesrecord class.- Parameters:
profile- the value for theprofilerecord componentusagesInIndexSets- the value for theusagesInIndexSetsrecord component
-
-
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). -
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
usagesInIndexSets
Returns the value of theusagesInIndexSetsrecord component.- Returns:
- the value of the
usagesInIndexSetsrecord component
-