roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r538331 - /roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java
Date Tue, 15 May 2007 21:38:44 GMT
Author: agilliland
Date: Tue May 15 14:38:43 2007
New Revision: 538331

URL: http://svn.apache.org/viewvc?view=rev&rev=538331
Log:
support any object type, not just strings.


Modified:
    roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java

Modified: roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java
URL: http://svn.apache.org/viewvc/roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java?view=diff&rev=538331&r1=538330&r2=538331
==============================================================================
--- roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java (original)
+++ roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java Tue May 15
14:38:43 2007
@@ -24,30 +24,30 @@
  */
 public class KeyValueObject {
     
-    private String key = null;
-    private String value = null;
+    private Object key = null;
+    private Object value = null;
     
     
     public KeyValueObject() {}
     
-    public KeyValueObject(String key, String value) {
+    public KeyValueObject(Object key, Object value) {
         this.setKey(key);
         this.setValue(value);
     }
 
-    public String getKey() {
+    public Object getKey() {
         return key;
     }
 
-    public void setKey(String key) {
+    public void setKey(Object key) {
         this.key = key;
     }
 
-    public String getValue() {
+    public Object getValue() {
         return value;
     }
 
-    public void setValue(String value) {
+    public void setValue(Object value) {
         this.value = value;
     }
     



Mime
View raw message