KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > InputGenerics


1 package com.puppycrawl.tools.checkstyle;
2
3 import java.util.Collection JavaDoc;
4 import java.util.Map JavaDoc;
5
6 public class InputGenerics<A, B extends Collection JavaDoc<?>, C extends D&E>
7 {
8 }
9
10 //No whitespace after commas
11
class BadCommas < A,B,C extends Map JavaDoc < A,String JavaDoc > >
12 {
13     private java.util.Hashtable JavaDoc < Integer JavaDoc, D > p =
14         new java.util.Hashtable JavaDoc < Integer JavaDoc, D > ();
15 }
16
17 // we need these interfaces for generics
18
interface D {
19 }
20 interface E {
21 }
22
Popular Tags