aboutsummaryrefslogtreecommitdiff
path: root/java/com/xagasoft
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-02-16 06:19:47 +0000
committerMike Buland <eichlan@xagasoft.com>2012-02-16 06:19:47 +0000
commit93831404b4d4ba4e964ebe542c52bc196585d4ab (patch)
tree46bd5d1d8d3d5987bf977624f7b9913a31b2042e /java/com/xagasoft
parent1dbbf711979031c338694407d25758574beaf833 (diff)
downloadlibgats-93831404b4d4ba4e964ebe542c52bc196585d4ab.tar.gz
libgats-93831404b4d4ba4e964ebe542c52bc196585d4ab.tar.bz2
libgats-93831404b4d4ba4e964ebe542c52bc196585d4ab.tar.xz
libgats-93831404b4d4ba4e964ebe542c52bc196585d4ab.zip
Added a missing and badly needed helper function to the dictionary, put with
a byte array as a parameter.
Diffstat (limited to '')
-rw-r--r--java/com/xagasoft/gats/GatsDictionary.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/com/xagasoft/gats/GatsDictionary.java b/java/com/xagasoft/gats/GatsDictionary.java
index b04f02c..a980b9d 100644
--- a/java/com/xagasoft/gats/GatsDictionary.java
+++ b/java/com/xagasoft/gats/GatsDictionary.java
@@ -142,6 +142,15 @@ public class GatsDictionary extends GatsObject implements Map<String,GatsObject>
142 } 142 }
143 143
144 /** 144 /**
145 * Helper function that inserts a new com.xagasoft.gats.GatsString with the
146 * value val.
147 */
148 public GatsObject put( String key, byte val[] )
149 {
150 return hValue.put( key, new GatsString( val ) );
151 }
152
153 /**
145 * Helper function that gets the specified GatsObject, casts it to a 154 * Helper function that gets the specified GatsObject, casts it to a
146 * com.xagasoft.gats.GatsInteger and extracts the value from it. If the 155 * com.xagasoft.gats.GatsInteger and extracts the value from it. If the
147 * key specified does not appear in the GatsDictionary or is not the correct 156 * key specified does not appear in the GatsDictionary or is not the correct