public PointerHierarchyRepresentationResult complete ( ) { if ( csize != null ) { csize . destroy ( ) ; csize = null ; } if ( mergecount != ids . size ( ) - 1 ) { LOG . warning ( mergecount + " merges were added to the hierarchy, expected " + ( ids . size ( ) - 1 ) ) ; } if ( prototypes != null ) { return new PointerPrototypeHierarchyRepresentationResult ( ids , parent , parentDistance , isSquared , order , prototypes ) ; } return new PointerHierarchyRepresentationResult ( ids , parent , parentDistance , isSquared , order ) ; }
Finalize the result .