MCPcopy Create free account
hub / github.com/Teneted/Tenet / hashCode

Method hashCode

src/main/java/org/bukkit/util/Vector.java:741–749  ·  view source on GitHub ↗

Returns a hash code for this vector @return hash code

()

Source from the content-addressed store, hash-verified

739 * @return hash code
740 */
741 @Override
742 public int hashCode() {
743 int hash = 7;
744
745 hash = 79 * hash + (int) (Double.doubleToLongBits(this.x) ^ (Double.doubleToLongBits(this.x) >>> 32));
746 hash = 79 * hash + (int) (Double.doubleToLongBits(this.y) ^ (Double.doubleToLongBits(this.y) >>> 32));
747 hash = 79 * hash + (int) (Double.doubleToLongBits(this.z) ^ (Double.doubleToLongBits(this.z) >>> 32));
748 return hash;
749 }
750
751 /**
752 * Get a new vector.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected