- Java generic classes
{
protected ComboBoxDefinition(BeanContainer<T> beanContainer)
{
}
}
- Java generic methods
{
public void draw(List<? extends Control> controls) {
}
}
- Java static generic methods
public class SomeClass
{
public static <T extends Identifiable> void create(BeanContainer<T> beanContainer) {
{
public static <T extends Identifiable> void create(BeanContainer<T> beanContainer) {
}
}
}
Very nice to read this problem solving blog.
ReplyDeleteThanks for sharing this info .
As, statics should be used when you don't want to have varying behavior for different objects.
http://efectivejava.blogspot.in/2013/08/when-to-use-static-members-in-java.html