19cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll/* 29cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * Copyright (C) 2009 The Android Open Source Project 39cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * 49cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * Licensed under the Apache License, Version 2.0 (the "License"); 59cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * you may not use this file except in compliance with the License. 69cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * You may obtain a copy of the License at 79cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * 89cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * http://www.apache.org/licenses/LICENSE-2.0 99cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * 109cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * Unless required by applicable law or agreed to in writing, software 119cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * distributed under the License is distributed on an "AS IS" BASIS, 129cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 139cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * See the License for the specific language governing permissions and 149cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * limitations under the License. 159cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll */ 169cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 179cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Mollpackage data; 189cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 199cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Mollimport org.w3c.dom.css.Rect; 209cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 219cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Mollimport java.io.InputStream; 229cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Mollimport java.util.ArrayList; 239cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Mollimport java.util.List; 249cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Mollimport java.util.Map; 259cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Mollimport java.util.Set; 269cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 279cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll/** 289cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll * 299cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll */ 309cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Mollpublic class TestTemplateClass<T extends InputStream, U> { 319cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 329cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll private final Map<T, U> mMap_T_U = null; 339cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 349cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll public Map<ArrayList<T>, Map<String, ArrayList<U>>> mMap_T_S_U = null; 359cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 369cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll public TestTemplateClass() { 379cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll } 389cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 399cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll public Map<T, U> getMap_T_U() { 409cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll return mMap_T_U; 419cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll } 429cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 439cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll public Map<ArrayList<T>, Map<String, ArrayList<U>>> getMap_T_S_U() { 449cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll return mMap_T_S_U; 459cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll } 469cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 479cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll public void draw(List<? extends Rect> shape) { 489cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll } 499cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 509cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll public static <T extends Comparable<? super T>> void sort(List<T> list) { 519cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll } 529cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll 539cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll public <X extends T, Y> void getMap(List<T> list, Map<T, U> tu, Map<X, Set<? super Y>> xy) { 549cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll } 559cdcde3017e17e1154341e697f855dd15d5d8a47Raphael Moll} 56