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 aAlgorithmInventory
record class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()
Returns the value of thealiases
record component.Get all detected algorithm componentsReturns the value of thecomponentByName
record component.Map
<Class<?>, Collection<Class<?>>> Returns the value of thecomponentsByType
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefactories
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theparamProviders
record component.final String
toString()
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 aAlgorithmInventory
record class.- Parameters:
componentsByType
- the value for thecomponentsByType
record componentcomponentByName
- the value for thecomponentByName
record componentaliases
- the value for thealiases
record componentfactories
- the value for thefactories
record componentparamProviders
- the value for theparamProviders
record 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 thecomponentsByType
record component.- Returns:
- the value of the
componentsByType
record component
-
componentByName
Returns the value of thecomponentByName
record component.- Returns:
- the value of the
componentByName
record component
-
aliases
Returns the value of thealiases
record component.- Returns:
- the value of the
aliases
record component
-
factories
Returns the value of thefactories
record component.- Returns:
- the value of the
factories
record component
-
paramProviders
Returns the value of theparamProviders
record component.- Returns:
- the value of the
paramProviders
record component
-