Coverage Report - org.apache.commons.ognl.internal.Entry
 
Classes in this File Line Coverage Branch Coverage Complexity
Entry
0%
0/12
N/A
1
 
 1  
 package org.apache.commons.ognl.internal;
 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  
 
 23  
 /**
 24  
  * Used by {@link ClassCacheImpl} to store entries in the cache.
 25  
  * <p/>
 26  
  * $Id: Entry.java 1194951 2011-10-29 17:54:24Z mcucchiara $
 27  
  */
 28  
 class Entry<K, V>
 29  
 {
 30  
 
 31  
     private Entry<K, V> next;
 32  
 
 33  
     private final K key;
 34  
 
 35  
     private V value;
 36  
 
 37  
     public Entry( K key, V value )
 38  0
     {
 39  0
         this.key = key;
 40  0
         this.value = value;
 41  0
     }
 42  
 
 43  
     public K getKey()
 44  
     {
 45  0
         return key;
 46  
     }
 47  
 
 48  
     public V getValue()
 49  
     {
 50  0
         return value;
 51  
     }
 52  
 
 53  
     public void setValue( V value )
 54  
     {
 55  0
         this.value = value;
 56  0
     }
 57  
 
 58  
     public Entry<K, V> getNext()
 59  
     {
 60  0
         return next;
 61  
     }
 62  
 
 63  
     public void setNext( Entry<K, V> next )
 64  
     {
 65  0
         this.next = next;
 66  0
     }
 67  
 
 68  
     @Override
 69  
     public String toString()
 70  
     {
 71  0
         return "Entry[" + "next=" + next + '\n' + ", key=" + key + '\n' + ", value=" + value + '\n' + ']';
 72  
     }
 73  
 
 74  
 }