//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-b27-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.06.11 at 10:34:07 AM PDT
//
/**
* A set of {@link Object}s that uses the == (instead of equals)
* for the comparison.
*
* @author
* Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
*/
final class IdentityHashSet {
/** The hash table data. */
/** The total number of mappings in the hash table. */
private int count;
/**
* The table is rehashed when its size exceeds this threshold. (The
* value of this field is (int)(capacity * loadFactor).)
*/
private int threshold;
/** The load factor for the hashtable. */
public IdentityHashSet() {
}
while (true) {
if (e == null)
return false;
if (e==key)
return true;
}
}
/**
* rehash.
*
* It is possible for one thread to call get method
* while another thread is performing rehash.
* Keep this in mind.
*/
private void rehash() {
// create a new table first.
// meanwhile, other threads can safely access get method.
for (int i = oldCapacity; i-- > 0;)
}
// threshold is not accessed by get method.
// switch!
}
rehash();
}
count++;
return true;
}
}