public class Util
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Util.EquivPred |
Modifier and Type | Field and Description |
---|---|
(package private) static Util.EquivPred |
equivColl |
(package private) static Util.EquivPred |
equivEquals |
(package private) static Util.EquivPred |
equivNull |
(package private) static Util.EquivPred |
equivNumber |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class |
classOf(java.lang.Object x) |
static <K,V> void |
clearCache(java.lang.ref.ReferenceQueue rq,
java.util.concurrent.ConcurrentHashMap<K,java.lang.ref.Reference<V>> cache) |
static int |
compare(java.lang.Object k1,
java.lang.Object k2) |
private static int |
dohasheq(IHashEq o) |
static boolean |
equals(java.lang.Object k1,
java.lang.Object k2) |
static boolean |
equiv(boolean k1,
boolean k2) |
static boolean |
equiv(boolean k1,
java.lang.Object k2) |
static boolean |
equiv(char c1,
char c2) |
static boolean |
equiv(double k1,
double k2) |
static boolean |
equiv(double k1,
java.lang.Object k2) |
static boolean |
equiv(long k1,
long k2) |
static boolean |
equiv(long k1,
java.lang.Object k2) |
static boolean |
equiv(java.lang.Object k1,
boolean k2) |
static boolean |
equiv(java.lang.Object k1,
double k2) |
static boolean |
equiv(java.lang.Object k1,
long k2) |
static boolean |
equiv(java.lang.Object k1,
java.lang.Object k2) |
static Util.EquivPred |
equivPred(java.lang.Object k1) |
static int |
hash(java.lang.Object o) |
static int |
hashCombine(int seed,
int hash) |
static int |
hasheq(java.lang.Object o) |
static boolean |
identical(java.lang.Object k1,
java.lang.Object k2) |
static boolean |
isInteger(java.lang.Object x) |
static boolean |
isPrimitive(java.lang.Class c) |
static boolean |
pcequiv(java.lang.Object k1,
java.lang.Object k2) |
static ISeq |
ret1(ISeq ret,
java.lang.Object nil) |
static java.lang.Object |
ret1(java.lang.Object ret,
java.lang.Object nil) |
static java.lang.RuntimeException |
runtimeException(java.lang.String s) |
static java.lang.RuntimeException |
runtimeException(java.lang.String s,
java.lang.Throwable e) |
static java.lang.RuntimeException |
sneakyThrow(java.lang.Throwable t)
Throw even checked exceptions without being required
to declare them or catch them.
|
private static <T extends java.lang.Throwable> |
sneakyThrow0(java.lang.Throwable t) |
static Util.EquivPred equivNull
static Util.EquivPred equivEquals
static Util.EquivPred equivNumber
static Util.EquivPred equivColl
public static boolean equiv(java.lang.Object k1, java.lang.Object k2)
public static Util.EquivPred equivPred(java.lang.Object k1)
public static boolean equiv(long k1, long k2)
public static boolean equiv(java.lang.Object k1, long k2)
public static boolean equiv(long k1, java.lang.Object k2)
public static boolean equiv(double k1, double k2)
public static boolean equiv(java.lang.Object k1, double k2)
public static boolean equiv(double k1, java.lang.Object k2)
public static boolean equiv(boolean k1, boolean k2)
public static boolean equiv(java.lang.Object k1, boolean k2)
public static boolean equiv(boolean k1, java.lang.Object k2)
public static boolean equiv(char c1, char c2)
public static boolean pcequiv(java.lang.Object k1, java.lang.Object k2)
public static boolean equals(java.lang.Object k1, java.lang.Object k2)
public static boolean identical(java.lang.Object k1, java.lang.Object k2)
public static java.lang.Class classOf(java.lang.Object x)
public static int compare(java.lang.Object k1, java.lang.Object k2)
public static int hash(java.lang.Object o)
public static int hasheq(java.lang.Object o)
private static int dohasheq(IHashEq o)
public static int hashCombine(int seed, int hash)
public static boolean isPrimitive(java.lang.Class c)
public static boolean isInteger(java.lang.Object x)
public static java.lang.Object ret1(java.lang.Object ret, java.lang.Object nil)
public static <K,V> void clearCache(java.lang.ref.ReferenceQueue rq, java.util.concurrent.ConcurrentHashMap<K,java.lang.ref.Reference<V>> cache)
public static java.lang.RuntimeException runtimeException(java.lang.String s)
public static java.lang.RuntimeException runtimeException(java.lang.String s, java.lang.Throwable e)
public static java.lang.RuntimeException sneakyThrow(java.lang.Throwable t)
throw sneakyThrow( some exception );
private static <T extends java.lang.Throwable> void sneakyThrow0(java.lang.Throwable t) throws T extends java.lang.Throwable
T extends java.lang.Throwable