Skip to content

Chapter 2 Low Coupling ,Pages 40-44 #20

@K-Ibadullaev

Description

@K-Ibadullaev

Hello guys,

First of all, thanks for writing an awesome book , it is a really nice way of learning by doing.

I have a question regarding your interface BankStatementParser for the low coupling. I think the private method "parseFrom" shouldn't be exposed in the interface and its access modifier should remain private. Thus it should look like this, I guess:

public interface IBankStatementParser {

// BankTransaction parseFrom(String line);
    List<BankTransaction> parseLinesFrom(List<String> lines);
}

Am I missing something here? Would appreciate you feedback!

Kind regards,
K

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions