Package jadex.core.impl
Record Class ComponentManager.HandlerInfo
java.lang.Object
java.lang.Record
jadex.core.impl.ComponentManager.HandlerInfo
- Enclosing class:
- ComponentManager
protected static record ComponentManager.HandlerInfo(BiConsumer<? extends Exception,IComponent> handler, boolean exact)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHandlerInfo(BiConsumer<? extends Exception, IComponent> handler, boolean exact) Creates an instance of aHandlerInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexact()Returns the value of theexactrecord component.BiConsumer<? extends Exception,IComponent> handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HandlerInfo
Creates an instance of aHandlerInforecord class.- Parameters:
handler- the value for thehandlerrecord componentexact- the value for theexactrecord 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 '=='. -
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-
exact
public boolean exact()Returns the value of theexactrecord component.- Returns:
- the value of the
exactrecord component
-