is.idega.idegaweb.golf.service
Class ReportMemberComparator

java.lang.Object
  extended by is.idega.idegaweb.golf.service.ReportMemberComparator
All Implemented Interfaces:
java.util.Comparator

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

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

Version:
1.0
Author:
aron@idega.is

Field Summary
static int ADDRESS
           
static int BALANCE
           
static int EMAIL
           
static int HANDICAP
           
static int LOCKER
           
static int NAME
           
static int PHONE
           
static int SOCIAL
           
static int STATUS
           
 
Constructor Summary
ReportMemberComparator()
           
ReportMemberComparator(int toSortBy)
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 boolean equals(java.lang.Object obj)
           
 ReportMember[] reverseSortedArray(ReportMember[] members, int toSortBy)
           
 java.util.Iterator sort(ReportMember[] members)
           
 java.util.Iterator sort(ReportMember[] members, int toSortBy)
           
 void sortBy(int toSortBy)
           
 ReportMember[] sortedArray(ReportMember[] members)
           
 ReportMember[] sortedArray(ReportMember[] members, int toSortBy)
           
 java.util.Vector sortedArray(java.util.Vector list)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final int NAME
See Also:
Constant Field Values

SOCIAL

public static final int SOCIAL
See Also:
Constant Field Values

ADDRESS

public static final int ADDRESS
See Also:
Constant Field Values

EMAIL

public static final int EMAIL
See Also:
Constant Field Values

HANDICAP

public static final int HANDICAP
See Also:
Constant Field Values

BALANCE

public static final int BALANCE
See Also:
Constant Field Values

PHONE

public static final int PHONE
See Also:
Constant Field Values

LOCKER

public static final int LOCKER
See Also:
Constant Field Values

STATUS

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

ReportMemberComparator

public ReportMemberComparator()

ReportMemberComparator

public ReportMemberComparator(int toSortBy)
Method Detail

sortBy

public void sortBy(int toSortBy)

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

sort

public java.util.Iterator sort(ReportMember[] members,
                               int toSortBy)

sort

public java.util.Iterator sort(ReportMember[] members)

sortedArray

public ReportMember[] sortedArray(ReportMember[] members,
                                  int toSortBy)

sortedArray

public java.util.Vector sortedArray(java.util.Vector list)

sortedArray

public ReportMember[] sortedArray(ReportMember[] members)

reverseSortedArray

public ReportMember[] reverseSortedArray(ReportMember[] members,
                                         int toSortBy)


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