Module org.pdfsam.eventstudio
Package org.pdfsam.eventstudio
Record Class Listeners.DefaultListenerWrapper
java.lang.Object
java.lang.Record
org.pdfsam.eventstudio.Listeners.DefaultListenerWrapper
- All Implemented Interfaces:
Listeners.ListenerWrapper
- Enclosing class:
Listeners
private static record Listeners.DefaultListenerWrapper(Listener wrapped)
extends Record
implements Listeners.ListenerWrapper
Listener wrapper around an explicitly defined
Listener-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDefaultListenerWrapper(Listener wrapped) Creates an instance of aDefaultListenerWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidfinal StringtoString()Returns a string representation of this record class.wrapped()Returns the value of thewrappedrecord component.
-
Field Details
-
wrapped
The field for thewrappedrecord component.
-
-
Constructor Details
-
DefaultListenerWrapper
Creates an instance of aDefaultListenerWrapperrecord class.- Parameters:
wrapped- the value for thewrappedrecord component
-
-
Method Details
-
onEvent
- Specified by:
onEventin interfaceListeners.ListenerWrapper
-
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). -
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. -
wrapped
Returns the value of thewrappedrecord component.- Returns:
- the value of the
wrappedrecord component
-