forked from GitHub/gf-core
GWT: added IterableJsArray.isEmpty().
This commit is contained in:
@@ -10,6 +10,10 @@ public class IterableJsArray<T extends JavaScriptObject> extends JsArray<T> {
|
||||
|
||||
protected IterableJsArray() {}
|
||||
|
||||
public final boolean isEmpty() {
|
||||
return length() == 0;
|
||||
}
|
||||
|
||||
public final Iterable<T> iterable() {
|
||||
return new Iterable<T>() {
|
||||
public Iterator<T> iterator() {
|
||||
|
||||
Reference in New Issue
Block a user