1 31 32 package org.opencms.workplace.comparison; 33 34 39 public class CmsElementComparison extends CmsAttributeComparison { 40 41 42 private String m_locale; 43 44 50 public CmsElementComparison(String locale, String name) { 51 52 m_locale = locale; 53 setName(name); 54 } 55 56 60 public boolean equals(Object o) { 61 62 if (!(o instanceof CmsElementComparison)) { 63 return false; 64 } 65 CmsElementComparison diffItem = (CmsElementComparison)o; 66 return getName().equals(diffItem.getName()) && m_locale.equals(diffItem.getLocale()); 67 } 68 69 74 public String getLocale() { 75 76 return m_locale; 77 } 78 79 83 public int hashCode() { 84 85 return m_locale.hashCode() + getName().hashCode(); 86 } 87 88 93 public void setLocale(String locale) { 94 95 m_locale = locale; 96 } 97 98 } 99 | Popular Tags |