Back to project page sqlite-analyzer.
The source code is released under:
Apache License
If you think the Android project sqlite-analyzer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.novoda.sqlite; /* ww w . j a v a 2s. co m*/ import java.io.File; import java.util.Comparator; final class NumberedFilesComparator implements Comparator<File> { @Override public int compare(File o1, File o2) { return getLeadingNumber(o1.getName()) - getLeadingNumber(o2.getName()); } private int getLeadingNumber(String name) { try { return Integer.valueOf(name.split("_")[0]); } catch (NumberFormatException e) { return 0; } } }