org.truth0.util
Class Platform

java.lang.Object
  extended by org.truth0.util.Platform

public final class Platform
extends Object

Extracted routines that need to be swapped in for GWT, to allow for minimal deltas between the GWT and non-GWT version.

Author:
Christian Gruber (cgruber@google.com)

Method Summary
static String compressType(String type)
          This is a no-op in GWT as it relies on matching.
static boolean isInstanceOfType(Object instance, Class<?> clazz)
          Returns true if the instance is assignable to the type Clazz.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isInstanceOfType

public static boolean isInstanceOfType(Object instance,
                                       Class<?> clazz)
Returns true if the instance is assignable to the type Clazz.


compressType

public static String compressType(String type)
This is a no-op in GWT as it relies on matching.



Copyright © 2014. All rights reserved.