public final class Platform extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
TYPE_PATTERN |
Modifier and Type | Method and Description |
---|---|
static AssertionError |
comparisonFailure(String message,
String expected,
String actual) |
static String |
compressType(String type)
Inspired by JavaWriter.
|
static boolean |
containsMatch(String subject,
String regex)
Determines if the given subject contains a match for the given regex.
|
static boolean |
isInstanceOfType(Object instance,
Class<?> clazz)
Returns true if the instance is assignable to the type Clazz.
|
static boolean |
matches(String subject,
String regex)
Determines if the entirety of the given subject matches the given regex.
|
public static final Pattern TYPE_PATTERN
public static boolean isInstanceOfType(Object instance, Class<?> clazz)
public static AssertionError comparisonFailure(String message, String expected, String actual)
public static boolean matches(String subject, String regex)
Copyright © 2015. All rights reserved.