Mercurial > hg > truffle
changeset 16735:55c59139cc57
Add identityEquals to Value.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Fri, 08 Aug 2014 18:12:04 +0200 |
parents | 7d7fae9e9d17 |
children | 1227fb471b6d |
files | graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Value.java |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Value.java Sat Aug 09 08:51:01 2014 -0700 +++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Value.java Fri Aug 08 18:12:04 2014 +0200 @@ -96,4 +96,14 @@ } return false; } + + /** + * Checks if this value is identical to {@code other}. + * + * Warning: Use with caution! Usually equivalence {@link #equals(Object)} is sufficient and + * should be used. + */ + public final boolean identityEquals(Value other) { + return this == other; + } }