Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added asObjSeq method

  • Loading branch information...
commit 44e7c7da3527d955a8189a4e27e74abd73a814a4 1 parent 30a7d10
michelegonella authored
5 zen-dataobject/src/main/java/com/nominanuda/dataobject/DataStructHelper.java
View
@@ -696,5 +696,10 @@ public DataArray parseArrayUtf8(InputStream json) {
public DataArray parseArray(String json) {
return parseArray(json, false);
}
+ //can lead to classcastexception in case it is not a dataobjectarray
+ @SuppressWarnings("unchecked")
+ public Iterable<DataObject> asObjSeq(DataArray arr) {
+ return (Iterable<DataObject>)(Iterable<?>)arr;
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.