[ 
https://issues.apache.org/jira/browse/NLPCRAFT-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561779#comment-17561779
 ] 

Aaron Radzinski commented on NLPCRAFT-505:
------------------------------------------

What about:
 * NCResult (and its apply() method)
 * {color:#3c91e6}data{color}: 
{color:#9fd356}Map{color}{color:#b7baff}[{color}{color:#ecfc91}String{color}{color:#b7baff},
 Any]{color} is often passes as 'null' in tests and elsewhere...

> Nullable arguments for API methods.
> -----------------------------------
>
>                 Key: NLPCRAFT-505
>                 URL: https://issues.apache.org/jira/browse/NLPCRAFT-505
>             Project: NLPCraft
>          Issue Type: Task
>          Components: Main API
>            Reporter: Sergey Kamov
>            Assignee: Aaron Radzinski
>            Priority: Major
>             Fix For: 1.0.0
>
>
> Maybe better to have Option instead of nullable arguments of API methods  and 
> functions return type.
> Example: 
>  - org.apache.nlpcraft.NCModel#onRejection(org.apache.nlpcraft.NCIntentMatch 
> - nullable, e: NCRejection): NCResult  - nullable result



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to