|
Android example source code file (InnerTest.java)
The InnerTest.java Android example source code/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Eclipse Public License, Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.eclipse.org/org/documents/epl-v10.php * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package mock_android.dummy; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; public class InnerTest { private int mSomeField; private MyStaticInnerClass mInnerInstance; private MyIntEnum mTheIntEnum; private MyGenerics1<int[][], InnerTest, MyIntEnum, float[]> mGeneric1; public class NotStaticInner2 extends NotStaticInner1 { } public class NotStaticInner1 { public void someThing() { mSomeField = 2; mInnerInstance = null; } } private static class MyStaticInnerClass { } private static class DerivingClass extends InnerTest { } // enums are a kind of inner static class public enum MyIntEnum { VALUE0(0), VALUE1(1), VALUE2(2); MyIntEnum(int myInt) { this.myInt = myInt; } final int myInt; } public static class MyGenerics1<T, U, V, W> { public MyGenerics1() { int a = 1; } } public <X> void genericMethod1(X a, X[] a) { } public <X, Y> void genericMethod2(X a, List Other Android examples (source code examples)Here is a short list of links related to this Android InnerTest.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.