This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted callbacks back to interfaces instead of abstract classes.
- Loading branch information
Anup Cowkur
committed
Jan 30, 2014
1 parent
a62bb5f
commit 4bd02ef
Showing
2 changed files
with
6 additions
and
20 deletions.
There are no files selected for viewing
13 changes: 3 additions & 10 deletions
13
Library/src/main/java/com/anupcowkur/reservoir/ReservoirGetCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
package com.anupcowkur.reservoir; | ||
|
||
/** | ||
* | ||
*/ | ||
public abstract class ReservoirGetCallback<T> { | ||
public void onSuccess(T object) { | ||
public interface ReservoirGetCallback<T> { | ||
public void onSuccess(T object); | ||
|
||
} | ||
|
||
public void onFailure(Exception e) { | ||
|
||
} | ||
public void onFailure(Exception e); | ||
} |
13 changes: 3 additions & 10 deletions
13
Library/src/main/java/com/anupcowkur/reservoir/ReservoirPutCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
package com.anupcowkur.reservoir; | ||
|
||
/** | ||
* | ||
*/ | ||
public abstract class ReservoirPutCallback { | ||
public void onSuccess() { | ||
public interface ReservoirPutCallback { | ||
public void onSuccess(); | ||
|
||
} | ||
|
||
public void onFailure(Exception e) { | ||
|
||
} | ||
public void onFailure(Exception e); | ||
} |