edu.uci.ics.jung.algorithms.scoring.util
Class DelegateToEdgeTransformer<V,E>
java.lang.Object
edu.uci.ics.jung.algorithms.scoring.util.DelegateToEdgeTransformer<V,E>
- All Implemented Interfaces:
- org.apache.commons.collections15.Transformer<VEPair<V,E>,Number>
public class DelegateToEdgeTransformer<V,E>
- extends Object
- implements org.apache.commons.collections15.Transformer<VEPair<V,E>,Number>
A Transformer
that delegates its operation to a
Transformer
. Mainly useful for technical reasons inside
AbstractIterativeScorer; in essence it allows the edge weight instance
variable to be of type VEPair,W
even if the edge weight
Transformer
only operates on edges.
Field Summary |
protected org.apache.commons.collections15.Transformer<E,? extends Number> |
delegate
The transformer to which this instance delegates its function. |
Constructor Summary |
DelegateToEdgeTransformer(org.apache.commons.collections15.Transformer<E,? extends Number> delegate)
Creates an instance with the specified delegate transformer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
protected org.apache.commons.collections15.Transformer<E,? extends Number> delegate
- The transformer to which this instance delegates its function.
DelegateToEdgeTransformer
public DelegateToEdgeTransformer(org.apache.commons.collections15.Transformer<E,? extends Number> delegate)
- Creates an instance with the specified delegate transformer.
- Parameters:
delegate
- the Transformer to which this instance will delegate
transform
public Number transform(VEPair<V,E> arg0)
- Specified by:
transform
in interface org.apache.commons.collections15.Transformer<VEPair<V,E>,Number>
- See Also:
Transformer.transform(Object)
Copyright © 2009. All Rights Reserved.