/** * Formats the full FijiURI up to the instance. * * @param preserveOrdering Whether to preserve ordering. * @return Representation of this FijiURI up to the instance. */ private String toStringInstance(boolean preserveOrdering) { return String.format("%s%s/", toStringAuthority(preserveOrdering), (null == mInstanceName) ? UNSET_URI_STRING : mInstanceName); }
/** * Returns a string representation of this URI. * * @param preserveOrdering Whether to preserve ordering of lsits in fields. * @return A string representation of this URI. */ private String toString(boolean preserveOrdering) { // Remove trailing unset fields. if (!mColumnNames.isEmpty()) { return toStringCol(preserveOrdering); } else if (mTableName != null) { return toStringTable(preserveOrdering); } else if (mInstanceName != null) { return toStringInstance(preserveOrdering); } else { return toStringAuthority(preserveOrdering); } }