|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.text.PatternEntry
Utility class for normalizing and merging patterns for collation. This is to be used with MergeCollation for adding patterns to an existing rule table.
MergeCollation
Nested Class Summary | |
(package private) static class |
PatternEntry.Parser
|
Field Summary | |
(package private) String |
chars
|
(package private) String |
extension
|
(package private) static int |
RESET
|
(package private) int |
strength
|
(package private) static int |
UNSET
|
Constructor Summary | |
(package private) |
PatternEntry(int strength,
StringBuffer chars,
StringBuffer extension)
|
Method Summary | |
(package private) void |
addToBuffer(StringBuffer toAddTo,
boolean showExtension,
boolean showWhiteSpace,
PatternEntry lastEntry)
|
(package private) static void |
appendQuoted(String chars,
StringBuffer toAddTo)
|
void |
appendQuotedChars(StringBuffer toAddTo)
Gets the current chars, quoted |
void |
appendQuotedExtension(StringBuffer toAddTo)
Gets the current extension, quoted |
boolean |
equals(Object obj)
WARNING this is used for searching in a Vector. |
(package private) String |
getChars()
Gets the core characters of the entry. |
(package private) String |
getExtension()
Gets the expanding characters of the entry. |
(package private) int |
getStrength()
Gets the strength of the entry. |
int |
hashCode()
Returns a hash code value for the object. |
(package private) static boolean |
isSpecialChar(char ch)
|
String |
toString()
For debugging. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
static final int RESET
static final int UNSET
int strength
String chars
String extension
Constructor Detail |
PatternEntry(int strength, StringBuffer chars, StringBuffer extension)
Method Detail |
public void appendQuotedExtension(StringBuffer toAddTo)
public void appendQuotedChars(StringBuffer toAddTo)
public boolean equals(Object obj)
equals
in class Object
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.Object.hashCode()
,
Hashtable
public int hashCode()
Object
java.util.Hashtable
.
The general contract of hashCode
is:
hashCode
method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
hashCode
in class Object
Object.equals(java.lang.Object)
,
Hashtable
public String toString()
toString
in class Object
final int getStrength()
final String getExtension()
final String getChars()
void addToBuffer(StringBuffer toAddTo, boolean showExtension, boolean showWhiteSpace, PatternEntry lastEntry)
static void appendQuoted(String chars, StringBuffer toAddTo)
static boolean isSpecialChar(char ch)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |