JAVA libraries you can access in GWT

JRE Emulation Library

Google Web Toolkit includes a library that emulates a subset of the Java runtime library. The list below shows the set of JRE types and methods that GWT can translate automatically. Note that in some cases, only a subset of methods is supported for a given type.Remember that only these java library methods you can access in you code not any other.So before implementing any java library methods please check if it is present in the following list.

Package java.lang

  • ArrayStoreException
    • ArrayStoreException(),
    • ArrayStoreException(String)
  • AssertionError
    • AssertionError(),
    • AssertionError(Object),
    • AssertionError(boolean),
    • AssertionError(char),
    • AssertionError(int),
    • AssertionError(long),
    • AssertionError(float),
    • AssertionError(double)
  • Boolean
    • Boolean(boolean),
    • Boolean(String),
    • booleanValue(),
    • equals(Object),
    • hashCode(),
    • toString(boolean),
    • toString(),
    • valueOf(boolean),
    • valueOf(String)
  • Byte
    • Byte(byte),
    • Byte(String),
    • byteValue(),
    • compareTo(Byte),
    • compareTo(Object),
    • decode(String),
    • doubleValue(),
    • equals(Object),
    • floatValue(),
    • hashCode(),
    • intValue(),
    • longValue(),
    • parseByte(String),
    • parseByte(String, int),
    • shortValue(),
    • toString(byte),
    • toString(),
    • valueOf(String),
    • valueOf(String, int)
  • CharSequence
    • charAt(int),
    • length(),
    • subSequence(int, int),
    • toString()
  • Character
    • Character(char),
    • charValue(),
    • compareTo(Character),
    • compareTo(Object),
    • digit(char, int),
    • equals(Object),
    • forDigit(int, int),
    • hashCode(),
    • isDigit(char),
    • isLetter(char),
    • isLetterOrDigit(char),
    • isLowerCase(char),
    • isSpace(char),
    • isUpperCase(char),
    • toLowerCase(char),
    • toString(char),
    • toString(),
    • toUpperCase(char)
  • Class
  • ClassCastException
    • ClassCastException(),
    • ClassCastException(String)
  • Cloneable
  • Comparable
    • compareTo(Object)
  • Double
    • Double(double),
    • Double(String),
    • byteValue(),
    • compare(double, double),
    • compareTo(Double),
    • compareTo(Object),
    • doubleValue(),
    • equals(Object),
    • floatValue(),
    • hashCode(),
    • intValue(),
    • isInfinite(double),
    • isInfinite(),
    • isNaN(double),
    • isNaN(),
    • longValue(),
    • parseDouble(String),
    • shortValue(),
    • toString(double),
    • toString(),
    • valueOf(String)
  • Error
    • Error(),
    • Error(String, Throwable),
    • Error(String),
    • Error(Throwable)
  • Exception
    • Exception(),
    • Exception(String),
    • Exception(String, Throwable),
    • Exception(Throwable)
  • Float
    • Float(float),
    • Float(String),
    • byteValue(),
    • compare(float, float),
    • compareTo(Float),
    • compareTo(Object),
    • doubleValue(),
    • equals(Object),
    • floatValue(),
    • hashCode(),
    • intValue(),
    • isInfinite(float),
    • isInfinite(),
    • isNaN(float),
    • isNaN(),
    • longValue(),
    • parseFloat(String),
    • shortValue(),
    • toString(float),
    • toString(),
    • valueOf(String)
  • IllegalArgumentException
    • IllegalArgumentException(),
    • IllegalArgumentException(String)
  • IllegalStateException
    • IllegalStateException(),
    • IllegalStateException(String),
    • IllegalStateException(String, Throwable),
    • IllegalStateException(Throwable)
  • IndexOutOfBoundsException
    • IndexOutOfBoundsException(),
    • IndexOutOfBoundsException(String)
  • Integer
    • Integer(int),
    • Integer(String),
    • byteValue(),
    • compareTo(Integer),
    • compareTo(Object),
    • decode(String),
    • doubleValue(),
    • equals(Object),
    • floatValue(),
    • hashCode(),
    • intValue(),
    • longValue(),
    • parseInt(String),
    • parseInt(String, int),
    • shortValue(),
    • toBinaryString(int),
    • toHexString(int),
    • toString(int),
    • toString(),
    • valueOf(String),
    • valueOf(String, int)
  • Long
    • Long(long),
    • Long(String),
    • byteValue(),
    • compareTo(Long),
    • compareTo(Object),
    • decode(String),
    • doubleValue(),
    • equals(Object),
    • floatValue(),
    • hashCode(),
    • intValue(),
    • longValue(),
    • parseLong(String),
    • parseLong(String, int),
    • shortValue(),
    • toBinaryString(long),
    • toHexString(long),
    • toString(long),
    • toString(),
    • valueOf(String),
    • valueOf(String, int)
  • Math
    • abs(double),
    • abs(float),
    • abs(int),
    • abs(long),
    • acos(double),
    • asin(double),
    • atan(double),
    • ceil(double),
    • cos(double),
    • exp(double),
    • floor(double),
    • log(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(),
    • round(double),
    • round(float),
    • sin(double),
    • sqrt(double),
    • tan(double),
    • toDegrees(double),
    • toRadians(double)
  • NegativeArraySizeException
    • NegativeArraySizeException(),
    • NegativeArraySizeException(String)
  • NullPointerException
    • NullPointerException(),
    • NullPointerException(String)
  • Number
    • byteValue(),
    • doubleValue(),
    • floatValue(),
    • intValue(),
    • longValue(),
    • shortValue()
  • NumberFormatException
    • NumberFormatException(),
    • NumberFormatException(String)
  • Object
    • equals(Object),
    • hashCode(),
    • toString()
  • RuntimeException
    • RuntimeException(),
    • RuntimeException(String),
    • RuntimeException(String, Throwable),
    • RuntimeException(Throwable)
  • Short
    • Short(short),
    • Short(String),
    • byteValue(),
    • compareTo(Object),
    • compareTo(Short),
    • decode(String),
    • doubleValue(),
    • equals(Object),
    • floatValue(),
    • hashCode(),
    • intValue(),
    • longValue(),
    • parseShort(String),
    • parseShort(String, int),
    • shortValue(),
    • toString(short),
    • toString(),
    • valueOf(String),
    • valueOf(String, int)
  • String
    • String(),
    • String(char[]),
    • String(char[], int, int),
    • String(String),
    • charAt(int),
    • compareTo(Object),
    • compareTo(String),
    • concat(String),
    • endsWith(String),
    • equals(Object),
    • equalsIgnoreCase(String),
    • hashCode(),
    • indexOf(int),
    • indexOf(int, int),
    • indexOf(String),
    • indexOf(String, int),
    • lastIndexOf(int),
    • lastIndexOf(int, int),
    • lastIndexOf(String),
    • lastIndexOf(String, int),
    • length(),
    • matches(String),
    • replace(char, char),
    • 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(),
    • valueOf(boolean),
    • valueOf(char),
    • valueOf(char[], int, int),
    • valueOf(char[]),
    • valueOf(double),
    • valueOf(float),
    • valueOf(int),
    • valueOf(long),
    • valueOf(Object)
  • StringBuffer
    • StringBuffer(),
    • StringBuffer(int),
    • StringBuffer(String),
    • append(boolean),
    • append(char),
    • append(char[]),
    • append(char[], int, int),
    • append(double),
    • append(float),
    • append(int),
    • append(long),
    • append(Object),
    • append(String),
    • append(StringBuffer),
    • charAt(int),
    • delete(int, int),
    • deleteCharAt(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, 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()
  • StringIndexOutOfBoundsException
    • StringIndexOutOfBoundsException(),
    • StringIndexOutOfBoundsException(String),
    • StringIndexOutOfBoundsException(int)
  • System
    • currentTimeMillis(),
    • 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)

Package java.util

  • AbstractCollection
    • add(Object),
    • addAll(Collection),
    • clear(),
    • contains(Object),
    • containsAll(Collection),
    • isEmpty(),
    • iterator(),
    • remove(Object),
    • removeAll(Collection),
    • retainAll(Collection),
    • size(),
    • toArray(),
    • toArray(Object[]),
    • toString()
  • AbstractList
    • add(int, Object),
    • add(Object),
    • addAll(int, Collection),
    • clear(),
    • equals(Object),
    • get(int),
    • hashCode(),
    • indexOf(Object),
    • indexOutOfBounds(int),
    • iterator(),
    • lastIndexOf(Object),
    • listIterator(),
    • listIterator(int),
    • remove(int),
    • removeRange(int, int),
    • set(int, Object)
  • AbstractMap
    • clear(),
    • containsKey(Object),
    • containsValue(Object),
    • entrySet(),
    • equals(Object),
    • get(Object),
    • hashCode(),
    • isEmpty(),
    • keySet(),
    • put(Object, Object),
    • putAll(Map),
    • remove(Object),
    • size(),
    • toString(),
    • values()
  • AbstractSet
    • equals(Object),
    • hashCode(),
    • removeAll(Collection)
  • ArrayList
    • ArrayList(),
    • ArrayList(Collection),
    • ArrayList(int),
    • add(int, Object),
    • add(Object),
    • addAll(Collection),
    • clear(),
    • clone(),
    • contains(Object),
    • get(int),
    • indexOf(Object),
    • indexOf(Object, int),
    • isEmpty(),
    • lastIndexOf(Object),
    • lastIndexOf(Object, int),
    • remove(int),
    • remove(Object),
    • removeRange(int, int),
    • set(int, Object),
    • setSize(int),
    • size(),
    • toArray(Object[])
  • Arrays
    • asList(Object[]),
    • binarySearch(byte[], byte),
    • binarySearch(char[], char),
    • binarySearch(double[], double),
    • binarySearch(float[], float),
    • binarySearch(int[], int),
    • binarySearch(long[], long),
    • binarySearch(Object[], Object),
    • binarySearch(Object[], Object, Comparator),
    • binarySearch(short[], short),
    • sort(Object[]),
    • sort(Object[], Comparator)
  • Collection
    • add(Object),
    • addAll(Collection),
    • clear(),
    • contains(Object),
    • containsAll(Collection),
    • equals(Object),
    • hashCode(),
    • isEmpty(),
    • iterator(),
    • remove(Object),
    • removeAll(Collection),
    • retainAll(Collection),
    • size(),
    • toArray(),
    • toArray(Object[])
  • Collections
    • binarySearch(List, Object),
    • binarySearch(List, Object, Comparator),
    • reverse(List),
    • sort(List),
    • sort(List, Comparator)
  • Comparator
    • compare(Object, Object),
    • 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),
    • UTC(int, int, int, int, int, int),
    • __parse(String),
    • after(Date),
    • before(Date),
    • clone(),
    • compareTo(Date),
    • compareTo(Object),
    • equals(Object),
    • getDate(),
    • getDay(),
    • getHours(),
    • getMinutes(),
    • getMonth(),
    • getSeconds(),
    • getTime(),
    • getTimezoneOffset(),
    • getYear(),
    • hashCode(),
    • parse(String),
    • setDate(int),
    • setHours(int),
    • setMinutes(int),
    • setMonth(int),
    • setSeconds(int),
    • setTime(long),
    • setYear(int),
    • toGMTString(),
    • toLocaleString(),
    • toString()
  • EmptyStackException
  • EventListener
  • EventObject
    • EventObject(Object),
    • getSource()
  • HashMap
    • HashMap(),
    • HashMap(int),
    • HashMap(int, float),
    • HashMap(Map),
    • clear(),
    • clone(),
    • containsKey(Object),
    • containsValue(Object),
    • entrySet(),
    • get(Object),
    • isEmpty(),
    • put(Object, Object),
    • putAll(Map),
    • remove(Object),
    • size()
  • HashSet
    • HashSet(),
    • HashSet(Collection),
    • HashSet(int),
    • HashSet(int, float),
    • add(Object),
    • clear(),
    • clone(),
    • contains(Object),
    • isEmpty(),
    • iterator(),
    • remove(Object),
    • size(),
    • toString()
  • Iterator
    • hasNext(),
    • next(),
    • remove()
  • List
    • add(int, Object),
    • add(Object),
    • 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, Object),
    • size(),
    • toArray()
  • ListIterator
    • add(Object),
    • hasNext(),
    • hasPrevious(),
    • next(),
    • nextIndex(),
    • previous(),
    • previousIndex(),
    • remove(),
    • set(Object)
  • Map
    • clear(),
    • containsKey(Object),
    • containsValue(Object),
    • entrySet(),
    • equals(Object),
    • get(Object),
    • hashCode(),
    • isEmpty(),
    • keySet(),
    • put(Object, Object),
    • putAll(Map),
    • remove(Object),
    • size(),
    • values()
  • MissingResourceException
    • MissingResourceException(String, String, String),
    • getClassName(),
    • getKey()
  • NoSuchElementException
    • NoSuchElementException(),
    • NoSuchElementException(String)
  • RandomAccess
  • Set
    • add(Object),
    • addAll(Collection),
    • clear(),
    • contains(Object),
    • containsAll(Collection),
    • equals(Object),
    • hashCode(),
    • isEmpty(),
    • iterator(),
    • remove(Object),
    • removeAll(Collection),
    • retainAll(Collection),
    • size(),
    • toArray()
  • Stack
    • clone(),
    • empty(),
    • peek(),
    • pop(),
    • push(Object),
    • search(Object)
  • TooManyListenersException
  • Vector
    • Vector(),
    • Vector(Collection),
    • Vector(int),
    • add(int, Object),
    • add(Object),
    • addAll(Collection),
    • addAll(int, Collection),
    • addElement(Object),
    • clear(),
    • clone(),
    • contains(Object),
    • copyInto(Object[]),
    • elementAt(int),
    • firstElement(),
    • get(int),
    • indexOf(Object),
    • indexOf(Object, int),
    • insertElementAt(Object, int),
    • isEmpty(),
    • iterator(),
    • lastElement(),
    • lastIndexOf(Object),
    • lastIndexOf(Object, int),
    • remove(int),
    • removeAllElements(),
    • removeElement(Object),
    • removeElementAt(int),
    • removeRange(int, int),
    • set(int, Object),
    • setElementAt(Object, int),
    • setSize(int),
    • size(),
    • toArray()

Package java.io


0 comments: