commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SANDBOX-493) Change (R) StringMetric.compare(CS left, CS right) to "apply" so that it is consistent with BiFunction.
Date Tue, 03 Mar 2015 12:50:04 GMT

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

Benedikt Ritter commented on SANDBOX-493:
-----------------------------------------

Hello Jonathan,

it's better not to mix up issues. Let's first just change the interface to apply. We can upgrade
to Java 8 (and maybe discuss if we want to do it) in a separate issue.

Benedikt

> Change (R) StringMetric.compare(CS left, CS right) to "apply" so that it is consistent
with BiFunction.
> -------------------------------------------------------------------------------------------------------
>
>                 Key: SANDBOX-493
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-493
>             Project: Commons Sandbox
>          Issue Type: Improvement
>          Components: Commons Text
>            Reporter: Jonathan Baker
>            Priority: Minor
>
> Whenever commons-text supports Java 8, StringMetric<R> should extend BiFunction<CharSequence,
CharSequence, R>.  Renaming "compare" to "apply" now will make that transition smoother
later.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message