1
package dk.aau.cs.model.tapn;
3
import dk.aau.cs.util.Require;
5
public class IntBound implements Bound {
8
public IntBound(int bound) {
9
Require.that(bound >= 0, "Integer bounds must be non-negative.");
13
public IntBound(IntBound bound) {
14
Require.that(bound != null, "Integer bound cannot be null");
16
this.bound = bound.bound;
24
public IntBound copy() {
25
return new IntBound(this);
29
public String toString() {
30
return Integer.toString(bound);
34
public int hashCode() {
37
result = prime * result + bound;
42
public boolean equals(Object obj) {
47
if (!(obj instanceof IntBound))
49
IntBound other = (IntBound) obj;
50
if (bound != other.bound)