diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-26 15:50:38 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-26 15:50:38 -0600 |
commit | 1851f5e76018ec1df3b55dce6cc9a64c9497bf7a (patch) | |
tree | 30f629f7b137a494d4202487f4e22df2d9456481 /vaporize/TransientInterval.java | |
parent | 012298517078170762112abe2654dc69b2f146e1 (diff) |
Rearrange directory structure
Diffstat (limited to 'vaporize/TransientInterval.java')
-rw-r--r-- | vaporize/TransientInterval.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vaporize/TransientInterval.java b/vaporize/TransientInterval.java new file mode 100644 index 0000000..3399092 --- /dev/null +++ b/vaporize/TransientInterval.java @@ -0,0 +1,21 @@ +package vaporize; + +import misc.*; + +class TransientInterval { + + protected int first_def; + protected int last_use; + + protected TransientInterval(int first_def, int last_use) { + this.first_def = first_def; + this.last_use = last_use; + } + + @Override public boolean equals(Object other) { + TransientInterval o; + return (other instanceof TransientInterval) && + (((o = (TransientInterval) other)).first_def == this.first_def); + } + +} |