Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Rename getActionSize() -> getActionCount() and make it abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
andyboeh committed Feb 27, 2019
1 parent e2e5b8d commit 16d7597
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 235 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public abstract class AbstractTransaction {
private final String mName;
private final long creationTimestamp = System.currentTimeMillis();


public AbstractTransaction(String taskName) {
this.mName = taskName;
}
Expand All @@ -37,13 +36,11 @@ protected String getCreationTime() {
return DateFormat.getTimeInstance(DateFormat.MEDIUM).format(new Date(creationTimestamp));
}

public int getActionSize() {
return 0;
}
public abstract int getActionCount();

@Override
public String toString() {
return String.format(Locale.US, "%s: Transaction task: %s with %d actions", getCreationTime(), getTaskName(), getActionSize());
return String.format(Locale.US, "%s: Transaction task: %s with %d actions", getCreationTime(), getTaskName(), getActionCount());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ GattServerCallback getGattCallback() {
}

@Override
public int getActionSize() {
public int getActionCount() {
return mActions.size();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ GattCallback getGattCallback() {
}

@Override
public int getActionSize() {
public int getActionCount() {
return mActions.size();
}
}

This file was deleted.

0 comments on commit 16d7597

Please sign in to comment.