create changelog entry
[debian/openrocket] / android-libraries / achartengine / src / org / achartengine / util / XYEntry.java
1 /**
2  * Copyright (C) 2009 - 2012 SC 4ViewSoft SRL
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 package org.achartengine.util;
17
18 import java.util.Map.Entry;
19
20 /**
21  * A map entry value encapsulating an XY point.
22  */
23 public class XYEntry<K, V> implements Entry<K, V> {
24   private final K key;
25   
26   private V value;
27
28   public XYEntry(K key, V value) {
29     this.key = key;
30     this.value = value;
31   }
32
33   public K getKey() {
34     return key;
35   }
36
37   public V getValue() {
38     return value;
39   }
40
41   public V setValue(V object) {
42     this.value = object;
43     return this.value;
44   }
45 }