ViewInfo extends TypeInfo<View> { @Override public int hashCode() { return getType().hashCode() ^ (preferredComponentType == null ? 0 : preferredComponentType.hashCode()); } ViewInfo(Class<? extends View> aViewClass, String viewName, ViewType viewType);  ViewInfo(Class<? extends View> aViewClass, String name, String aType, ViewType viewType); @Deprecated  ViewInfo(Class<? extends View> aViewClass, String name, ViewType viewType, javax.swing.ImageIcon icon); @Deprecated  ViewInfo(Class<? extends View> aViewClass, String name, String aType, ViewType viewType, javax.swing.ImageIcon icon); @Deprecated  ViewInfo(Class<? extends View> aViewClass, String name, String aType, ViewType viewType, javax.swing.ImageIcon icon, javax.swing.ImageIcon selectedIcon);  ViewInfo(Class<? extends View> aViewClass, String name, String aType, ViewType viewType, boolean shouldExpandCenterPaneInWindow, Class<? extends AbstractComponent> preferredComponentType); @Deprecated  ViewInfo(Class<? extends View> aViewClass, String name, String aType, ViewType viewType, javax.swing.ImageIcon icon, javax.swing.ImageIcon selectedIcon, boolean shouldExpandCenterPaneInWindow, Class<? extends AbstractComponent> preferredComponentType); Class<? extends AbstractComponent> getPreferredComponentType(); Class<? extends View> getViewClass(); String getType(); String getViewName(); ViewType getViewType(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); View createView(final AbstractComponent component); @Deprecated javax.swing.ImageIcon getIcon(); @Deprecated javax.swing.ImageIcon getSelectedIcon(); boolean shouldExpandCenterPaneInWindow();  }
@Test public void testHashCode() { ViewInfo vi = new ViewInfo(TestView.class, "tv", ViewType.INSPECTOR); Assert.assertEquals(vi.hashCode(), new ViewInfo(TestView.class, "tv", ViewType.INSPECTOR).hashCode()); Assert.assertEquals(vi.hashCode(), new ViewInfo(TestView.class, "tv2", ViewType.CENTER).hashCode()); }