S
Steve Green
I was just doing a bit of coding for Java 1.5 and using generics; I am
rewriting an application I developed using the new features. I said it
before they implemented generics that they needed typedef and now that we
have generics I say again ... we need typedef ...
Which is really worse having to cast a return value on occasion or defining
HashMap<Key,Class> var = new HashMap<Key,Class>();
I try to use descriptive class names so they are longer than this.
We should be able to define an alias to Generic types.
For example:
typedef HashMap<Key,Class> MyHashMap;
Just a little frustrated,
Steve
rewriting an application I developed using the new features. I said it
before they implemented generics that they needed typedef and now that we
have generics I say again ... we need typedef ...
Which is really worse having to cast a return value on occasion or defining
HashMap<Key,Class> var = new HashMap<Key,Class>();
I try to use descriptive class names so they are longer than this.
We should be able to define an alias to Generic types.
For example:
typedef HashMap<Key,Class> MyHashMap;
Just a little frustrated,
Steve