ScriptHash extends NeoSerializable implements Comparable<ScriptHash> { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ScriptHash that = (ScriptHash) o; return Arrays.equals(scriptHash, that.scriptHash); } ScriptHash();  ScriptHash(byte[] scriptHash);  ScriptHash(String scriptHash); @Override void deserialize(BinaryReader reader); @Override void serialize(BinaryWriter writer); @Override int getSize(); @Override byte[] toArray(); String toString(); String toAddress(); static ScriptHash fromAddress(String address); static ScriptHash fromScript(byte[] script); static ScriptHash fromPublicKey(byte[] encodedPublicKey); static ScriptHash fromPublicKeys(List<byte[]> encodedPublicKeys, int signingThreshold); static ScriptHash fromScript(String script); @Override int compareTo(ScriptHash o); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void equals() { byte[] m1 = Numeric.hexStringToByteArray("01a402d8"); byte[] m2 = Numeric.hexStringToByteArray("d802a401"); ScriptHash sh1 = ScriptHash.fromScript(m1); ScriptHash sh2 = ScriptHash.fromScript(m2); assertNotEquals(sh1, sh2); assertNotEquals(sh2, sh1); assertEquals(sh1, sh1); }