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 07:35:05 GMT

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

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

Go for it! IMHO we can even update to Java 8 and make StringMetric extend java.util.function.BiFunction.
Java 7 is almost EOL...

> 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