From e6655ae0e129a925f101638d5ab57636550c07af Mon Sep 17 00:00:00 2001 From: David Date: Thu, 21 Apr 2011 18:41:39 +0000 Subject: david - dictionary : ) --- java/com/xagasoft/gats/GatsDictionary.java | 65 +++++++++++++++++++++++++++++- java/com/xagasoft/gats/GatsList.java | 6 +++ 2 files changed, 70 insertions(+), 1 deletion(-) (limited to 'java/com/xagasoft/gats') diff --git a/java/com/xagasoft/gats/GatsDictionary.java b/java/com/xagasoft/gats/GatsDictionary.java index 9f09ac0..cf6d390 100644 --- a/java/com/xagasoft/gats/GatsDictionary.java +++ b/java/com/xagasoft/gats/GatsDictionary.java @@ -2,8 +2,11 @@ package com.xagasoft.gats; import java.io.InputStream; import java.io.OutputStream; +import java.util.Collection; +import java.util.Map; +import java.util.Set; -public class GatsDictionary extends GatsObject +public class GatsDictionary extends GatsObject implements Map { public int getType() { @@ -17,5 +20,65 @@ public class GatsDictionary extends GatsObject public void write( OutputStream os ) throws java.io.IOException { } + + public void clear() { + // TODO Auto-generated method stub + + } + + public boolean containsKey(Object arg0) { + // TODO Auto-generated method stub + return false; + } + + public boolean containsValue(Object arg0) { + // TODO Auto-generated method stub + return false; + } + + public Set> entrySet() { + // TODO Auto-generated method stub + return null; + } + + public GatsObject get(Object arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEmpty() { + // TODO Auto-generated method stub + return false; + } + + public Set keySet() { + // TODO Auto-generated method stub + return null; + } + + public GatsObject put(String arg0, GatsObject arg1) { + // TODO Auto-generated method stub + return null; + } + + public void putAll(Map arg0) { + // TODO Auto-generated method stub + + } + + public GatsObject remove(Object arg0) { + // TODO Auto-generated method stub + return null; + } + + public int size() { + // TODO Auto-generated method stub + return 0; + } + + public Collection values() { + // TODO Auto-generated method stub + return null; + } }; diff --git a/java/com/xagasoft/gats/GatsList.java b/java/com/xagasoft/gats/GatsList.java index 7f04db6..35b2a4c 100644 --- a/java/com/xagasoft/gats/GatsList.java +++ b/java/com/xagasoft/gats/GatsList.java @@ -3,6 +3,7 @@ package com.xagasoft.gats; import java.io.InputStream; import java.io.OutputStream; +import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import java.util.List; @@ -48,6 +49,11 @@ public class GatsList extends GatsObject implements List os.write( (int)'e' ); } + public String toString() + { + return lValue.toString(); + } + public boolean add( GatsObject arg0 ) { return lValue.add( arg0 ); -- cgit v1.2.3