vec_math
Class VectorG.IComp

java.lang.Object
  extended by vec_math.VectorG.IComp
All Implemented Interfaces:
Comparator<VectorG>
Enclosing class:
VectorG

private static class VectorG.IComp
extends Object
implements Comparator<VectorG>

Special index comparator.


Field Summary
private  int index
          Index in the VectorG to compare.
 
Constructor Summary
private VectorG.IComp(int i)
           
 
Method Summary
 int compare(VectorG n1, VectorG n2)
          Compares two VectorG using the specified index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

index

private int index
Index in the VectorG to compare.

Constructor Detail

VectorG.IComp

private VectorG.IComp(int i)
Method Detail

compare

public int compare(VectorG n1,
                   VectorG n2)
Compares two VectorG using the specified index. Throws a class cast exception, if they cannot be compared.

Specified by:
compare in interface Comparator<VectorG>