clojure.lang
Class Util
java.lang.Object
clojure.lang.Util
public class Util
- extends Object
Constructor Summary |
Util()
|
Method Summary |
static Class |
classOf(Object x)
|
static
|
clearCache(ReferenceQueue rq,
ConcurrentHashMap<K,Reference<V>> cache)
|
static int |
compare(Object k1,
Object k2)
|
static boolean |
equals(Object k1,
Object k2)
|
static boolean |
equiv(boolean k1,
boolean k2)
|
static boolean |
equiv(boolean k1,
Object k2)
|
static boolean |
equiv(char c1,
char c2)
|
static boolean |
equiv(double k1,
double k2)
|
static boolean |
equiv(double k1,
Object k2)
|
static boolean |
equiv(long k1,
long k2)
|
static boolean |
equiv(long k1,
Object k2)
|
static boolean |
equiv(Object k1,
boolean k2)
|
static boolean |
equiv(Object k1,
double k2)
|
static boolean |
equiv(Object k1,
long k2)
|
static boolean |
equiv(Object k1,
Object k2)
|
static Util.EquivPred |
equivPred(Object k1)
|
static int |
hash(Object o)
|
static int |
hashCombine(int seed,
int hash)
|
static int |
hasheq(Object o)
|
static boolean |
identical(Object k1,
Object k2)
|
static boolean |
isInteger(Object x)
|
static boolean |
isPrimitive(Class c)
|
static Object |
loadWithClass(String scriptbase,
Class<?> loadFrom)
|
static boolean |
pcequiv(Object k1,
Object k2)
|
static ISeq |
ret1(ISeq ret,
Object nil)
|
static Object |
ret1(Object ret,
Object nil)
|
static RuntimeException |
runtimeException(String s)
|
static RuntimeException |
runtimeException(String s,
Throwable e)
|
static RuntimeException |
sneakyThrow(Throwable t)
Throw even checked exceptions without being required
to declare them or catch them. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
equiv
public static boolean equiv(Object k1,
Object k2)
equivPred
public static Util.EquivPred equivPred(Object k1)
equiv
public static boolean equiv(long k1,
long k2)
equiv
public static boolean equiv(Object k1,
long k2)
equiv
public static boolean equiv(long k1,
Object k2)
equiv
public static boolean equiv(double k1,
double k2)
equiv
public static boolean equiv(Object k1,
double k2)
equiv
public static boolean equiv(double k1,
Object k2)
equiv
public static boolean equiv(boolean k1,
boolean k2)
equiv
public static boolean equiv(Object k1,
boolean k2)
equiv
public static boolean equiv(boolean k1,
Object k2)
equiv
public static boolean equiv(char c1,
char c2)
pcequiv
public static boolean pcequiv(Object k1,
Object k2)
equals
public static boolean equals(Object k1,
Object k2)
identical
public static boolean identical(Object k1,
Object k2)
classOf
public static Class classOf(Object x)
compare
public static int compare(Object k1,
Object k2)
hash
public static int hash(Object o)
hasheq
public static int hasheq(Object o)
hashCombine
public static int hashCombine(int seed,
int hash)
isPrimitive
public static boolean isPrimitive(Class c)
isInteger
public static boolean isInteger(Object x)
ret1
public static Object ret1(Object ret,
Object nil)
ret1
public static ISeq ret1(ISeq ret,
Object nil)
clearCache
public static <K,V> void clearCache(ReferenceQueue rq,
ConcurrentHashMap<K,Reference<V>> cache)
runtimeException
public static RuntimeException runtimeException(String s)
runtimeException
public static RuntimeException runtimeException(String s,
Throwable e)
sneakyThrow
public static RuntimeException sneakyThrow(Throwable t)
- Throw even checked exceptions without being required
to declare them or catch them. Suggested idiom:
throw sneakyThrow( some exception );
loadWithClass
public static Object loadWithClass(String scriptbase,
Class<?> loadFrom)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
Copyright © 2015. All Rights Reserved.