|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.util.deferred.THC
public class THC
An implementation of a typesafe heterogenous container, taken from effective java. See also http://kingsfleet.blogspot.com/2009/08/thc-and-bit-of-thunking-creative-ways.html
Nested Class Summary | |
---|---|
static interface |
THC.DeriveValue<T>
Allow the client to provide a derrived value |
Constructor Summary | |
---|---|
THC()
|
Method Summary | ||
---|---|---|
|
as(java.lang.Class<Interface> type)
|
|
|
get(java.lang.Class<T> key)
|
|
|
put(java.lang.Class<T> key,
T value)
|
|
|
put(java.lang.Class<T> key,
THC.DeriveValue<T> value)
Place a value in the structure that has yet to be derrived. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public THC()
Method Detail |
---|
public <T> void put(java.lang.Class<T> key, THC.DeriveValue<T> value)
key
- value
- The value to be thought of in the futurepublic <T> void put(java.lang.Class<T> key, T value)
public <T> T get(java.lang.Class<T> key)
public <Interface> Interface as(java.lang.Class<Interface> type)
type
- The type of the interface, all methods must have non parameters and
non void return types
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |