org.expasy.jpl.commons.collection.sorter
Interface ArrayIndexComparator

All Superinterfaces:
Comparator<Integer>
All Known Implementing Classes:
AbstractDoublesArrayIndexComparator, AbstractIntsArrayIndexComparator, AbstractListIndexComparator, AbstractObjectsArrayIndexComparator

public interface ArrayIndexComparator
extends Comparator<Integer>

Objects implementing this interface can compare two arguments values for order, via the method to implement int compare(Integer o1, Integer o2), found at given indices of a given array.

Version:
1.0
Author:
nikitin

Method Summary
 Object getArray()
          get the array to sort
 int getArraySize()
          the number of values to sort
 void setArray(Object array)
          set the array to sort
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

getArraySize

int getArraySize()
the number of values to sort


getArray

Object getArray()
get the array to sort


setArray

void setArray(Object array)
set the array to sort



Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.