Coverage report

  %line %branch
org.apache.jcs.utils.struct.LRUMapEntry
78% 
100% 

 1  
 package org.apache.jcs.utils.struct;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *   http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import java.io.Serializable;
 23  
 import java.util.Map.Entry;
 24  
 
 25  
 /**
 26  
  * Entry for the LRUMap.
 27  
  * <p>
 28  
  * @author Aaron Smuts
 29  
  */
 30  
 public class LRUMapEntry
 31  
     implements Entry, Serializable
 32  
 {
 33  
     private static final long serialVersionUID = -8176116317739129331L;
 34  
 
 35  
     private Object key;
 36  
 
 37  
     private Object value;
 38  
 
 39  
     /**
 40  
      * S
 41  
      * @param key
 42  
      * @param value
 43  
      */
 44  20
     public LRUMapEntry( Object key, Object value )
 45  436153
     {
 46  436173
         this.key = key;
 47  436174
         this.value = value;
 48  436174
     }
 49  
 
 50  
     /*
 51  
      * (non-Javadoc)
 52  
      * @see java.util.Map$Entry#getKey()
 53  
      */
 54  
     public Object getKey()
 55  
     {
 56  49335
         return this.key;
 57  
     }
 58  
 
 59  
     /*
 60  
      * (non-Javadoc)
 61  
      * @see java.util.Map$Entry#getValue()
 62  
      */
 63  
     public Object getValue()
 64  
     {
 65  408446
         return this.value;
 66  
     }
 67  
 
 68  
     /*
 69  
      * (non-Javadoc)
 70  
      * @see java.util.Map$Entry#setValue(java.lang.Object)
 71  
      */
 72  
     public Object setValue( Object valueArg )
 73  
     {
 74  0
         Object old = this.value;
 75  0
         this.value = valueArg;
 76  0
         return old;
 77  
     }
 78  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.