-
-
Save nullren/7ff41496090e7e920e23 to your computer and use it in GitHub Desktop.
Revisions
-
renning bruns created this gist
Nov 20, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ // Lazily initialized, cached hashCode private volatile int hashCode = 0; // (See Item 48) public int hashCode() { if (hashCode == 0) { int result = 17; result = 37*result + areaCode; result = 37*result + exchange; result = 37*result + extension; hashCode = result; } return hashCode; }