|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.vajhoej.record.StructInfoCache
public class StructInfoCache
Class StructInfoCache caches StructInfo objects in a singleton cache.
| Method Summary | ||
|---|---|---|
static
|
analyze(java.lang.Class<T> t)
Convenience method to get StructInfo from cache and analyze class if not in cache. |
|
StructInfo |
get(java.lang.Class<?> clz)
Get StructInfo from cache. |
|
double |
getHitRate()
Get cache hit rate. |
|
static StructInfoCache |
getInstance()
Get singleton instance. |
|
void |
put(java.lang.Class<?> clz,
StructInfo si)
Put StructInfo into cache. |
|
void |
reset()
Reset cache. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static StructInfoCache getInstance()
public StructInfo get(java.lang.Class<?> clz)
clz - class we want StructInfo for
public void put(java.lang.Class<?> clz,
StructInfo si)
clz - class we have StructInfo forsi - StructInfopublic double getHitRate()
public void reset()
public static <T> StructInfo analyze(java.lang.Class<T> t)
throws RecordException
t - class
RecordException - if error analyzing cache
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||