Code example for Collection

Methods: iterator

0
 
    public <X, Y> void genericMethod3(X a, List<Y extends InnerTest> b) {
    } 
 
    public <T extends InnerTest> void genericMethod4(T[] a, Collection<T> b, Collection<?> c) {
        Iterator<T> i = b.iterator();
    } 
 
    public void someMethod(InnerTest self) {
        mSomeField = self.mSomeField;
        MyStaticInnerClass m = new MyStaticInnerClass();
        mInnerInstance = m;
        mTheIntEnum = null;
        mGeneric1 = new MyGenerics1();
        genericMethod(new DerivingClass[0], new ArrayList<DerivingClass>(), new ArrayList<InnerTest>());
    } 
}