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.
For example, currently you are creating 3 files like this:
View.java
Presenter.java
Interactor.java
Instead, you can create a single file which will host all 3 of them together.
Contract.java
Thus, this will reduce the amount of files you have in your project.