Package io.activej.inject
Record Class Injector.ScopeLocalData
java.lang.Object
java.lang.Record
io.activej.inject.Injector.ScopeLocalData
- Enclosing class:
- Injector
-
Constructor Summary
ConstructorsConstructorDescriptionScopeLocalData(Scope[] scope, Map<Key<?>, Binding<?>> bindings, Map<Key<?>, CompiledBinding<?>> compiledBindings, Map<Key<?>, Integer> slotMapping, int slots, CompiledBinding<?>[] eagerSingletons) Creates an instance of aScopeLocalDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbindings()Returns the value of thebindingsrecord component.Map<Key<?>,CompiledBinding<?>> Returns the value of thecompiledBindingsrecord component.CompiledBinding<?>[]Returns the value of theeagerSingletonsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Scope[]scope()Returns the value of thescoperecord component.Returns the value of theslotMappingrecord component.intslots()Returns the value of theslotsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScopeLocalData
public ScopeLocalData(Scope[] scope, Map<Key<?>, Binding<?>> bindings, Map<Key<?>, CompiledBinding<?>> compiledBindings, Map<Key<?>, Integer> slotMapping, int slots, CompiledBinding<?>[] eagerSingletons) Creates an instance of aScopeLocalDatarecord class.- Parameters:
scope- the value for thescoperecord componentbindings- the value for thebindingsrecord componentcompiledBindings- the value for thecompiledBindingsrecord componentslotMapping- the value for theslotMappingrecord componentslots- the value for theslotsrecord componenteagerSingletons- the value for theeagerSingletonsrecord 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 '=='. -
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
bindings
Returns the value of thebindingsrecord component.- Returns:
- the value of the
bindingsrecord component
-
compiledBindings
Returns the value of thecompiledBindingsrecord component.- Returns:
- the value of the
compiledBindingsrecord component
-
slotMapping
Returns the value of theslotMappingrecord component.- Returns:
- the value of the
slotMappingrecord component
-
slots
public int slots()Returns the value of theslotsrecord component.- Returns:
- the value of the
slotsrecord component
-
eagerSingletons
Returns the value of theeagerSingletonsrecord component.- Returns:
- the value of the
eagerSingletonsrecord component
-