@Test public void testHash() { ZigBeeKey key1 = new ZigBeeKey("11223344556677889900AABBCCDDEEFF"); ZigBeeKey key2 = new ZigBeeKey("11223344556677889900AABBCCDDEEFF"); assertEquals(key1.hashCode(), key2.hashCode()); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(key); return result; }
ZigBeeKey { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(key); return result; } }
ZigBeeKey { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(key); return result; } ZigBeeKey();  ZigBeeKey(String key);  ZigBeeKey(int[] key); }
ZigBeeKey { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(key); return result; } ZigBeeKey();  ZigBeeKey(String key);  ZigBeeKey(int[] key); int[] getValue(); boolean hasIncomingFrameCounter(); boolean hasOutgoingFrameCounter(); boolean hasSequenceNumber(); boolean hasAddress(); IeeeAddress getAddress(); void setAddress(IeeeAddress address); Integer getIncomingFrameCounter(); void setIncomingFrameCounter(Integer counter); Integer getOutgoingFrameCounter(); void setOutgoingFrameCounter(Integer counter); Integer getSequenceNumber(); void setSequenceNumber(Integer counter); boolean isValid(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static ZigBeeKey createRandom(); }
ZigBeeKey { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(key); return result; } ZigBeeKey();  ZigBeeKey(String key);  ZigBeeKey(int[] key); int[] getValue(); boolean hasIncomingFrameCounter(); boolean hasOutgoingFrameCounter(); boolean hasSequenceNumber(); boolean hasAddress(); IeeeAddress getAddress(); void setAddress(IeeeAddress address); Integer getIncomingFrameCounter(); void setIncomingFrameCounter(Integer counter); Integer getOutgoingFrameCounter(); void setOutgoingFrameCounter(Integer counter); Integer getSequenceNumber(); void setSequenceNumber(Integer counter); boolean isValid(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static ZigBeeKey createRandom();  }