Android Open Source - FindYourWords Compare String List






From Project

Back to project page FindYourWords.

License

The source code is released under:

Apache License

If you think the Android project FindYourWords listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * CompareStringList is a class that implements Comparator to compare two String and return 
 * if the length is equals, more o less length.
 * //from   w  w  w  . ja va  2  s. c o  m
 * @author Sara Craba
 * @version 1.0
 */

package word;

import java.util.Comparator;

public class CompareStringList implements Comparator<String> 
{
   
    public int compare(String o1, String o2) 
    {
        if (o1.length() > o2.length()) 
        {
            return -1;
        } 
        else if (o1.length() < o2.length()) 
        {
            return 1;
        } 
        else 
        {
            return 0;
        }
    }
}




Java Source Code List

com.ipaulpro.afilechooser.FileChooserActivity.java
com.ipaulpro.afilechooser.FileListAdapter.java
com.ipaulpro.afilechooser.FileListFragment.java
com.ipaulpro.afilechooser.FileLoader.java
com.ipaulpro.afilechooser.utils.FileUtils.java
com.ipaulpro.afilechooser.utils.MimeTypeParser.java
com.ipaulpro.afilechooser.utils.MimeTypes.java
dialog.DialogCredits.java
dialog.DialogInfoMain.java
dialog.DialogInfo.java
dialog.DialogSaveFile.java
grid.CaptureWord.java
grid.Cell.java
grid.GridManager.java
grid.LetterView.java
grid.LineDrawView.java
grid.Positions.java
grid.RelativeLayoutView.java
mainClasses.MainActivity.java
mainClasses.SetWords.java
win.DialogWinThread.java
win.DialogWin.java
win.WinView.java
word.CompareStringList.java
word.OneWord.java