List of usage examples for java.lang Object hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
From source file:Comparing.java
public static int hashcode(Object obj) { return obj == null ? 0 : obj.hashCode(); }
From source file:org.hyperic.hq.plugin.vim.VimConnection.java
private static String address(Object obj) { return "@" + Integer.toHexString(obj.hashCode()); }
From source file:com.yoho.core.trace.DefaultSpanNamer.java
private static boolean isDefaultToString(Object delegate, String spanName) { return (delegate.getClass().getName() + "@" + Integer.toHexString(delegate.hashCode())).equals(spanName); }
From source file:marshalsec.gadgets.ToStringUtil.java
public static Object makeToStringTrigger(Object o) throws Exception { String unhash = unhash(o.hashCode()); XString xString = new XString(unhash); return JDKUtil.makeMap(o, xString); }
From source file:Main.java
public static int hashCode(@Nullable Object o1) { return hashCode(o1 == null ? 0 : o1.hashCode()); }
From source file:VASSAL.tools.HashCode.java
public static final int hash(final Object value) { return value == null ? 0 : value.hashCode(); }
From source file:psiprobe.controllers.threads.ListThreadsController.java
/** * To uid.//from ww w . ja va 2 s. com * * @param obj the obj * @return the string */ private static String toUid(Object obj) { return obj.getClass().getName() + "@" + obj.hashCode(); }
From source file:Main.java
public static int hashCode(@Nullable Object o1, @Nullable Object o2) { return hashCode(o1 == null ? 0 : o1.hashCode(), o2 == null ? 0 : o2.hashCode()); }
From source file:marshalsec.gadgets.ToStringUtil.java
public static Object makeToStringTrigger(Object o, Function<Object, Object> wrap) throws Exception { String unhash = unhash(o.hashCode()); XString xString = new XString(unhash); return JDKUtil.makeMap(wrap.apply(o), wrap.apply(xString)); }
From source file:com.l2jfree.lang.L2System.java
public static int hashCode(Object o) { return o == null ? 0 : hash(o.hashCode()); }