Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/shark/ChainingInstanceReferenceReader/VirtualInstanceReferenceReader/OptionalFactory

OptionalFactory

fun interface OptionalFactory

May create a new VirtualInstanceReferenceReader, depending on what’s in the heap graph. OptionalFactory implementations might return a different ReferenceReader depending on which version of a class is present in the heap dump, or they might return null if that class is missing.

Inheritors

AndroidReferenceReaders
ApacheHarmonyInstanceRefReaders
OpenJdkInstanceRefReaders

Functions

Name Summary
create [jvm]
abstract fun create(graph: HeapGraph): ChainingInstanceReferenceReader.VirtualInstanceReferenceReader?