Coverage Report - org.apache.commons.collections.primitives.decorators.BaseProxyFloatCollection
 
Classes in this File Line Coverage Branch Coverage Complexity
BaseProxyFloatCollection
100%
19/19
N/A
1
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to You under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *     http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.apache.commons.collections.primitives.decorators;
 18  
 
 19  
 import org.apache.commons.collections.primitives.FloatCollection;
 20  
 import org.apache.commons.collections.primitives.FloatIterator;
 21  
 
 22  
 /**
 23  
  * 
 24  
  * @since Commons Primitives 1.0
 25  
  * @version $Revision: 480463 $ $Date: 2006-11-29 03:15:23 -0500 (Wed, 29 Nov 2006) $
 26  
  * 
 27  
  * @author Rodney Waldhoff 
 28  
  */
 29  
 abstract class BaseProxyFloatCollection implements FloatCollection {
 30  
     protected abstract FloatCollection getProxiedCollection();
 31  
 
 32  17
     protected BaseProxyFloatCollection() {
 33  17
     }
 34  
     
 35  
     public boolean add(float element) {
 36  1
         return getProxiedCollection().add(element);
 37  
     }
 38  
 
 39  
     public boolean addAll(FloatCollection c) {
 40  1
         return getProxiedCollection().addAll(c);
 41  
     }
 42  
 
 43  
     public void clear() {
 44  1
         getProxiedCollection().clear();
 45  1
     }
 46  
 
 47  
     public boolean contains(float element) {
 48  1
         return getProxiedCollection().contains(element);
 49  
     }
 50  
 
 51  
     public boolean containsAll(FloatCollection c) {
 52  1
         return getProxiedCollection().containsAll(c);
 53  
     }
 54  
 
 55  
     public boolean isEmpty() {
 56  2
         return getProxiedCollection().isEmpty();
 57  
     }
 58  
 
 59  
     public FloatIterator iterator() {
 60  1
         return getProxiedCollection().iterator();
 61  
     }
 62  
 
 63  
     public boolean removeAll(FloatCollection c) {
 64  1
         return getProxiedCollection().removeAll(c);
 65  
     }
 66  
 
 67  
     public boolean removeElement(float element) {
 68  1
         return getProxiedCollection().removeElement(element);
 69  
     }
 70  
 
 71  
     public boolean retainAll(FloatCollection c) {
 72  1
         return getProxiedCollection().retainAll(c);
 73  
     }
 74  
 
 75  
     public int size() {
 76  6
         return getProxiedCollection().size();
 77  
     }
 78  
 
 79  
     public float[] toArray() {
 80  1
         return getProxiedCollection().toArray();
 81  
     }
 82  
 
 83  
     public float[] toArray(float[] a) {
 84  1
         return getProxiedCollection().toArray(a);
 85  
     }
 86  
 
 87  
     // TODO: Add note about possible contract violations here.
 88  
     
 89  
     public boolean equals(Object obj) {
 90  1
         return getProxiedCollection().equals(obj);
 91  
     }
 92  
 
 93  
     public int hashCode() {
 94  1
         return getProxiedCollection().hashCode();
 95  
     }
 96  
 
 97  
     public String toString() {
 98  1
         return getProxiedCollection().toString();
 99  
     }
 100  
 
 101  
 }