diff src/alice/datasegment/Receiver.java @ 152:b23581a5243c working

minor change
author sugi
date Thu, 29 Nov 2012 16:29:58 +0900 (2012-11-29)
parents 87f1a30a8c82
children 4658bf530834
line wrap: on
line diff
--- a/src/alice/datasegment/Receiver.java	Thu Nov 29 16:28:36 2012 +0900
+++ b/src/alice/datasegment/Receiver.java	Thu Nov 29 16:29:58 2012 +0900
@@ -2,6 +2,7 @@
 
 import java.io.IOException;
 
+import org.msgpack.type.ArrayValue;
 import org.msgpack.type.Value;
 import org.msgpack.type.ValueType;
 
@@ -89,6 +90,13 @@
 		return 0.0f;
 	}
 	
+	public ArrayValue asArray(){
+		if (val.getType() == ValueType.ARRAY){
+			return val.asArrayValue();
+		}
+		return null;
+	}
+	
 	public <T> T asClass(Class<T> clazz) {
 		try {
 			return SingletonMessage.getInstance().convert(val, clazz);