is.idega.idegaweb.golf.tournament.business
Class ResultComparator

java.lang.Object
  extended by is.idega.idegaweb.golf.tournament.business.ResultComparator
All Implemented Interfaces:
java.util.Comparator

public class ResultComparator
extends java.lang.Object
implements java.util.Comparator

Title: Description: Copyright: Copyright (c) 2001 Company:

Version:
1.0
Author:

Field Summary
static int ABBREVATION
           
static int NAME
           
static int TOTAL_STROKES_V_2
           
static int TOTALPOINTS
           
static int TOTALPOINTSWITHOUTHANDICAP
           
static int TOTALSTROKES
           
static int TOTALSTROKESWITHHANDICAP
           
static int TOURNAMENTROUND
           
 
Constructor Summary
ResultComparator()
           
ResultComparator(int toSortBy)
           
 
Method Summary
 int abbrevationCompare(java.lang.Object o1, java.lang.Object o2)
           
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 boolean equals(java.lang.Object obj)
           
 int nameCompare(java.lang.Object o1, java.lang.Object o2)
           
 int roundCompare(java.lang.Object o1, java.lang.Object o2)
           
 void sortBy(int toSortBy)
           
 void sortByRound(int roundNumber)
           
 int totalPointsCompare(java.lang.Object o1, java.lang.Object o2)
           
 int totalStrokesCompare(java.lang.Object o1, java.lang.Object o2)
           
 int totalStrokesCompareV2(java.lang.Object o1, java.lang.Object o2)
           
 int totalStrokesHandicapCompare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOTALSTROKES

public static final int TOTALSTROKES
See Also:
Constant Field Values

TOTALSTROKESWITHHANDICAP

public static final int TOTALSTROKESWITHHANDICAP
See Also:
Constant Field Values

TOTALPOINTS

public static final int TOTALPOINTS
See Also:
Constant Field Values

TOTALPOINTSWITHOUTHANDICAP

public static final int TOTALPOINTSWITHOUTHANDICAP
See Also:
Constant Field Values

NAME

public static final int NAME
See Also:
Constant Field Values

ABBREVATION

public static final int ABBREVATION
See Also:
Constant Field Values

TOURNAMENTROUND

public static final int TOURNAMENTROUND
See Also:
Constant Field Values

TOTAL_STROKES_V_2

public static final int TOTAL_STROKES_V_2
See Also:
Constant Field Values
Constructor Detail

ResultComparator

public ResultComparator()

ResultComparator

public ResultComparator(int toSortBy)
Method Detail

sortBy

public void sortBy(int toSortBy)

sortByRound

public void sortByRound(int roundNumber)

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object

nameCompare

public int nameCompare(java.lang.Object o1,
                       java.lang.Object o2)

abbrevationCompare

public int abbrevationCompare(java.lang.Object o1,
                              java.lang.Object o2)

totalStrokesCompare

public int totalStrokesCompare(java.lang.Object o1,
                               java.lang.Object o2)

totalStrokesCompareV2

public int totalStrokesCompareV2(java.lang.Object o1,
                                 java.lang.Object o2)

totalStrokesHandicapCompare

public int totalStrokesHandicapCompare(java.lang.Object o1,
                                       java.lang.Object o2)

totalPointsCompare

public int totalPointsCompare(java.lang.Object o1,
                              java.lang.Object o2)

roundCompare

public int roundCompare(java.lang.Object o1,
                        java.lang.Object o2)


Copyright © 2000-2014 idega software. All Rights Reserved.