Record Class AlgorithmInventoryService.AlgorithmInventory
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.autoconfig.inventory.AlgorithmInventoryService.AlgorithmInventory
- Enclosing class:
AlgorithmInventoryService
-
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmInventory(Map<Class<?>, Collection<Class<?>>> componentsByType, Map<String, Class<?>> componentByName, Map<String, String> aliases, Map<String, AlgorithmComponentFactory> factories, List<ParameterProvider> paramProviders) Creates an instance of aAlgorithmInventoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.Get all detected algorithm componentsReturns the value of thecomponentByNamerecord component.Map<Class<?>, Collection<Class<?>>> Returns the value of thecomponentsByTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefactoriesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theparamProvidersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AlgorithmInventory
public AlgorithmInventory(Map<Class<?>, Collection<Class<?>>> componentsByType, Map<String, Class<?>> componentByName, Map<String, String> aliases, Map<String, AlgorithmComponentFactory> factories, List<ParameterProvider> paramProviders) Creates an instance of aAlgorithmInventoryrecord class.- Parameters:
componentsByType- the value for thecomponentsByTyperecord componentcomponentByName- the value for thecomponentByNamerecord componentaliases- the value for thealiasesrecord componentfactories- the value for thefactoriesrecord componentparamProviders- the value for theparamProvidersrecord component
-
-
Method Details
-
allComponents
Get all detected algorithm components- Returns:
- New set containing a reference to each algorithm component detected
-
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). -
componentsByType
Returns the value of thecomponentsByTyperecord component.- Returns:
- the value of the
componentsByTyperecord component
-
componentByName
Returns the value of thecomponentByNamerecord component.- Returns:
- the value of the
componentByNamerecord component
-
aliases
Returns the value of thealiasesrecord component.- Returns:
- the value of the
aliasesrecord component
-
factories
Returns the value of thefactoriesrecord component.- Returns:
- the value of the
factoriesrecord component
-
paramProviders
Returns the value of theparamProvidersrecord component.- Returns:
- the value of the
paramProvidersrecord component
-