Skip to content

Combine your view, presenter and interactor interfaces into a single interface. #1

Description

@crazyhitty

For example, currently you are creating 3 files like this:

View.java

public interface View{
    // Some methods here.
}

Presenter.java

public interface Presenter{
    // Some methods here.
}

Interactor.java

public interface Interactor{
    // Some methods here.
}

Instead, you can create a single file which will host all 3 of them together.

Contract.java

public interface Contract{
    interface View{
        // Some methods here.
    }

    interface Presenter{
        // Some methods here.
    }

    interface Interactor{
        // Some methods here.
    }
}

Thus, this will reduce the amount of files you have in your project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions