JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util
Class CollectionIntComparator

java.lang.Object
  |
  +--com.klg.jclass.util.CollectionIntComparator
All Implemented Interfaces:
JCIntComparator, Serializable

public class CollectionIntComparator
extends Object
implements JCIntComparator

CollectionIntComparator class.

See Also:
Serialized Form

Field Summary
protected  Comparator comparator
           
protected  List list
           
 
Constructor Summary
CollectionIntComparator(List list)
          Creates an instance of the CollectionIntComparator class.
CollectionIntComparator(List list, Comparator comparator)
          Creates an instance of the CollectionIntComparator class.
 
Method Summary
 int compare(int index1, int index2)
          Compares two values for the given indices.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected List list

comparator

protected Comparator comparator
Constructor Detail

CollectionIntComparator

public CollectionIntComparator(List list,
                               Comparator comparator)
Creates an instance of the CollectionIntComparator class.


CollectionIntComparator

public CollectionIntComparator(List list)
Creates an instance of the CollectionIntComparator class.

Method Detail

compare

public int compare(int index1,
                   int index2)
Compares two values for the given indices.

Specified by:
compare in interface JCIntComparator
Parameters:
index1 - The index of the first value
index2 - The index of the second value
Returns:
A value which tells whether the first value is less than (negative), equal to (0), or greather than (positive) the second vzlue.

Copyright © 2004 Quest Software Inc..
All rights reserved.