MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getHashCode

Method getHashCode

ij/src/main/java/ij/gui/Roi.java:2916–2919  ·  view source on GitHub ↗

Returns a hashcode for this Roi that typically changes if it is moved, even though it is still the same object.

()

Source from the content-addressed store, hash-verified

2914 /** Returns a hashcode for this Roi that typically changes
2915 if it is moved, even though it is still the same object. */
2916 public int getHashCode() {
2917 return hashCode() ^ (Double.valueOf(getXBase()).hashCode()) ^
2918 Integer.rotateRight(Double.valueOf(getYBase()).hashCode(),16);
2919 }
2920
2921 public void setFlattenScale(double scale) {
2922 flattenScale = scale;

Callers 1

roiHashCodeMethod · 0.80

Calls 5

getXBaseMethod · 0.95
getYBaseMethod · 0.95
valueOfMethod · 0.80
hashCodeMethod · 0.45
rotateRightMethod · 0.45

Tested by

no test coverage detected