remote.RemoteStub Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of remote4j Show documentation
Show all versions of remote4j Show documentation
Thin functional layer on top of RMI.
package remote;
import java.rmi.RemoteException;
public abstract class RemoteStub {
public abstract Remote getValue();
@Override
public String toString() {
try {
return getValue().map(a -> a.toString()).get();
} catch (final RemoteException e) {
throw new RuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy