sun.text.IntHashtable Java Examples

The following examples show how to use sun.text.IntHashtable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RBCollationTables.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #2
Source File: RBCollationTables.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #3
Source File: RBCollationTables.java    From jdk-1.7-annotated with Apache License 2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector cTbl,
                  Vector eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #4
Source File: RBCollationTables.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #5
Source File: RBCollationTables.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #6
Source File: RBCollationTables.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #7
Source File: RBCollationTables.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #8
Source File: RBCollationTables.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #9
Source File: RBCollationTables.java    From Java8CN with Apache License 2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #10
Source File: RBCollationTables.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #11
Source File: RBCollationTables.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #12
Source File: RBCollationTables.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #13
Source File: RBCollationTables.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #14
Source File: RBCollationTables.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #15
Source File: RBCollationTables.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #16
Source File: RBCollationTables.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #17
Source File: RBCollationTables.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #18
Source File: RBCollationTables.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This function is used by RBTableBuilder to fill in all the members of this
 * object.  (Effectively, the builder class functions as a "friend" of this
 * class, but to avoid changing too much of the logic, it carries around "shadow"
 * copies of all these variables until the end of the build process and then
 * copies them en masse into the actual tables object once all the construction
 * logic is complete.  This function does that "copying en masse".
 * @param f2ary The value for frenchSec (the French-secondary flag)
 * @param swap The value for SE Asian swapping rule
 * @param map The collator's character-mapping table (the value for mapping)
 * @param cTbl The collator's contracting-character table (the value for contractTable)
 * @param eTbl The collator's expanding-character table (the value for expandTable)
 * @param cFlgs The hash table of characters that participate in contracting-
 *              character sequences (the value for contractFlags)
 * @param mso The value for maxSecOrder
 * @param mto The value for maxTerOrder
 */
void fillInTables(boolean f2ary,
                  boolean swap,
                  UCompactIntArray map,
                  Vector<Vector<EntryPair>> cTbl,
                  Vector<int[]> eTbl,
                  IntHashtable cFlgs,
                  short mso,
                  short mto) {
    frenchSec = f2ary;
    seAsianSwapping = swap;
    mapping = map;
    contractTable = cTbl;
    expandTable = eTbl;
    contractFlags = cFlgs;
    maxSecOrder = mso;
    maxTerOrder = mto;
}
 
Example #19
Source File: Bug4705389.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) {
   IntHashtable table = new IntHashtable();
   for (int i = 1; i < 132; ++i) {
      table.put(i, 0);
      table.remove(i);
   }
   table.put(132, 0);
}
 
Example #20
Source File: Bug4705389.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) {
   IntHashtable table = new IntHashtable();
   for (int i = 1; i < 132; ++i) {
      table.put(i, 0);
      table.remove(i);
   }
   table.put(132, 0);
}
 
Example #21
Source File: Bug4705389.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) {
   IntHashtable table = new IntHashtable();
   for (int i = 1; i < 132; ++i) {
      table.put(i, 0);
      table.remove(i);
   }
   table.put(132, 0);
}
 
Example #22
Source File: Bug4705389.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) {
   IntHashtable table = new IntHashtable();
   for (int i = 1; i < 132; ++i) {
      table.put(i, 0);
      table.remove(i);
   }
   table.put(132, 0);
}
 
Example #23
Source File: Bug4705389.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) {
   IntHashtable table = new IntHashtable();
   for (int i = 1; i < 132; ++i) {
      table.put(i, 0);
      table.remove(i);
   }
   table.put(132, 0);
}
 
Example #24
Source File: Bug4170614Test.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public static void testIntHashtable() throws Exception {
    IntHashtable fred = new IntHashtable();
    fred.put(1, 10);
    fred.put(2, 20);
    fred.put(3, 30);

    IntHashtable barney = new IntHashtable();
    barney.put(1, 10);
    barney.put(3, 30);
    barney.put(2, 20);

    IntHashtable homer = new IntHashtable();
    homer.put(3, 30);
    homer.put(1, 10);
    homer.put(7, 900);

    if (fred.equals(barney)) {
        System.out.println("fred.equals(barney)");
    }
    else {
        System.out.println("!fred.equals(barney)");
    }
    System.out.println("fred.hashCode() == " + fred.hashCode());
    System.out.println("barney.hashCode() == " + barney.hashCode());

    if (!fred.equals(barney)) {
        throw new Exception("equals() failed on two hashtables that are equal");
    }

    if (fred.hashCode() != barney.hashCode()) {
       throw new Exception("hashCode() failed on two hashtables that are equal");
    }

    System.out.println();
    if (fred.equals(homer)) {
        System.out.println("fred.equals(homer)");
    }
    else {
        System.out.println("!fred.equals(homer)");
    }
    System.out.println("fred.hashCode() == " + fred.hashCode());
    System.out.println("homer.hashCode() == " + homer.hashCode());

    if (fred.equals(homer)) {
        throw new Exception("equals() failed on two hashtables that are not equal");
    }

    if (fred.hashCode() == homer.hashCode()) {
        throw new Exception("hashCode() failed on two hashtables that are not equal");
    }

    System.out.println();
    System.out.println("testIntHashtable() passed.\n");
}
 
Example #25
Source File: Bug4170614Test.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public static void testIntHashtable() throws Exception {
    IntHashtable fred = new IntHashtable();
    fred.put(1, 10);
    fred.put(2, 20);
    fred.put(3, 30);

    IntHashtable barney = new IntHashtable();
    barney.put(1, 10);
    barney.put(3, 30);
    barney.put(2, 20);

    IntHashtable homer = new IntHashtable();
    homer.put(3, 30);
    homer.put(1, 10);
    homer.put(7, 900);

    if (fred.equals(barney)) {
        System.out.println("fred.equals(barney)");
    }
    else {
        System.out.println("!fred.equals(barney)");
    }
    System.out.println("fred.hashCode() == " + fred.hashCode());
    System.out.println("barney.hashCode() == " + barney.hashCode());

    if (!fred.equals(barney)) {
        throw new Exception("equals() failed on two hashtables that are equal");
    }

    if (fred.hashCode() != barney.hashCode()) {
       throw new Exception("hashCode() failed on two hashtables that are equal");
    }

    System.out.println();
    if (fred.equals(homer)) {
        System.out.println("fred.equals(homer)");
    }
    else {
        System.out.println("!fred.equals(homer)");
    }
    System.out.println("fred.hashCode() == " + fred.hashCode());
    System.out.println("homer.hashCode() == " + homer.hashCode());

    if (fred.equals(homer)) {
        throw new Exception("equals() failed on two hashtables that are not equal");
    }

    if (fred.hashCode() == homer.hashCode()) {
        throw new Exception("hashCode() failed on two hashtables that are not equal");
    }

    System.out.println();
    System.out.println("testIntHashtable() passed.\n");
}
 
Example #26
Source File: Bug4170614Test.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public static void testIntHashtable() throws Exception {
    IntHashtable fred = new IntHashtable();
    fred.put(1, 10);
    fred.put(2, 20);
    fred.put(3, 30);

    IntHashtable barney = new IntHashtable();
    barney.put(1, 10);
    barney.put(3, 30);
    barney.put(2, 20);

    IntHashtable homer = new IntHashtable();
    homer.put(3, 30);
    homer.put(1, 10);
    homer.put(7, 900);

    if (fred.equals(barney)) {
        System.out.println("fred.equals(barney)");
    }
    else {
        System.out.println("!fred.equals(barney)");
    }
    System.out.println("fred.hashCode() == " + fred.hashCode());
    System.out.println("barney.hashCode() == " + barney.hashCode());

    if (!fred.equals(barney)) {
        throw new Exception("equals() failed on two hashtables that are equal");
    }

    if (fred.hashCode() != barney.hashCode()) {
       throw new Exception("hashCode() failed on two hashtables that are equal");
    }

    System.out.println();
    if (fred.equals(homer)) {
        System.out.println("fred.equals(homer)");
    }
    else {
        System.out.println("!fred.equals(homer)");
    }
    System.out.println("fred.hashCode() == " + fred.hashCode());
    System.out.println("homer.hashCode() == " + homer.hashCode());

    if (fred.equals(homer)) {
        throw new Exception("equals() failed on two hashtables that are not equal");
    }

    if (fred.hashCode() == homer.hashCode()) {
        throw new Exception("hashCode() failed on two hashtables that are not equal");
    }

    System.out.println();
    System.out.println("testIntHashtable() passed.\n");
}
 
