public class Range
extends java.lang.Object
Object can be treated as a sub-list of indices. One (young) value is less or equal than another (old) value.
Constructor and Description |
---|
Range(ru.ispras.fortress.expression.Node young,
ru.ispras.fortress.expression.Node old)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Range |
deepCopy()
Creates a deep copy of the current object.
|
boolean |
equals(java.lang.Object obj) |
ru.ispras.fortress.expression.Node |
getOld()
Returns old index.
|
ru.ispras.fortress.expression.Node |
getYoung()
Returns young index.
|
int |
hashCode() |
java.lang.String |
toString() |
public Range(ru.ispras.fortress.expression.Node young, ru.ispras.fortress.expression.Node old)
young
- young indexold
- old indexjava.lang.IllegalArgumentException
- in the following situations:
(1) when any of the arguments is null
;
(2) when the second argument is always less than first argument.public Range deepCopy()
public ru.ispras.fortress.expression.Node getYoung()
public ru.ispras.fortress.expression.Node getOld()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object