Record Class Event.InvalidArgument
java.lang.Object
java.lang.Record
net.codecrete.windowsapi.events.Event.InvalidArgument
- Record Components:
argument- the argument namevalue- the argument valuereason- the reason the value is invalid
- All Implemented Interfaces:
Event
- Enclosing interface:
Event
public static record Event.InvalidArgument(String argument, String value, String reason)
extends Record
implements Event
Event notifying that an argument passed to the code generation is invalid.
For arguments with a list type, this event might be raised multiple times.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.codecrete.windowsapi.events.Event
Event.DirectoryCreated, Event.DirectoryDeleted, Event.FileDeleted, Event.InvalidArgument, Event.JavaSourceGenerated -
Constructor Summary
ConstructorsConstructorDescriptionInvalidArgument(String argument, String value, String reason) Creates an instance of aInvalidArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargument()Returns the value of theargumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
InvalidArgument
-
-
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 withObjects::equals(Object,Object). -
argument
-
value
-
reason
-