MCPcopy Create free account
hub / github.com/traneio/future / toString

Method toString

future-java/src/main/java/io/trane/future/Promise.java:851–862  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

849 }
850
851 @Override
852 public final String toString() {
853 final Object curr = state;
854 String stateString;
855 if (curr instanceof SatisfiedFuture)
856 stateString = curr.toString();
857 else if ((curr instanceof Promise && !(curr instanceof Continuation)) || curr instanceof LinkedContinuation) // Linked
858 stateString = String.format("Linked(%s)", curr.toString());
859 else
860 stateString = "Waiting";
861 return String.format("%s(%s)@%s", toStringPrefix(), stateString, Integer.toHexString(hashCode()));
862 }
863
864}
865

Callers 11

toStringSatisfiedMethod · 0.45
toStringLinkedMethod · 0.45
toStringWaitingMethod · 0.45
toStringContinuationMethod · 0.45
toStringExceptionMethod · 0.45
toStringNullMethod · 0.45
toStringIntMethod · 0.45
toStringNullMethod · 0.45
toStringMethod · 0.45

Calls 2

toStringPrefixMethod · 0.95
hashCodeMethod · 0.45

Tested by 10

toStringSatisfiedMethod · 0.36
toStringLinkedMethod · 0.36
toStringWaitingMethod · 0.36
toStringContinuationMethod · 0.36
toStringExceptionMethod · 0.36
toStringNullMethod · 0.36
toStringIntMethod · 0.36
toStringNullMethod · 0.36