(Object entryUrn)
| 244 | } |
| 245 | |
| 246 | public static final String toEntryIdString(Object entryUrn) { |
| 247 | String entryId = entryUrn.toString(); |
| 248 | int i = entryId.lastIndexOf(URN_SEPARATOR); |
| 249 | if (i != -1) { |
| 250 | entryId = entryId.substring(i + 1); |
| 251 | } |
| 252 | if (entryId.startsWith(ENTRY_URN_PREFIX)) { |
| 253 | entryId = entryId.substring(ENTRY_URN_PREFIX.length()); |
| 254 | } |
| 255 | return entryId; |
| 256 | } |
| 257 | |
| 258 | public static final long toEntryId(Object entryUrn) { |
| 259 | return Long.parseLong(toEntryIdString(entryUrn), 16); |
no outgoing calls
no test coverage detected