All Downloads are FREE. Search and download functionalities are using the official Maven repository.

remote.server.RemoteObject Maven / Gradle / Ivy

There is a newer version: 1.2
Show newest version
package remote.server;

import java.io.Serializable;

@SuppressWarnings("serial")
public class RemoteObject implements Serializable {
	private final long num;

	RemoteObject(final long num) {
		this.num = num;
	}

	long getNum() {
		return num;
	}

	@Override
	public int hashCode() {
		return (int) num;
	}

	@Override
	public boolean equals(final Object obj) {
		return obj instanceof RemoteObject?num == ((RemoteObject) obj).num:false;
	}

	@Override
	public String toString() {
		return Long.toString(num);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy