Record Class LayoutEvent.Trace
java.lang.Object
java.lang.Record
dev.pfaff.altargui.debug.events.LayoutEvent.Trace
- All Implemented Interfaces:
Event
,LayoutEvent
,WidgetStateEvent
,dev.pfaff.log4truth.format.AppendTo
- Enclosing interface:
LayoutEvent
public static record LayoutEvent.Trace(long key, boolean needed)
extends Record
implements LayoutEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.pfaff.log4truth.format.AppendTo
dev.pfaff.log4truth.format.AppendTo.OfString
Nested classes/interfaces inherited from interface dev.pfaff.altargui.debug.events.LayoutEvent
LayoutEvent.Scissor, LayoutEvent.Stencil, LayoutEvent.Trace
-
Constructor Summary
ConstructorsConstructorDescriptionTrace
(long key, boolean needed) Creates an instance of aTrace
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
key()
Returns the value of thekey
record component.boolean
needed()
Returns the value of theneeded
record component.toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.pfaff.log4truth.format.AppendTo
length
Methods inherited from interface dev.pfaff.altargui.debug.events.LayoutEvent
appendTo
-
Constructor Details
-
Trace
public Trace(long key, boolean needed) Creates an instance of aTrace
record class.- Parameters:
key
- the value for thekey
record componentneeded
- the value for theneeded
record component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecompare
method from their corresponding wrapper classes. -
key
public long key()Returns the value of thekey
record component.- Specified by:
key
in interfaceLayoutEvent
- Returns:
- the value of the
key
record component
-
needed
public boolean needed()Returns the value of theneeded
record component.- Specified by:
needed
in interfaceLayoutEvent
- Returns:
- the value of the
needed
record component
-