// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class DataImpl extends UnicastRemoteObject implements Data {
    private int a;
    private String b;
    public DataImpl() throws RemoteException {
        this(0, "");
    }
    public DataImpl(int a, String b) throws RemoteException {
        this.a = a;
        this.b = b;
    }
    public String toString() {
        return "(" + a + "," + b + ")";
    }
    public int getA() {
        return a;
    }
    public void setA(int a) {
        this.a = a;
    }
    public String getB() {
        return b;
    }
    public void setB(String b) {
        this.b = b;
    }
}
