Package com.dropbox.core.util
Class LangUtil
- java.lang.Object
-
- com.dropbox.core.util.LangUtil
-
public class LangUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LangUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T[]
arrayConcat(T[] a, T[] b)
static java.lang.AssertionError
badType(java.lang.Object a)
static java.lang.RuntimeException
mkAssert(java.lang.String messagePrefix, java.lang.Throwable cause)
static <T> boolean
nullableEquals(T a, T b)
static int
nullableHashCode(java.lang.Object o)
static java.util.Date
truncateMillis(java.util.Date date)
static java.util.List<java.util.Date>
truncateMillis(java.util.List<java.util.Date> dates)
-
-
-
Method Detail
-
mkAssert
public static java.lang.RuntimeException mkAssert(java.lang.String messagePrefix, java.lang.Throwable cause)
-
badType
public static java.lang.AssertionError badType(java.lang.Object a)
-
arrayConcat
public static <T> T[] arrayConcat(T[] a, T[] b)
-
nullableEquals
public static <T> boolean nullableEquals(T a, T b)
-
nullableHashCode
public static int nullableHashCode(java.lang.Object o)
-
truncateMillis
public static java.util.Date truncateMillis(java.util.Date date)
-
truncateMillis
public static java.util.List<java.util.Date> truncateMillis(java.util.List<java.util.Date> dates)
-
-