/** * Returns the property index, or -1. */ public static int getXhtmlPropertyIndex(String name) { return valueManagerIndex.get(name); }
indexes = new StringIntMap(len); valueManagers = vm; indexes.put(pn, i); if (fontSizeIndex == -1 && pn.equals(CSSConstants.CSS_FONT_SIZE_PROPERTY)) { shorthandIndexes = new StringIntMap(len); shorthandManagers = sm; for (int i = len - 1; i >= 0; --i) { shorthandIndexes.put(sm[i].getPropertyName(), i);
/** * Sets a new value for the given variable */ public void put( String key, int value ) { int hash = key.hashCode() & 0x7FFFFFFF; int index = hash % table.length; for ( Entry e = table[ index ]; e != null; e = e.next ) { if ( ( e.hash == hash ) && e.key.equals( key ) ) { e.value = value; return; } } // The key is not in the hash table int len = table.length; if ( count++ >= ( len - ( len >> 2 ) ) ) { // more than 75% loaded: grow rehash(); index = hash % table.length; } Entry e = new Entry( hash, key, value, table[ index ] ); table[ index ] = e; }
indexes = new StringIntMap(len); valueManagers = vm; indexes.put(pn, i); if (fontSizeIndex == -1 && pn.equals(CSSConstants.CSS_FONT_SIZE_PROPERTY)) { shorthandIndexes = new StringIntMap(len); shorthandManagers = sm; for (int i = len - 1; i >= 0; --i) { shorthandIndexes.put(sm[i].getPropertyName(), i);
/** * Sets a new value for the given variable */ public void put( String key, int value ) { int hash = key.hashCode() & 0x7FFFFFFF; int index = hash % table.length; for ( Entry e = table[ index ]; e != null; e = e.next ) { if ( ( e.hash == hash ) && e.key.equals( key ) ) { e.value = value; return; } } // The key is not in the hash table int len = table.length; if ( count++ >= ( len - ( len >> 2 ) ) ) { // more than 75% loaded: grow rehash(); index = hash % table.length; } Entry e = new Entry( hash, key, value, table[ index ] ); table[ index ] = e; }
/** * Returns the property index, or -1. */ public int getPropertyIndex(String name) { return indexes.get(name); }
indexes = new StringIntMap(len); valueManagers = vm; indexes.put(pn, i); if (fontSizeIndex == -1 && pn.equals(CSSConstants.CSS_FONT_SIZE_PROPERTY)) { shorthandIndexes = new StringIntMap(len); shorthandManagers = sm; for (int i = len - 1; i >= 0; --i) { shorthandIndexes.put(sm[i].getPropertyName(), i);
/** * Sets a new value for the given variable */ public void put( String key, int value ) { int hash = key.hashCode() & 0x7FFFFFFF; int index = hash % table.length; for ( Entry e = table[ index ]; e != null; e = e.next ) { if ( ( e.hash == hash ) && e.key.equals( key ) ) { e.value = value; return; } } // The key is not in the hash table int len = table.length; if ( count++ >= ( len - ( len >> 2 ) ) ) { // more than 75% loaded: grow rehash(); index = hash % table.length; } Entry e = new Entry( hash, key, value, table[ index ] ); table[ index ] = e; }
/** * Returns the shorthand property index, or -1. */ public static int getXhtmlShorthandIndex(String name) { return shorthandManagerIndex.get(name); }
/** * Returns the shorthand property index, or -1. */ public int getShorthandIndex(String name) { return shorthandIndexes.get(name); }
/** * Returns the shorthand property index, or -1. */ public int getShorthandIndex(String name) { return shorthandIndexes.get(name); }
/** * Returns the property index, or -1. */ public int getPropertyIndex(String name) { return indexes.get(name); }
/** * Returns the shorthand property index, or -1. */ public int getShorthandIndex(String name) { return shorthandIndexes.get(name); }
/** * Returns the property index, or -1. */ public int getPropertyIndex(String name) { return indexes.get(name); }