Package opennlp.tools.cmdline
Record Class ArgumentParser.ArgumentProxy
java.lang.Object
java.lang.Record
opennlp.tools.cmdline.ArgumentParser.ArgumentProxy
- All Implemented Interfaces:
InvocationHandler
- Enclosing class:
- ArgumentParser
private static record ArgumentParser.ArgumentProxy(Map<String,Object> arguments)
extends Record
implements InvocationHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateArgumentProxy(Map<String, Object> arguments) Creates an instance of aArgumentProxyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
arguments
The field for theargumentsrecord component.
-
-
Constructor Details
-
ArgumentProxy
Creates an instance of aArgumentProxyrecord class.- Parameters:
arguments- the value for theargumentsrecord component
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-