Searched refs:hash (Results 1 - 25 of 262) sorted by relevance

1234567891011

/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/dtm/ref/
H A DExtendedType.java34 private int hash; field in class:ExtendedType
38 * The hash code is calculated from the node type, namespace and local name.
49 this.hash = nodetype + namespace.hashCode() + localName.hashCode();
54 * and a given hash code.
59 * @param hash The given hash code
61 public ExtendedType (int nodetype, String namespace, String localName, int hash) argument
66 this.hash = hash;
79 this.hash
87 redefine(int nodetype, String namespace, String localName, int hash) argument
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DImageCache.java43 // Ordered Map keyed by args hash, ordered by most recent accessed entry.
87 final int hash = hash(config, w, h, scale, state);
91 ref = map.get(hash);
96 // in case of false positive hash match
120 final int hash = hash(config, w, h, scale, state);
124 PixelCountSoftReference ref = map.get(hash);
131 map.remove(hash);
141 map.remove(ref.hash);
165 private static int hash(final GraphicsConfiguration config, final int w, method in class:ImageCache
185 final int hash; field in class:ImageCache.PixelCountSoftReference
194 PixelCountSoftReference(final Image referent, final ReferenceQueue<? super Image> q, final int pixelCount, final int hash, final GraphicsConfiguration config, final int w, final int h, final int scale, final JRSUIState state) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/
H A DImageCache.java46 // Ordered Map keyed by args hash, ordered by most recent accessed entry.
111 PixelCountSoftReference ref = map.get(hash(config, w, h, args));
112 // check reference has not been lost and the key truly matches, in case of false positive hash match
135 int hash = hash(config, w, h, args);
138 PixelCountSoftReference ref = map.get(hash);
146 map.remove(hash);
155 map.remove(ref.hash);
171 map.put(hash, new PixelCountSoftReference(image, referenceQueue, newPixelCount,hash, confi
179 private int hash(GraphicsConfiguration config, int w, int h, Object ... args) { method in class:ImageCache
192 private final int hash; field in class:ImageCache.PixelCountSoftReference
199 PixelCountSoftReference(Image referent, ReferenceQueue<? super Image> q, int pixelCount, int hash, GraphicsConfiguration config, int w, int h, Object[] args) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/util/
H A DCollisionCheckStack.java101 int hash = hash(o);
102 boolean r = findDuplicate(o, hash);
103 next[size] = initialHash[hash];
104 initialHash[hash] = size+1;
123 int hash = hash(o);
124 return findDuplicate(o, hash);
137 private int hash(Object o) { method in class:CollisionCheckStack
150 // pushed by nocheck. no need to update hash
166 findDuplicate(E o, int hash) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/util/
H A DSymbolTable.java97 final int hash = hash(symbol);
98 final int bucket = hash % fTableSize;
101 if (length == entry.characters.length && hash == entry.hashCode) {
122 entry.hashCode = hash;
140 int hash = hash(buffer, offset, length);
141 int bucket = hash % fTableSize;
143 if (length == entry.characters.length && hash ==entry.hashCode) {
156 entry.hashCode = hash;
169 public int hash(String symbol) { method in class:SymbolTable
191 public int hash(char[] buffer, int offset, int length) { method in class:SymbolTable
[all...]
H A DShadowedSymbolTable.java97 * by the <code>hash(char[],int,int)</code> method when called
100 * @param symbol The symbol to hash.
102 public int hash(String symbol) { method in class:ShadowedSymbolTable
103 return fSymbolTable.hash(symbol);
104 } // hash(String):int
109 * returned by the <code>hash(String)</code> method when called
117 public int hash(char[] buffer, int offset, int length) { method in class:ShadowedSymbolTable
118 return fSymbolTable.hash(buffer, offset, length);
119 } // hash(char[],int,int):int
H A DXMLGrammarPoolImpl.java174 int hash = hashCode(desc);
175 int index = (hash & 0x7FFFFFFF) % fGrammars.length;
177 if (entry.hash == hash && equals(entry.desc, desc)) {
183 Entry entry = new Entry(hash, desc, grammar, fGrammars[index]);
199 int hash = hashCode(desc);
200 int index = (hash & 0x7FFFFFFF) % fGrammars.length;
202 if ((entry.hash == hash) && equals(entry.desc, desc)) {
221 int hash
319 public int hash; field in class:XMLGrammarPoolImpl.Entry
324 Entry(int hash, XMLGrammarDescription desc, Grammar grammar, Entry next) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/dtdparser/
H A DSimpleHashtable.java166 int hash = key.hashCode();
167 int index = (hash & 0x7FFFFFFF) % tab.length;
169 if ((e.hash == hash) && (e.key == key))
181 int hash = key.hashCode();
182 int index = (hash & 0x7FFFFFFF) % tab.length;
184 if ((e.hash == hash) && e.key.equals(key))
219 int index = (e.hash & 0x7FFFFFFF) % newCapacity;
242 int hash
273 int hash; field in class:SimpleHashtable.Entry
278 Entry(int hash, Object key, Object value, Entry next) argument
[all...]
/openjdk7/jdk/src/share/classes/java/beans/
H A DWeakIdentityMap.java56 int hash = key.hashCode();
57 int index = getIndex(this.table, hash);
59 if (entry.isMatched(key, hash)) {
71 int hash = key.hashCode();
72 int index = getIndex(this.table, hash);
74 if (entry.isMatched(key, hash)) {
80 this.table[index] = new Entry<T>(key, hash, value, this.queue, this.table[index]);
109 int index = getIndex(this.table, entry.hash);
146 int index = getIndex(newTable, entry.hash);
161 private static int getIndex(Entry<?>[] table, int hash) { argument
166 private final int hash; field in class:WeakIdentityMap.Entry
170 Entry(Object key, int hash, T value, ReferenceQueue<Object> queue, Entry<T> next) argument
177 isMatched(Object key, int hash) argument
[all...]
/openjdk7/jdk/src/share/classes/java/rmi/server/
H A DSkeleton.java53 * @param hash stub/skeleton interface hash
59 void dispatch(Remote obj, RemoteCall theCall, int opnum, long hash) argument
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/
H A DInputBlockEdge.java61 int hash = from.hashCode();
62 hash = 59 * hash + to.hashCode();
63 return hash;
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/
H A DUName.java86 int hash = 7;
87 hash = 13 * hash + (this.nsUri != null ? this.nsUri.hashCode() : 0);
88 hash = 13 * hash + (this.localName != null ? this.localName.hashCode() : 0);
89 hash = 13 * hash + (this.qname != null ? this.qname.hashCode() : 0);
90 return hash;
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/jaxp/validation/
H A DSoftReferenceGrammarPool.java162 int hash = hashCode(desc);
163 int index = (hash & 0x7FFFFFFF) % fGrammars.length;
165 if (entry.hash == hash && equals(entry.desc, desc)) {
173 Entry entry = new Entry(hash, index, desc, grammar, fGrammars[index], fReferenceQueue);
190 int hash = hashCode(desc);
191 int index = (hash & 0x7FFFFFFF) % fGrammars.length;
198 else if ((entry.hash == hash) && equals(entry.desc, desc)) {
218 int hash
388 public int hash; field in class:SoftReferenceGrammarPool.Entry
395 Entry(int hash, int bucket, XMLGrammarDescription desc, Grammar grammar, Entry next, ReferenceQueue queue) argument
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/
H A DLongHashMap.java41 private int hash; field in class:LongHashMap.Entry
46 Entry(int hash, long key, Object value, Entry next) { argument
47 this.hash = hash;
120 * Returns the hash code value for this map entry. The hash code
130 * @return the hash code value for this map entry.
136 return hash ^ (value==null ? 0 : value.hashCode());
141 * The hash table data.
146 * The total number of mappings in the hash tabl
453 newEntry(int hash, long key, Object value, Entry next) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/runtime/
H A DHashtable.java36 * Object that wraps entries in the hash-table
40 int hash; field in class:HashtableEntry
47 entry.hash = hash;
56 * The main hash-table implementation
60 private transient HashtableEntry table[]; // hash-table entries
62 private int threshold; // current size of hash-tabke
152 int hash = key.hashCode();
153 int index = (hash & 0x7FFFFFFF) % tab.length;
156 if ((e.hash
[all...]
/openjdk7/jdk/test/java/nio/channels/Channels/
H A DBasic2.java70 if (reader.hash() != writer.hash())
81 private volatile int hash; field in class:Basic2.Reader
109 hash = hash ^ value;
121 int hash() { return hash; } method in class:Basic2.Reader
127 private volatile int hash; field in class:Basic2.Writer
135 hash = 0;
154 hash
173 int hash() { return hash; } method in class:Basic2.Writer
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/util/
H A DIdentityHashtable.java49 int hash; field in class:IdentityHashtableEntry
57 * The hash table data.
62 * The total number of entries in the hash table.
204 int hash = System.identityHashCode(key);
205 int index = (hash & 0x7FFFFFFF) % tab.length;
207 if ((e.hash == hash) && e.key == key) {
226 int hash = System.identityHashCode(key);
227 int index = (hash & 0x7FFFFFFF) % tab.length;
229 if ((e.hash
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/attach/
H A DVirtualMachineDescriptor.java64 private volatile int hash; // 0 => not computed field in class:VirtualMachineDescriptor
144 * Returns a hash-code value for this VirtualMachineDescriptor. The hash
149 * @return A hash-code value for this descriptor.
152 if (hash != 0) {
153 return hash;
155 hash = provider.hashCode() * 127 + id.hashCode();
156 return hash;
/openjdk7/hotspot/src/share/vm/classfile/
H A Dplaceholders.cpp34 PlaceholderEntry* PlaceholderTable::new_entry(int hash, Symbol* name, argument
37 PlaceholderEntry* entry = (PlaceholderEntry*)Hashtable<Symbol*, mtClass>::new_entry(hash, name);
63 void PlaceholderTable::add_entry(int index, unsigned int hash, argument
71 PlaceholderEntry* entry = new_entry(hash, class_name, class_loader(), havesupername, supername);
77 void PlaceholderTable::remove_entry(int index, unsigned int hash, argument
84 if (probe->hash() == hash && probe->equals(class_name, class_loader())) {
94 PlaceholderEntry* PlaceholderTable::get_entry(int index, unsigned int hash, argument
104 if (place_probe->hash() == hash
112 find_entry(int index, unsigned int hash, Symbol* class_name, Handle class_loader) argument
124 find_and_add(int index, unsigned int hash, Symbol* name, Handle loader, classloadAction action, Symbol* supername, Thread* thread) argument
155 find_and_remove(int index, unsigned int hash, Symbol* name, Handle loader, Thread* thread) argument
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DBasicStroke.java377 * @return a hash code for this stroke.
380 int hash = Float.floatToIntBits(width);
381 hash = hash * 31 + join;
382 hash = hash * 31 + cap;
383 hash = hash * 31 + Float.floatToIntBits(miterlimit);
385 hash = hash * 3
[all...]
/openjdk7/jdk/make/tools/src/build/tools/generatenimbus/
H A DPaint.java138 int hash = 5;
139 hash = 61 * hash + (this.propertyName != null ? this.propertyName.hashCode() : 0);
140 hash = 61 * hash + (this.defaultColorVariableName != null ? this.defaultColorVariableName.hashCode() : 0);
141 hash = 61 * hash + Float.floatToIntBits(this.saturationOffset);
142 hash = 61 * hash + Float.floatToIntBits(this.brightnessOffset);
143 hash
[all...]
/openjdk7/jdk/test/sun/security/provider/certpath/CertId/
H A DCheckCertId.java37 * Checks that the hash value for a certificate's issuer name is generated
50 /* Compute the hash in the same way as CertId constructor */
51 MessageDigest hash = MessageDigest.getInstance("SHA1");
52 hash.update(cert.getSubjectX500Principal().getEncoded());
53 byte[] expectedHash = hash.digest();
60 Exception("Bad hash value for issuer name in CertId object");
/openjdk7/jdk/test/java/rmi/server/RemoteObject/notExtending/
H A DNotExtending_Skel.java40 public void dispatch(java.rmi.Remote obj, java.rmi.server.RemoteCall call, int opnum, long hash) argument
44 throw new java.rmi.UnmarshalException("invalid method hash");
46 if (hash != interfaceHash)
47 throw new java.rmi.server.SkeletonMismatchException("interface hash mismatch");
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/util/
H A DLocalNameQualifiedNamesMap.java46 public Entry(String key, int hash, Entry next) { argument
48 _hash = hash;
130 final int hash = hashHash(key.hashCode());
133 final Entry entry = _readOnlyMap.getEntry(key, hash);
139 final int tableIndex = indexFor(hash, _table.length);
141 if (e._hash == hash && eq(key, e._key)) {
146 return addEntry(key, hash, tableIndex);
150 final int hash = hashHash(key.hashCode());
152 final int tableIndex = indexFor(hash, _table.length);
154 if (e._hash == hash
162 getEntry(String key, int hash) argument
181 addEntry(String key, int hash, int bucketIndex) argument
[all...]
/openjdk7/jdk/src/share/classes/java/awt/image/
H A DMultiPixelPackedSampleModel.java677 int hash = 0;
678 hash = width;
679 hash <<= 8;
680 hash ^= height;
681 hash <<= 8;
682 hash ^= numBands;
683 hash <<= 8;
684 hash ^= dataType;
685 hash <<= 8;
686 hash
[all...]

Completed in 121 milliseconds

1234567891011