org.jgrapht.experimental.equivalence
Class EquivalenceSetCreator<E,C>

java.lang.Object
  extended by org.jgrapht.experimental.equivalence.EquivalenceSetCreator<E,C>
Type Parameters:
E - the type of the elements in the set
C - the type of the context the element is compared against, e.g. a Graph TODO hb 060208: REVIEW: Using an array for aElementsArray causes problems with generics elsewhere - changed to List?

public class EquivalenceSetCreator<E,C>
extends Object

FIXME Document me.

Since:
Jul 21, 2005
Author:
Assaf

Constructor Summary
EquivalenceSetCreator()
           
 
Method Summary
static
<EE,CC> EquivalenceSet[]
createEqualityGroupOrderedArray(Collection<EE> elements, EquivalenceComparator<? super EE,? super CC> aEqComparator, CC aContext)
          Checks for equivalance groups in the aElementsArray.
static
<EE,CC> EquivalenceSet[]
createEqualityGroupOrderedArray(EE[] aElementsArray, EquivalenceComparator<? super EE,? super CC> aEqComparator, CC aContext)
          Deprecated. To improve type-safety when using generics, use createEqualityGroupOrderedArray(Collection, EquivalenceComparator, Object)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EquivalenceSetCreator

public EquivalenceSetCreator()
Method Detail

createEqualityGroupOrderedArray

@Deprecated
public static <EE,CC> EquivalenceSet[] createEqualityGroupOrderedArray(EE[] aElementsArray,
                                                                                  EquivalenceComparator<? super EE,? super CC> aEqComparator,
                                                                                  CC aContext)
Deprecated. To improve type-safety when using generics, use createEqualityGroupOrderedArray(Collection, EquivalenceComparator, Object)

Checks for equivalance groups in the aElementsArray. Returns an ordered array of them, where the smallest one is the first in the array.

Parameters:
aElementsArray -
aEqComparator -

createEqualityGroupOrderedArray

public static <EE,CC> EquivalenceSet[] createEqualityGroupOrderedArray(Collection<EE> elements,
                                                                       EquivalenceComparator<? super EE,? super CC> aEqComparator,
                                                                       CC aContext)
Checks for equivalance groups in the aElementsArray. Returns an ordered array of them, where the smallest one is the first in the array.

Parameters:
elements -
aEqComparator - TODO hb 060208: Using an array for aElementsArray causes problems with generics elsewhere - change to List?


Copyright © 2013. All rights reserved.