question: public static long parseId ( Uri contentUri ) { String last = contentUri . getLastPathSegment ( ) ; return last == null ? - 1 : Long . parseLong ( last ) ; }
target:  Converts the last path segment to a long. <p>This supports a common convention for content URIs where an ID is stored in the last segment.