Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReplacedWordProvider のメソッドの戻り値のReplacedWordを内部クラスにする #21

Closed
mygreen opened this issue Dec 17, 2016 · 0 comments
Milestone

Comments

@mygreen
Copy link
Owner

mygreen commented Dec 17, 2016

インタフェース ReplacedWordProvoder のメソッド getReplacedWords の戻り値のReplacedWordを内部クラスにする。
CellProcessorの WordReplaceなどと間際らしいため。

// 変更前
@FunctionalInterface
public interface ReplacedWordProvider {
    
    Collection<ReplacedWord> getReplacedWords(FieldAccessor field);
    
}
// 変更後
@FunctionalInterface
public interface ReplacedWordProvider {
    
    public static class Word {
          private String word;
          private String replacement;

    }

    Collection<Word> getReplacedWords(FieldAccessor field);
    
}
@mygreen mygreen changed the title ReplacedWordProvider のメソッドの戻り値のReplacedWordを内部クラスにする ReplacedWordProvider のメソッドの戻り値のReplacedWordを内部クラスにする Dec 17, 2016
@mygreen mygreen added this to the 2.0.1 milestone Dec 17, 2016
@mygreen mygreen closed this as completed Dec 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant