Package com.sun.msv.grammar
Class ExpressionPool.ClosedHash
java.lang.Object
com.sun.msv.grammar.ExpressionPool.ClosedHash
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ExpressionPool
expression cache by closed hash.
Special care has to be taken wrt threading.
This implementation allows get and put method to be called simulatenously.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(int hash, Expression child, Class<?> type) get
(Expression key) getBinExp
(Expression left, Expression right, Class<?> type) void
put
(Expression newExp) put method.
-
Constructor Details
-
ClosedHash
public ClosedHash() -
ClosedHash
-
-
Method Details
-
getBinExp
-
get
-
get
-
put
put method. No two threads can call this method simulatenously, and it's the caller's responsibility to enforce it.
-