Refactor HashEntry

Change: refactor type and depth from methods to properties.