|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.properties.PropertyCache
public class PropertyCache
Thin wrapper around a HashMap to implement the property caching idiom in which a new Property instance is created then tested against cached instances created previously. If an existing property is found, this is retained and the newly created one is instantly eligible for garbage collection.
Constructor Summary | |
---|---|
PropertyCache()
|
Method Summary | |
---|---|
Property |
fetch(Property prop)
Checks if the given property is present in the cache - if so, returns a reference to the cached value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyCache()
Method Detail |
---|
public Property fetch(Property prop)
obj
-
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |