@Test public void test1() { DateTime date = new DateTime(); Employee employee1 = new Employee("Daniel Li", 20, date); Employee employee2 = new Employee("Daniel Li", 20, date); Manager manager1 = new Manager("Daniel Li", 20, date, 0); Manager manager2 = new Manager("Daniel Li", 20, date, 0) { }; PerformanceMonitor.start("HashCodeBuilderUtilsTest"); LOGGER.info(String.valueOf(HashCodeBuilder.reflectionHashCode(employee1))); PerformanceMonitor.mark("HashCodeBuilder.reflectionHashCode(employee1)"); LOGGER.info(String.valueOf(HashCodeBuilderUtils.reflectionHashCode(employee1))); PerformanceMonitor.mark("HashCodeBuilderUtils.reflectionHashCode(employee1)"); LOGGER.info(String.valueOf(HashCodeBuilderUtils.reflectionHashCode(employee2))); PerformanceMonitor.mark("HashCodeBuilderUtils.reflectionHashCode(employee2)"); LOGGER.info(String.valueOf(HashCodeBuilder.reflectionHashCode(employee2))); PerformanceMonitor.mark("HashCodeBuilder.reflectionHashCode(employee2)"); LOGGER.info(String.valueOf(HashCodeBuilder.reflectionHashCode(manager1))); PerformanceMonitor.mark("HashCodeBuilder.reflectionHashCode(manager1)"); LOGGER.info(String.valueOf(HashCodeBuilderUtils.reflectionHashCode(manager1))); PerformanceMonitor.mark("HashCodeBuilderUtils.reflectionHashCode(manager1)"); LOGGER.info(String.valueOf(HashCodeBuilder.reflectionHashCode(manager2))); PerformanceMonitor.mark("HashCodeBuilder.reflectionHashCode(manager2)"); LOGGER.info(String.valueOf(HashCodeBuilderUtils.reflectionHashCode(manager2))); PerformanceMonitor.mark("HashCodeBuilderUtils.reflectionHashCode(manager2)"); PerformanceMonitor.stop(); PerformanceMonitor.summarize(new AdvancedStopWatchSummary(false)); PerformanceMonitor.remove(); }
public static int reflectionHashCode(Object object) { return reflectionHashCode(17, 37, object); }
HashCodeBuilderUtils { public static int reflectionHashCode(Object object) { return reflectionHashCode(17, 37, object); } }
HashCodeBuilderUtils { public static int reflectionHashCode(Object object) { return reflectionHashCode(17, 37, object); }  }
HashCodeBuilderUtils { public static int reflectionHashCode(Object object) { return reflectionHashCode(17, 37, object); }  static int reflectionHashCode(Object object); static int reflectionHashCode(int initialNonZeroOddNumber, int multiplierNonZeroOddNumber, T object); }
HashCodeBuilderUtils { public static int reflectionHashCode(Object object) { return reflectionHashCode(17, 37, object); }  static int reflectionHashCode(Object object); static int reflectionHashCode(int initialNonZeroOddNumber, int multiplierNonZeroOddNumber, T object);  }