Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 28 29 package com.opencms.template.cache; 30 31 32 40 public class CmsElementDescriptor { 41 42 45 private String m_className; 46 47 50 private String m_templateName; 51 52 58 public CmsElementDescriptor(String className, String templateName) { 59 m_className = className; 60 m_templateName = templateName; 61 } 62 63 68 public String getKey() { 69 return m_className + "|" + m_templateName; 70 } 71 72 76 public String getClassName() { 77 return m_className; 78 } 79 80 84 public String getTemplateName() { 85 return m_templateName; 86 } 87 88 93 public int hashCode(){ 94 return (m_className + m_templateName).hashCode(); 95 } 96 97 102 public boolean equals(Object obj) { 103 if (obj instanceof CmsElementDescriptor) { 105 if (((CmsElementDescriptor)obj).getKey().equals(getKey()) ){ 107 return true; 108 } 109 } 110 return false; 111 } 112 113 116 public String toString(){ 117 return m_className + " | " + m_templateName; 118 } 119 }
| Popular Tags
|