com.google.gwt.maps.jsio.client.impl
Class AbstractJSListWrapper<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
com.google.gwt.maps.jsio.client.impl.AbstractJSListWrapper<T>
- Type Parameters:
T
- the type of element to store in the list.
- All Implemented Interfaces:
- java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>
- Direct Known Subclasses:
- JSListWrapper, JSStringListWrapper
public abstract class AbstractJSListWrapper<T>
- extends java.util.AbstractList<T>
Common implementation details for JSListWrapper
and
JSStringListWrapper
.
Field Summary |
protected com.google.gwt.core.client.JavaScriptObject |
arr
|
Fields inherited from class java.util.AbstractList |
modCount |
Method Summary |
void |
clear()
|
com.google.gwt.core.client.JavaScriptObject |
getJavaScriptObject()
Return the JSONObject that is backing the wrapper. |
protected void |
removeRange(int fromIndex,
int toIndex)
|
void |
setJSONData(java.lang.String data)
Unimplemented. |
int |
size()
|
protected static int |
sizeNative(com.google.gwt.core.client.JavaScriptObject array)
|
protected static java.lang.Object |
splice(com.google.gwt.core.client.JavaScriptObject array,
int from,
int length)
|
protected static
|
splice(com.google.gwt.core.client.JavaScriptObject array,
int index,
int length,
T value)
|
Methods inherited from class java.util.AbstractList |
add, add, addAll, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
arr
protected com.google.gwt.core.client.JavaScriptObject arr
AbstractJSListWrapper
public AbstractJSListWrapper()
sizeNative
protected static int sizeNative(com.google.gwt.core.client.JavaScriptObject array)
splice
protected static java.lang.Object splice(com.google.gwt.core.client.JavaScriptObject array,
int from,
int length)
splice
protected static <T> java.lang.Object splice(com.google.gwt.core.client.JavaScriptObject array,
int index,
int length,
T value)
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<T>
- Specified by:
clear
in interface java.util.List<T>
- Overrides:
clear
in class java.util.AbstractList<T>
getJavaScriptObject
public com.google.gwt.core.client.JavaScriptObject getJavaScriptObject()
- Return the JSONObject that is backing the wrapper. Modifications to the
returned JSONObject are not required to be correctly reflected in the
source wrapper.
setJSONData
public void setJSONData(java.lang.String data)
throws JSONWrapperException
- Unimplemented.
- Throws:
JSONWrapperException
size
public int size()
- Specified by:
size
in interface java.util.Collection<T>
- Specified by:
size
in interface java.util.List<T>
- Specified by:
size
in class java.util.AbstractCollection<T>
removeRange
protected void removeRange(int fromIndex,
int toIndex)
- Overrides:
removeRange
in class java.util.AbstractList<T>