Home | History | Annotate | Download | only in leak
      1 /*
      2  * Copyright (C) 2017 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.systemui.util.leak;
     18 
     19 import java.util.Collection;
     20 import java.util.Iterator;
     21 
     22 abstract class AbstractCollection<T> implements Collection<T> {
     23     @Override
     24     public abstract int size();
     25 
     26     @Override
     27     public abstract boolean isEmpty();
     28 
     29     @Override
     30     public boolean contains(Object o) {
     31         throw new UnsupportedOperationException();
     32     }
     33 
     34     @Override
     35     public Iterator<T> iterator() {
     36         throw new UnsupportedOperationException();
     37     }
     38 
     39     @Override
     40     public Object[] toArray() {
     41         throw new UnsupportedOperationException();
     42     }
     43 
     44     @Override
     45     public <T1> T1[] toArray(T1[] t1s) {
     46         throw new UnsupportedOperationException();
     47     }
     48 
     49     @Override
     50     public boolean add(T t) {
     51         throw new UnsupportedOperationException();
     52     }
     53 
     54     @Override
     55     public boolean remove(Object o) {
     56         throw new UnsupportedOperationException();
     57     }
     58 
     59     @Override
     60     public boolean containsAll(Collection<?> collection) {
     61         throw new UnsupportedOperationException();
     62     }
     63 
     64     @Override
     65     public boolean addAll(Collection<? extends T> collection) {
     66         throw new UnsupportedOperationException();
     67     }
     68 
     69     @Override
     70     public boolean removeAll(Collection<?> collection) {
     71         throw new UnsupportedOperationException();
     72     }
     73 
     74     @Override
     75     public boolean retainAll(Collection<?> collection) {
     76         throw new UnsupportedOperationException();
     77     }
     78 
     79     @Override
     80     public void clear() {
     81         throw new UnsupportedOperationException();
     82     }
     83 }
     84