JRE Emulation Reference
Google Web Toolkit includes a library that emulates a subset of the Java runtime library.
The list below shows the set of JRE packages, types and methods that GWT can translate automatically.
Note that in some cases, only a subset of methods is supported for a given type.
- java.lang
- java.lang.annotation
- java.util
- java.io
- java.sql
Package java.lang
- ArithmeticException
- ArithmeticException(String), ArithmeticException()
- ArrayIndexOutOfBoundsException
- ArrayIndexOutOfBoundsException(), ArrayIndexOutOfBoundsException(int), ArrayIndexOutOfBoundsException(String)
- ArrayStoreException
- ArrayStoreException(), ArrayStoreException(String)
- AssertionError
- AssertionError(), AssertionError(boolean), AssertionError(char), AssertionError(double), AssertionError(float), AssertionError(int), AssertionError(long),
AssertionError(Object)
- Boolean
- Boolean(boolean), Boolean(String), parseBoolean(String), toString(boolean), valueOf(boolean), valueOf(String), booleanValue(), compareTo(Boolean), equals(Object),
hashCode(), toString()
- Byte
- Byte(byte), Byte(String), decode(String), hashCode(byte), parseByte(String), parseByte(String, int), toString(byte), valueOf(byte), valueOf(String), valueOf(String,
int), byteValue(), compareTo(Byte), doubleValue(), equals(Object), floatValue(), hashCode(), intValue(), longValue(), shortValue(), toString()
- CharSequence
- charAt(int), length(), subSequence(int, int), toString()
- Character
- Character(char), charCount(int), codePointAt(char, int), codePointAt(char, int, int), codePointAt(CharSequence, int),
codePointBefore(char, int), codePointBefore(char, int, int), codePointBefore(CharSequence, int), codePointCount(char, int, int),
codePointCount(CharSequence, int, int), digit(char, int), forDigit(int, int), hashCode(char), isDigit(char), isHighSurrogate(char), isLetter(char), isLetterOrDigit(char),
isLowerCase(char), isLowSurrogate(char), isSpace(char), isSupplementaryCodePoint(int), isSurrogatePair(char, char), isUpperCase(char), isValidCodePoint(int),
offsetByCodePoints(char, int, int, int, int), offsetByCodePoints(CharSequence, int, int), toChars(int), toChars(int, char, int), toCodePoint(char,
char), toLowerCase(char), toString(char), toUpperCase(char), valueOf(char), charValue(), compareTo(Character), equals(Object), hashCode(), toString()
- Class
- desiredAssertionStatus(), getEnumConstants(), getName(), getSuperclass(), isArray(), isEnum(), isInterface(), isPrimitive(), toString()
- ClassCastException
- ClassCastException(), ClassCastException(String)
- Cloneable
- Comparable
- compareTo(T)
- Deprecated
- Double
- Double(double), Double(String), compare(double, double), hashCode(double), isInfinite(double), isNaN(double), parseDouble(String), toString(double), valueOf(double),
valueOf(String), byteValue(), compareTo(Double), doubleValue(), equals(Object), floatValue(), hashCode(), intValue(), isInfinite(), isNaN(), longValue(), shortValue(),
toString()
- Enum
- valueOf(Class, String), compareTo(E), equals(Object), getDeclaringClass(), hashCode(), name(), ordinal(), toString()
- Error
- Error(), Error(String, Throwable), Error(String), Error(Throwable)
- Exception
- Exception(), Exception(String), Exception(String, Throwable), Exception(Throwable)
- Float
- Float(double), Float(float), Float(String), compare(float, float), hashCode(float), isInfinite(float), isNaN(float), parseFloat(String), toString(float),
valueOf(float), valueOf(String), byteValue(), compareTo(Float), doubleValue(), equals(Object), floatValue(), hashCode(), intValue(), isInfinite(), isNaN(), longValue(),
shortValue(), toString()
- IllegalArgumentException
- IllegalArgumentException(), IllegalArgumentException(String), IllegalArgumentException(String, Throwable), IllegalArgumentException(Throwable)
- IllegalStateException
- IllegalStateException(), IllegalStateException(String), IllegalStateException(String, Throwable), IllegalStateException(Throwable)
- IndexOutOfBoundsException
- IndexOutOfBoundsException(), IndexOutOfBoundsException(String)
- Integer
- Integer(int), Integer(String), bitCount(int), decode(String), hashCode(int), highestOneBit(int), lowestOneBit(int), numberOfLeadingZeros(int),
numberOfTrailingZeros(int), parseInt(String), parseInt(String, int), reverse(int), reverseBytes(int), rotateLeft(int, int), rotateRight(int, int), signum(int),
toBinaryString(int), toHexString(int), toOctalString(int), toString(int), toString(int, int), valueOf(int), valueOf(String), valueOf(String, int), byteValue(), compareTo(Integer),
doubleValue(), equals(Object), floatValue(), hashCode(), intValue(), longValue(), shortValue(), toString()
- Iterable
- iterator()
- Long
- Long(long), Long(String), bitCount(long), decode(String), hashCode(long), highestOneBit(long), lowestOneBit(long), numberOfLeadingZeros(long),
numberOfTrailingZeros(long), parseLong(String), parseLong(String, int), reverse(long), reverseBytes(long), rotateLeft(long, int), rotateRight(long, int), signum(long),
toBinaryString(long), toHexString(long), toOctalString(long), toString(long), toString(long, int), valueOf(long), valueOf(String), valueOf(String, int), byteValue(),
compareTo(Long), doubleValue(), equals(Object), floatValue(), hashCode(), intValue(), longValue(), shortValue(), toString()
- Math
- Math(), abs(double), abs(float), abs(int), abs(long), acos(double), asin(double), atan(double), atan2(double, double), ceil(double), copySign(double, double),
copySign(float, float), cos(double), cosh(double), exp(double), expm1(double), floor(double), hypot(double, double), log(double), log10(double), log1p(double), max(double,
double), max(float, float), max(int, int), max(long, long), min(double, double), min(float, float), min(int, int), min(long, long), pow(double, double), random(), rint(double),
round(double), round(float), scalb(double, int), scalb(float, int), signum(double), signum(float), sin(double), sinh(double), sqrt(double), tan(double), tanh(double),
toDegrees(double), toRadians(double)
- NegativeArraySizeException
- NegativeArraySizeException(), NegativeArraySizeException(String)
- NullPointerException
- NullPointerException(), NullPointerException(String)
- Number
- Number(), byteValue(), doubleValue(), floatValue(), intValue(), longValue(), shortValue()
- NumberFormatException
- NumberFormatException(), NumberFormatException(String)
- Object
- Object(), equals(Object), getClass(), hashCode(), toString()
- Override
- Runnable
- run()
- RuntimeException
- RuntimeException(), RuntimeException(String), RuntimeException(String, Throwable), RuntimeException(Throwable)
- Short
- Short(short), Short(String), decode(String), hashCode(short), parseShort(String), parseShort(String, int), reverseBytes(short), toString(short), valueOf(short),
valueOf(String), valueOf(String, int), byteValue(), compareTo(Short), doubleValue(), equals(Object), floatValue(), hashCode(), intValue(), longValue(), shortValue(),
toString()
- StackTraceElement
- StackTraceElement(), getClassName(), getFileName(), getLineNumber(), getMethodName()
- String
- String(), String(char), String(char, int, int), String(int, int, int), String(String), String(StringBuffer),
String(StringBuilder), copyValueOf(char), copyValueOf(char, int, int), valueOf(boolean), valueOf(char), valueOf(char, int, int),
valueOf(char), valueOf(double), valueOf(float), valueOf(int), valueOf(long), valueOf(Object), charAt(int), codePointAt(int), codePointBefore(int),
codePointCount(int, int), compareTo(String), compareToIgnoreCase(String), concat(String), contains(CharSequence), contentEquals(CharSequence), contentEquals(StringBuffer),
endsWith(String), equals(Object), equalsIgnoreCase(String), getChars(int, int, char, int), hashCode(), indexOf(int), indexOf(int, int), indexOf(String),
indexOf(String, int), intern(), isEmpty(), lastIndexOf(int), lastIndexOf(int, int), lastIndexOf(String), lastIndexOf(String, int), length(), matches(String),
offsetByCodePoints(int, int), regionMatches(boolean, int, String, int, int), regionMatches(int, String, int, int), replace(char, char), replace(CharSequence, CharSequence),
replaceAll(String, String), replaceFirst(String, String), split(String), split(String, int), startsWith(String), startsWith(String, int), subSequence(int, int), substring(int),
substring(int, int), toCharArray(), toLowerCase(), toString(), toUpperCase(), trim()
- StringBuffer
- StringBuffer(), StringBuffer(CharSequence), StringBuffer(int), StringBuffer(String), append(boolean), append(char), append(char), append(char, int, int), append(CharSequence), append(CharSequence, int, int), append(double), append(float), append(int), append(long), append(Object), append(String),
append(StringBuffer), capacity(), charAt(int), delete(int, int), deleteCharAt(int), ensureCapacity(int), getChars(int, int, char, int), indexOf(String),
indexOf(String, int), insert(int, boolean), insert(int, char), insert(int, char), insert(int, char, int, int), insert(int, CharSequence), insert(int,
CharSequence, int, int), insert(int, double), insert(int, float), insert(int, int), insert(int, long), insert(int, Object), insert(int, String), lastIndexOf(String),
lastIndexOf(String, int), length(), replace(int, int, String), setCharAt(int, char), setLength(int), subSequence(int, int), substring(int), substring(int, int), toString(),
trimToSize()
- StringBuilder
- StringBuilder(), StringBuilder(CharSequence), StringBuilder(int), StringBuilder(String), append(boolean), append(char), append(char), append(char, int, int), append(CharSequence), append(CharSequence, int, int), append(double), append(float), append(int), append(long), append(Object), append(String),
append(StringBuilder), capacity(), charAt(int), delete(int, int), deleteCharAt(int), ensureCapacity(int), getChars(int, int, char, int), indexOf(String),
indexOf(String, int), insert(int, boolean), insert(int, char), insert(int, char), insert(int, char, int, int), insert(int, CharSequence), insert(int,
CharSequence, int, int), insert(int, double), insert(int, float), insert(int, int), insert(int, long), insert(int, Object), insert(int, String), lastIndexOf(String),
lastIndexOf(String, int), length(), replace(int, int, String), setCharAt(int, char), setLength(int), subSequence(int, int), substring(int), substring(int, int), toString(),
trimToSize()
- StringIndexOutOfBoundsException
- StringIndexOutOfBoundsException(), StringIndexOutOfBoundsException(String), StringIndexOutOfBoundsException(int)
- SuppressWarnings
- value()
- System
- System(), arraycopy(Object, int, Object, int, int), currentTimeMillis(), gc(), identityHashCode(Object), setErr(PrintStream), setOut(PrintStream)
- Throwable
- Throwable(), Throwable(String), Throwable(String, Throwable), Throwable(Throwable), fillInStackTrace(), getCause(), getLocalizedMessage(), getMessage(),
getStackTrace(), initCause(Throwable), printStackTrace(), printStackTrace(PrintStream), setStackTrace(StackTraceElement), toString()
- UnsupportedOperationException
- UnsupportedOperationException(), UnsupportedOperationException(String), UnsupportedOperationException(String, Throwable),
UnsupportedOperationException(Throwable)
- Void
Package java.lang.annotation
- Annotation
- annotationType(), equals(Object), hashCode(), toString()
- AnnotationFormatError
- AnnotationFormatError()
- AnnotationTypeMismatchException
- AnnotationTypeMismatchException()
- Documented
- ElementType
- values(), valueOf(String)
- IncompleteAnnotationException
- IncompleteAnnotationException(Class, String), annotationType(), elementName()
- Inherited
- Retention
- value()
- RetentionPolicy
- values(), valueOf(String)
- Target
- value()
Package java.util
- AbstractCollection
- add(E), addAll(Collection), clear(), contains(Object), containsAll(Collection), isEmpty(), iterator(), remove(Object), removeAll(Collection), retainAll(Collection),
size(), toArray(), toArray(T), toString()
- AbstractList
- add(E), add(int, E), addAll(int, Collection), clear(), equals(Object), get(int), hashCode(), indexOf(Object), iterator(), lastIndexOf(Object), listIterator(),
listIterator(int), remove(int), set(int, E)
- AbstractMap
- clear(), containsKey(Object), containsValue(Object), entrySet(), equals(Object), get(Object), hashCode(), isEmpty(), keySet(), put(K, V), putAll(Map), remove(Object),
size(), toString(), values()
- AbstractQueue
- add(E), addAll(Collection), clear(), element(), offer(E), peek(), poll(), remove()
- AbstractSequentialList
- add(int, E), addAll(int, Collection), get(int), iterator(), listIterator(int), remove(int), set(int, E), size()
- AbstractSet
- AbstractSet(), equals(Object), hashCode(), removeAll(Collection)
- ArrayList
- ArrayList(), ArrayList(Collection), ArrayList(int), add(E), add(int, E), addAll(Collection), addAll(int, Collection), clear(), clone(), contains(Object),
ensureCapacity(int), get(int), indexOf(Object), isEmpty(), lastIndexOf(Object), remove(int), remove(Object), set(int, E), size(), toArray(), toArray(T),
trimToSize()
- Arrays
- Arrays(), asList(T), binarySearch(byte, byte), binarySearch(char, char), binarySearch(double, double),
binarySearch(float, float), binarySearch(int, int), binarySearch(long, long), binarySearch(Object, Object),
binarySearch(short, short), binarySearch(T, T, Comparator), deepEquals(Object, Object), deepHashCode(Object), deepToString(Object), equals(boolean, boolean), equals(byte, byte), equals(char, char), equals(double, double), equals(float, float), equals(int, int), equals(long, long), equals(Object, Object), equals(short, short),
fill(boolean, boolean), fill(boolean, int, int, boolean), fill(byte, byte), fill(byte, int, int, byte), fill(char, char), fill(char, int, int, char), fill(double, double), fill(double, int, int, double), fill(float,
float), fill(float, int, int, float), fill(int, int), fill(int, int, int, int), fill(long, int, int, long), fill(long, long), fill(Object, int, int, Object), fill(Object, Object), fill(short, int, int, short), fill(short,
short), hashCode(boolean), hashCode(byte), hashCode(char), hashCode(double), hashCode(float),
hashCode(int), hashCode(long), hashCode(Object), hashCode(short), sort(byte), sort(byte,
int, int), sort(char), sort(char, int, int), sort(double), sort(double, int, int), sort(float),
sort(float, int, int), sort(int), sort(int, int, int), sort(long), sort(long, int, int), sort(Object), sort(Object, int, int), sort(short), sort(short, int, int), sort(T, Comparator), sort(T,
int, int, Comparator), toString(boolean), toString(byte), toString(char), toString(double), toString(float), toString(int), toString(long), toString(Object), toString(short)
- Collection
- add(E), addAll(Collection), clear(), contains(Object), containsAll(Collection), equals(Object), hashCode(), isEmpty(), iterator(), remove(Object),
removeAll(Collection), retainAll(Collection), size(), toArray(), toArray(T)
- Collections
- Collections(), addAll(Collection, T), binarySearch(List, T), binarySearch(List, T, Comparator), copy(List, List), disjoint(Collection, Collection),
emptyList(), emptyMap(), emptySet(), enumeration(Collection), fill(List, T), frequency(Collection, Object), list(Enumeration), max(Collection), max(Collection, Comparator),
min(Collection), min(Collection, Comparator), nCopies(int, T), replaceAll(List, T, T), reverse(List), reverseOrder(), reverseOrder(Comparator), singleton(T), singletonList(T),
singletonMap(K, V), sort(List), sort(List, Comparator), swap(List, int, int), unmodifiableCollection(Collection), unmodifiableList(List), unmodifiableMap(Map),
unmodifiableSet(Set), unmodifiableSortedMap(SortedMap), unmodifiableSortedSet(SortedSet)
- Comparator
- compare(T, T), equals(Object)
- ConcurrentModificationException
- ConcurrentModificationException(), ConcurrentModificationException(String)
- Date
- Date(), Date(int, int, int), Date(int, int, int, int, int), Date(int, int, int, int, int, int), Date(long), Date(String), parse(String), !UTC(int, int, int, int, int,
int), after(Date), before(Date), clone(), compareTo(Date), equals(Object), getDate(), getDay(), getHours(), getMinutes(), getMonth(), getSeconds(), getTime(), getTimezoneOffset(),
getYear(), hashCode(), setDate(int), setHours(int), setMinutes(int), setMonth(int), setSeconds(int), setTime(long), setYear(int), toGMTString(), toLocaleString(),
toString()
- EmptyStackException
- EmptyStackException()
- EnumMap
- EnumMap(Class), EnumMap(EnumMap), EnumMap(Map), clear(), clone(), containsKey(Object), containsValue(Object), entrySet(), get(Object), put(K, V), remove(Object),
size()
- EnumSet
- allOf(Class), complementOf(EnumSet), copyOf(Collection), copyOf(EnumSet), noneOf(Class), of(E), of(E, E), range(E, E), clone()
- Enumeration
- hasMoreElements(), nextElement()
- EventListener
- EventObject
- EventObject(Object), getSource()
- HashMap
- HashMap(), HashMap(int), HashMap(int, float), HashMap(Map), clone()
- HashSet
- HashSet(), HashSet(Collection), HashSet(int), HashSet(int, float), add(E), clear(), clone(), contains(Object), isEmpty(), iterator(), remove(Object), size(),
toString()
- IdentityHashMap
- IdentityHashMap(), IdentityHashMap(int), IdentityHashMap(Map), clone(), equals(Object), hashCode()
- Iterator
- hasNext(), next(), remove()
- LinkedHashMap
- LinkedHashMap(), LinkedHashMap(int), LinkedHashMap(int, float), LinkedHashMap(int, float, boolean), LinkedHashMap(Map), clear(), containsKey(Object),
containsValue(Object), entrySet(), get(Object), put(K, V), remove(Object), size()
- LinkedHashSet
- LinkedHashSet(), LinkedHashSet(Collection), LinkedHashSet(int), LinkedHashSet(int, float)
- LinkedList
- LinkedList(), LinkedList(Collection), add(E), addFirst(E), addLast(E), clear(), element(), getFirst(), getLast(), listIterator(int), offer(E), peek(), poll(),
remove(), removeFirst(), removeLast(), size()
- List
- add(E), add(int, E), addAll(Collection), addAll(int, Collection), clear(), contains(Object), containsAll(Collection), equals(Object), get(int), hashCode(),
indexOf(Object), isEmpty(), iterator(), lastIndexOf(Object), listIterator(), listIterator(int), remove(int), remove(Object), removeAll(Collection), retainAll(Collection), set(int,
E), size(), toArray(), toArray(T)
- ListIterator
- add(E), hasNext(), hasPrevious(), next(), nextIndex(), previous(), previousIndex(), remove(), set(E)
- Map
- clear(), containsKey(Object), containsValue(Object), entrySet(), equals(Object), get(Object), hashCode(), isEmpty(), keySet(), put(K, V), putAll(Map), remove(Object),
size(), values()
- Map.Entry
- equals(Object), getKey(), getValue(), hashCode(), setValue(V)
- MissingResourceException
- MissingResourceException(String, String, String), getClassName(), getKey()
- NoSuchElementException
- NoSuchElementException(), NoSuchElementException(String)
- PriorityQueue
- PriorityQueue(), PriorityQueue(Collection), PriorityQueue(int), PriorityQueue(int, Comparator), PriorityQueue(PriorityQueue), PriorityQueue(SortedSet),
addAll(Collection), clear(), comparator(), contains(Object), containsAll(Collection), isEmpty(), iterator(), offer(E), peek(), poll(), remove(Object), removeAll(Collection),
retainAll(Collection), size(), toArray(), toArray(T), toString()
- Queue
- element(), offer(E), peek(), poll(), remove()
- RandomAccess
- Set
- add(E), addAll(Collection), clear(), contains(Object), containsAll(Collection), equals(Object), hashCode(), isEmpty(), iterator(), remove(Object),
removeAll(Collection), retainAll(Collection), size(), toArray(), toArray(T)
- SortedMap
- comparator(), firstKey(), headMap(K), lastKey(), subMap(K, K), tailMap(K)
- SortedSet
- comparator(), first(), headSet(E), last(), subSet(E, E), tailSet(E)
- Stack
- Stack(), clone(), empty(), peek(), pop(), push(E), search(Object)
- TooManyListenersException
- TooManyListenersException(), TooManyListenersException(String)
- TreeMap
- TreeMap(), TreeMap(Comparator), TreeMap(Map), TreeMap(SortedMap), clear(), comparator(), containsKey(Object), entrySet(), firstKey(), get(Object), headMap(K),
lastKey(), put(K, V), remove(Object), size(), subMap(K, K), tailMap(K)
- TreeSet
- TreeSet(), TreeSet(Collection), TreeSet(Comparator), TreeSet(SortedSet), add(E), clear(), comparator(), contains(Object), first(), headSet(E), iterator(), last(),
remove(Object), size(), subSet(E, E), tailSet(E)
- Vector
- Vector(), Vector(Collection), Vector(int), Vector(int, int), add(E), add(int, E), addAll(Collection), addAll(int, Collection), addElement(E), capacity(), clear(),
clone(), contains(Object), containsAll(Collection), copyInto(Object), elementAt(int), elements(), ensureCapacity(int), firstElement(), get(int), indexOf(Object),
indexOf(Object, int), insertElementAt(E, int), isEmpty(), iterator(), lastElement(), lastIndexOf(Object), lastIndexOf(Object, int), remove(int), removeAll(Collection),
removeAllElements(), removeElement(Object), removeElementAt(int), set(int, E), setElementAt(E, int), setSize(int), size(), toArray(), toArray(T), toString(),
trimToSize()
Package java.io
- FilterOutputStream
- FilterOutputStream(OutputStream)
- OutputStream
- OutputStream()
- PrintStream
- PrintStream(OutputStream), print(boolean), print(char), print(char), print(double), print(float), print(int), print(long), print(Object), print(String),
println(), println(boolean), println(char), println(char), println(double), println(float), println(int), println(long), println(Object),
println(String)
- Serializable
Package java.sql
- Date
- Date(int, int, int), Date(long), valueOf(String), getHours(), getMinutes(), getSeconds(), setHours(int), setMinutes(int), setSeconds(int), toString()
- Time
- Time(int, int, int), Time(long), valueOf(String), getDate(), getDay(), getMonth(), getYear(), setDate(int), setMonth(int), setYear(int), toString()
- Timestamp
- Timestamp(int, int, int, int, int, int, int), Timestamp(long), valueOf(String), after(Timestamp), before(Timestamp), compareTo(Date), compareTo(Timestamp),
equals(Object), equals(Timestamp), getNanos(), getTime(), hashCode(), setNanos(int), setTime(long), toString()