Package com.tnsai.context.entity
Record Class EntityResolver.ResolverStatistics
java.lang.Object
java.lang.Record
com.tnsai.context.entity.EntityResolver.ResolverStatistics
- Enclosing interface:
EntityResolver
public static record EntityResolver.ResolverStatistics(int totalEntities, int totalSources, int entitiesWithConflicts, Map<EntityType,Integer> entitiesByType, Map<String,Integer> entitiesBySource)
extends Record
Statistics about the entity resolver.
-
Constructor Summary
ConstructorsConstructorDescriptionResolverStatistics(int totalEntities, int totalSources, int entitiesWithConflicts, Map<EntityType, Integer> entitiesByType, Map<String, Integer> entitiesBySource) Creates an instance of aResolverStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentitiesBySourcerecord component.Returns the value of theentitiesByTyperecord component.intReturns the value of theentitiesWithConflictsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalEntitiesrecord component.intReturns the value of thetotalSourcesrecord component.
-
Constructor Details
-
ResolverStatistics
public ResolverStatistics(int totalEntities, int totalSources, int entitiesWithConflicts, Map<EntityType, Integer> entitiesByType, Map<String, Integer> entitiesBySource) Creates an instance of aResolverStatisticsrecord class.- Parameters:
totalEntities- the value for thetotalEntitiesrecord componenttotalSources- the value for thetotalSourcesrecord componententitiesWithConflicts- the value for theentitiesWithConflictsrecord componententitiesByType- the value for theentitiesByTyperecord componententitiesBySource- the value for theentitiesBySourcerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
totalEntities
public int totalEntities()Returns the value of thetotalEntitiesrecord component.- Returns:
- the value of the
totalEntitiesrecord component
-
totalSources
public int totalSources()Returns the value of thetotalSourcesrecord component.- Returns:
- the value of the
totalSourcesrecord component
-
entitiesWithConflicts
public int entitiesWithConflicts()Returns the value of theentitiesWithConflictsrecord component.- Returns:
- the value of the
entitiesWithConflictsrecord component
-
entitiesByType
Returns the value of theentitiesByTyperecord component.- Returns:
- the value of the
entitiesByTyperecord component
-
entitiesBySource
Returns the value of theentitiesBySourcerecord component.- Returns:
- the value of the
entitiesBySourcerecord component
-