Example #27
Source File: Bug4170614Test.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
public static void testIntHashtable() throws Exception {
    IntHashtable fred = new IntHashtable();
    fred.put(1, 10);
    fred.put(2, 20);
    fred.put(3, 30);

    IntHashtable barney = new IntHashtable();
    barney.put(1, 10);
    barney.put(3, 30);
    barney.put(2, 20);

    IntHashtable homer = new IntHashtable();
    homer.put(3, 30);
    homer.put(1, 10);
    homer.put(7, 900);

    if (fred.equals(barney)) {
        System.out.println("fred.equals(barney)");
    }
    else {
        System.out.println("!fred.equals(barney)");
    }
    System.out.println("fred.hashCode() == " + fred.hashCode());
    System.out.println("barney.hashCode() == " + barney.hashCode());

    if (!fred.equals(barney)) {
        throw new Exception("equals() failed on two hashtables that are equal");
    }

    if (fred.hashCode() != barney.hashCode()) {
       throw new Exception("hashCode() failed on two hashtables that are equal");
    }

    System.out.println();
    if (fred.equals(homer)) {
        System.out.println("fred.equals(homer)");
    }
    else {
        System.out.println("!fred.equals(homer)");
    }
    System.out.println("fred.hashCode() == " + fred.hashCode());
    System.out.println("homer.hashCode() == " + homer.hashCode());

    if (fred.equals(homer)) {
        throw new Exception("equals() failed on two hashtables that are not equal");
    }

    if (fred.hashCode() == homer.hashCode()) {
        throw new Exception("hashCode() failed on two hashtables that are not equal");
    }

    System.out.println();
    System.out.println("testIntHashtable() passed.\n");
}
 
Example #28
Source File: Bug4170614Test.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
public static void testIntHashtable() throws Exception {
    IntHashtable fred = new IntHashtable();
    fred.put(1, 10);
    fred.put(2, 20);
    fred.put(3, 30);

    IntHashtable barney = new IntHashtable();
    barney.put(1, 10);
    barney.put(3, 30);
    barney.put(2, 20);

    IntHashtable homer = new IntHashtable();
    homer.put(3, 30);
    homer.put(1, 10);
    homer.put(7, 900);

    if (fred.equals(barney)) {
        System.out.println("fred.equals(barney)");
    }
    else {
        System.out.println("!fred.equals(barney)");
    }
    System.out.println("fred.hashCode() == " + fred.hashCode());
    System.out.println("barney.hashCode() == " + barney.hashCode());

    if (!fred.equals(barney)) {
        throw new Exception("equals() failed on two hashtables that are equal");
    }

    if (fred.hashCode() != barney.hashCode()) {
       throw new Exception("hashCode() failed on two hashtables that are equal");
    }

    System.out.println();
    if (fred.equals(homer)) {
        System.out.println("fred.equals(homer)");
    }
    else {
        System.out.println("!fred.equals(homer)");
    }
    System.out.println("fred.hashCode() == " + fred.hashCode());
    System.out.println("homer.hashCode() == " + homer.hashCode());

    if (fred.equals(homer)) {
        throw new Exception("equals() failed on two hashtables that are not equal");
    }

    if (fred.hashCode() == homer.hashCode()) {
        throw new Exception("hashCode() failed on two hashtables that are not equal");
    }

    System.out.println();
    System.out.println("testIntHashtable() passed.\n");
}