<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package integral;

import java.io.Serializable;

public class Range&lt;T extends Comparable&lt;T&gt;&gt; implements Domain&lt;T&gt;, Remote {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3938668488464922999L;
	private T begin;
	private T end;
	
	public Range(T begin, T end) {
		super();
		this.begin = begin;
		this.end = end;
	}
	
	public T getBegin() throws RemteException {
		return begin;
	}
	
	public T getEnd() throws RemoteException {
		return end;
	}

	@Override
	public boolean contains(T x) throws RemoteException {
		return (x.compareTo(begin) &gt;= 0) &amp;&amp; (x.compareTo(end) &lt;= 0);
	}

	
	
	
}
</pre></body></html>