ThreadUtil -> kt

This commit is contained in:
Milos Kozak 2023-09-21 15:38:38 +02:00
parent 6fc572cd14
commit c86b6adad8
2 changed files with 12 additions and 22 deletions

View file

@ -1,22 +0,0 @@
package info.nightscout.pump.common.utils;
/**
* Created by geoff on 5/27/16.
*/
public class ThreadUtil {
public static long getThreadId() {
return Thread.currentThread().getId();
}
public static String getThreadName() {
return Thread.currentThread().getName();
}
public static String sig() {
Thread t = Thread.currentThread();
return t.getName() + "[" + t.getId() + "]";
}
}

View file

@ -0,0 +1,12 @@
package info.nightscout.pump.common.utils
/**
* Created by geoff on 5/27/16.
*/
object ThreadUtil {
@JvmStatic fun sig(): String {
val t = Thread.currentThread()
return t.name + "[" + t.id + "]"
}
}