Class ExtractionUtils


  • public class ExtractionUtils
    extends Object
    • Constructor Detail

      • ExtractionUtils

        public ExtractionUtils()
    • Method Detail

      • getNumberOfNotNullArrayElements

        public static int getNumberOfNotNullArrayElements​(IObjectArray arrayObject)
      • getNumberOfNotNullArrayElements

        public static int getNumberOfNotNullArrayElements​(long[] addresses)
      • getNumberOfNotNullArrayElements

        public static int getNumberOfNotNullArrayElements​(int[] ids)
      • followOnlyNonArrayOutgoingReference

        public static IInstance followOnlyNonArrayOutgoingReference​(IObject obj)
                                                             throws SnapshotException
        Get the only non-array object field from the object. For example used for finding the HashMap from the HashSet
        Parameters:
        obj -
        Returns:
        null if no non-array, or duplicates found
        Throws:
        SnapshotException
      • followOnlyOutgoingReferencesExceptLast

        public static IObject followOnlyOutgoingReferencesExceptLast​(String field,
                                                                     IObject obj)
                                                              throws SnapshotException
        Walks the only non-array object field from the object, stopping at the second-last.
        Parameters:
        obj -
        Returns:
        null if no non-array, or duplicates found
        Throws:
        SnapshotException