Package it.tidalwave.util
Class As.Type<T>
java.lang.Object
it.tidalwave.util.As.Type<T>
- Enclosing interface:
As
A type reference for roles that can be used in place of a class literal, especially when roles with generics are
used. Example of usage:
interface DataRetriever<T>
{
public List<T> retrieve();
}
class CodeSample
{
private static final As.Type<DataRetriever<String>> _StringRetriever_ = As.type(DataRetriever.class);
public void method (As object)
{
List<String> f3 = object.as(_StringRetriever_).retrieve();
}
}
- Since:
- 3.2-ALPHA-12
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Type
public Type()
-