1d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy/* 2d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * Copyright (C) 2009 The Android Open Source Project 3d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * 4d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * Licensed under the Apache License, Version 2.0 (the "License"); 5d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * you may not use this file except in compliance with the License. 6d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * You may obtain a copy of the License at 7d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * 8d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * http://www.apache.org/licenses/LICENSE-2.0 9d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * 10d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * Unless required by applicable law or agreed to in writing, software 11d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * distributed under the License is distributed on an "AS IS" BASIS, 12d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * See the License for the specific language governing permissions and 14d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * limitations under the License. 15d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy */ 16d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy 17d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guypackage android.util; 18d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy 19d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy/** 20d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy * @hide 21d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy */ 22d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guypublic interface PoolableManager<T extends Poolable<T>> { 23d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy T newInstance(); 24d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy 25d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy void onAcquired(T element); 26d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy void onReleased(T element); 27d1b3dd058d2015cd1f2a3ef7fb3798f0d7923fe3Romain Guy} 28