comparison src/luan/LuanTable.java @ 1095:2443152dc2f1

add Luan.hash_code() and Table.hash_value()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 21 Feb 2017 20:27:17 -0700
parents 6b8ea0a9b7c9
children ad6b3b9fef40
comparison
equal deleted inserted replaced
1094:cb4c20fce7d0 1095:2443152dc2f1
467 check(); 467 check();
468 map = null; 468 map = null;
469 list = null; 469 list = null;
470 } 470 }
471 471
472 public int hashValue() {
473 int n = 99;
474 if( map != null )
475 n ^= map.hashCode();
476 if( list != null )
477 n ^= list.hashCode();
478 return n;
479 }
472 } 480 }