Skip to content
Snippets Groups Projects
Commit 6beceb64 authored by rimesime's avatar rimesime
Browse files

Fixed private/public members

parent cf950602
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl ...@@ -24,7 +24,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl
// May be used to delete a stored Wallet on another participant // May be used to delete a stored Wallet on another participant
public static class ActionInvalidate implements Serializable { public static class ActionInvalidate implements Serializable {
final String name; public final String name;
public ActionInvalidate(String name) { public ActionInvalidate(String name) {
this.name = name; this.name = name;
} }
...@@ -32,7 +32,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl ...@@ -32,7 +32,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl
// Used to send (positive amount) or retreive money (negative amount) // Used to send (positive amount) or retreive money (negative amount)
public static class ActionReceiveTransaction implements Serializable { public static class ActionReceiveTransaction implements Serializable {
final public int amount; public final int amount;
public ActionReceiveTransaction(int amount) { public ActionReceiveTransaction(int amount) {
this.amount = amount; this.amount = amount;
} }
...@@ -41,7 +41,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl ...@@ -41,7 +41,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl
// Used to search a Wallet by name, i.e. when we want to // Used to search a Wallet by name, i.e. when we want to
// perform a transaction on it // perform a transaction on it
public static class ActionSearchWalletReference implements Serializable { public static class ActionSearchWalletReference implements Serializable {
final String name; public final String name;
public ActionSearchWalletReference(String name) { public ActionSearchWalletReference(String name) {
this.name = name; this.name = name;
} }
...@@ -50,7 +50,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl ...@@ -50,7 +50,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl
// Used to return a Wallet reference (akka-style string which can // Used to return a Wallet reference (akka-style string which can
// be transformed to an ActorRef) // be transformed to an ActorRef)
public static class ActionSearchWalletReferenceAnswer implements Serializable { public static class ActionSearchWalletReferenceAnswer implements Serializable {
final String address; public final String address;
public ActionSearchWalletReferenceAnswer(String address) { public ActionSearchWalletReferenceAnswer(String address) {
this.address = address; this.address = address;
} }
...@@ -63,7 +63,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl ...@@ -63,7 +63,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl
// Note: You should also forward the sender (the participant who actually // Note: You should also forward the sender (the participant who actually
// searches for this Wallet, so that it can be returnd the direct way) // searches for this Wallet, so that it can be returnd the direct way)
public static class ActionSearchMyWallet implements Serializable { public static class ActionSearchMyWallet implements Serializable {
final String name; public final String name;
public ActionSearchMyWallet(String name) { public ActionSearchMyWallet(String name) {
this.name = name; this.name = name;
} }
...@@ -71,7 +71,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl ...@@ -71,7 +71,7 @@ public abstract class AbstractWallet extends UntypedActor implements Serializabl
// Used to return a searched Wallet // Used to return a searched Wallet
public static class ActionSearchMyWalletAnswer implements Serializable { public static class ActionSearchMyWalletAnswer implements Serializable {
final AbstractWallet w; public final AbstractWallet w;
public ActionSearchMyWalletAnswer(AbstractWallet w) { public ActionSearchMyWalletAnswer(AbstractWallet w) {
this.w = w; this.w = w;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment