public class AWTGlyphGeometryCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
AWTGlyphGeometryCache.Entry
To manage collisions
|
static class |
AWTGlyphGeometryCache.Value
The object that holds glyph geometry.
|
Modifier and Type | Field and Description |
---|---|
protected int |
count
The number of entries
|
protected static int |
INITIAL_CAPACITY
The initial capacity
|
protected java.lang.ref.ReferenceQueue |
referenceQueue
The reference queue.
|
protected AWTGlyphGeometryCache.Entry[] |
table
The underlying array
|
Constructor and Description |
---|
AWTGlyphGeometryCache()
Creates a new AWTGlyphGeometryCache.
|
AWTGlyphGeometryCache(int c)
Creates a new AWTGlyphGeometryCache.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the table.
|
AWTGlyphGeometryCache.Value |
get(char c)
Gets the value of a variable
|
protected int |
hashCode(char c)
Computes a hash code corresponding to the given objects.
|
AWTGlyphGeometryCache.Value |
put(char c,
AWTGlyphGeometryCache.Value value)
Sets a new value for the given variable
|
protected void |
rehash()
Rehash the table
|
protected void |
removeClearedEntries()
Removes the cleared entries.
|
int |
size()
Returns the size of this table.
|
protected static final int INITIAL_CAPACITY
protected AWTGlyphGeometryCache.Entry[] table
protected int count
protected java.lang.ref.ReferenceQueue referenceQueue
public AWTGlyphGeometryCache()
public AWTGlyphGeometryCache(int c)
c
- The inital capacity.public int size()
public AWTGlyphGeometryCache.Value get(char c)
public AWTGlyphGeometryCache.Value put(char c, AWTGlyphGeometryCache.Value value)
public void clear()
protected void rehash()
protected int hashCode(char c)
protected void removeClearedEntries()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.