com.google.common.truth
Class Platform
java.lang.Object
com.google.common.truth.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 ([email protected])
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_PATTERN
public static final Pattern TYPE_PATTERN
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)
- Inspired by JavaWriter.
comparisonFailure
public static AssertionError comparisonFailure(String message,
String expected,
String actual)
Copyright © 2014. All rights reserved.