Class JsArrayCollection<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    java.lang.Iterable<T>, java.util.Collection<T>

    public class JsArrayCollection<T>
    extends java.util.AbstractCollection<T>
    a Java Friendly way of working with Js Arrays using the Java.util.Collection API https://groups.google.com/forum/#!topic/google-web-toolkit/_8X9WPL6qwM
    • Constructor Summary

      Constructors 
      Constructor Description
      JsArrayCollection()
      creates an empty array
      JsArrayCollection​(com.google.gwt.core.client.JavaScriptObject data)
      creates JsArrayCollection wrapping an existing js array
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> JsArrayCollection<T> create​(com.google.gwt.core.client.JavaScriptObject data)  
      java.util.Iterator<T> iterator()  
      int size()  
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        equals, hashCode, parallelStream, removeIf, spliterator, stream
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • JsArrayCollection

        public JsArrayCollection()
        creates an empty array
      • JsArrayCollection

        public JsArrayCollection​(com.google.gwt.core.client.JavaScriptObject data)
        creates JsArrayCollection wrapping an existing js array
    • Method Detail

      • create

        public static <T> JsArrayCollection<T> create​(com.google.gwt.core.client.JavaScriptObject data)
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.util.Collection<T>
        Specified by:
        iterator in interface java.lang.Iterable<T>
        Specified by:
        iterator in class java.util.AbstractCollection<T>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<T>
        Specified by:
        size in class java.util.AbstractCollection<T>