List of usage examples for java.lang Runnable hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
From source file:Main.java
public static ThreadFactory setThreadNameWithID(String name) { return (Runnable r) -> new Thread(r, String.format("%s-%s", name, r.hashCode())); }