diff --git a/src/main/java/org/myrobotlab/codec/CodecUtils.java b/src/main/java/org/myrobotlab/codec/CodecUtils.java index ba528b7a10..eb20b2191b 100644 --- a/src/main/java/org/myrobotlab/codec/CodecUtils.java +++ b/src/main/java/org/myrobotlab/codec/CodecUtils.java @@ -1685,4 +1685,10 @@ public static int[] hexToRGB(String hexValue) { } return rgb; } + + public static String hashcodeToHex(int hashCode) { + String hexString = Long.toHexString(hashCode).toUpperCase(); + return String.format("%6s", hexString).replace(' ', '0').substring(0, 6); + } + }