private void toHexCharArray(char[] dst) { formatHexChar(dst, 0, w1); formatHexChar(dst, 8, w2); formatHexChar(dst, 16, w3); formatHexChar(dst, 24, w4); formatHexChar(dst, 32, w5); }
/** * Get string form of the abbreviation, in lower case hexadecimal. * * @return string form of the abbreviation, in lower case hexadecimal. */ public final String name() { final char[] b = new char[Constants.OBJECT_ID_STRING_LENGTH]; AnyObjectId.formatHexChar(b, 0, w1); if (nibbles <= 8) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 8, w2); if (nibbles <= 16) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 16, w3); if (nibbles <= 24) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 24, w4); if (nibbles <= 32) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 32, w5); return new String(b, 0, nibbles); }
private void toHexCharArray(final char[] dst) { formatHexChar(dst, 0, w1); formatHexChar(dst, 8, w2); formatHexChar(dst, 16, w3); formatHexChar(dst, 24, w4); formatHexChar(dst, 32, w5); }
private void toHexCharArray(char[] dst) { formatHexChar(dst, 0, w1); formatHexChar(dst, 8, w2); formatHexChar(dst, 16, w3); formatHexChar(dst, 24, w4); formatHexChar(dst, 32, w5); }
/** * Get string form of the abbreviation, in lower case hexadecimal. * * @return string form of the abbreviation, in lower case hexadecimal. */ public final String name() { final char[] b = new char[Constants.OBJECT_ID_STRING_LENGTH]; AnyObjectId.formatHexChar(b, 0, w1); if (nibbles <= 8) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 8, w2); if (nibbles <= 16) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 16, w3); if (nibbles <= 24) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 24, w4); if (nibbles <= 32) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 32, w5); return new String(b, 0, nibbles); }
/** * @return string form of the abbreviation, in lower case hexadecimal. */ public final String name() { final char[] b = new char[Constants.OBJECT_ID_STRING_LENGTH]; AnyObjectId.formatHexChar(b, 0, w1); if (nibbles <= 8) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 8, w2); if (nibbles <= 16) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 16, w3); if (nibbles <= 24) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 24, w4); if (nibbles <= 32) return new String(b, 0, nibbles); AnyObjectId.formatHexChar(b, 32, w5); return new String(b, 0, nibbles); }