APISonar


java.util.ArrayList.score

> java > util > ArrayList > score
java APIs util APIs ArrayList APIs score APIs

Example 1
private ArrayList path;  // contains Relationship objects

	public int compare(Path path)
	{
		int diff=size()-path.size();
		if (diff==0)
		{
			diff=nrTables()-path.nrTables();
			if (diff==0)
			{
				diff=score() - path.score();
			}
		}
		if (diff<0) return -1;
		else if (diff>0) return 1;
		else return 0;
	}