public class CmsElementComparison extends CmsAttributeComparison implements java.lang.Comparable
| 构造器和说明 |
|---|
CmsElementComparison(java.util.Locale locale,
java.lang.String name)
Creates a new element comparison.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o) |
java.util.Locale |
getLocale()
Returns the locale.
|
int |
hashCode() |
void |
setLocale(java.util.Locale locale)
Sets the locale.
|
getName, getStatus, getVersion1, getVersion2, setName, setStatus, setVersion1, setVersion2public CmsElementComparison(java.util.Locale locale,
java.lang.String name)
locale - the locale of the comparisonname - the name of the elementpublic int compareTo(java.lang.Object o)
compareTo 在接口中 java.lang.ComparableComparable.compareTo(java.lang.Object)public boolean equals(java.lang.Object o)
equals 在类中 java.lang.ObjectObject.equals(java.lang.Object)public java.util.Locale getLocale()
public int hashCode()
hashCode 在类中 java.lang.ObjectObject.hashCode()public void setLocale(java.util.Locale locale)
locale - the locale to set