MCPcopy Create free account
hub / github.com/TrsstProject/trsst / toEntryIdString

Method toEntryIdString

src/main/java/com/trsst/Common.java:246–256  ·  view source on GitHub ↗
(Object entryUrn)

Source from the content-addressed store, hash-verified

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);

Callers 3

toEntryIdMethod · 0.95
postMethod · 0.95
ingestAggregateFeedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected