Class DelegateToEdgeTransformer<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.algorithms.scoring.util.DelegateToEdgeTransformer<V,E>
-
- All Implemented Interfaces:
com.google.common.base.Function<VEPair<V,E>,java.lang.Number>
,java.util.function.Function<VEPair<V,E>,java.lang.Number>
public class DelegateToEdgeTransformer<V,E> extends java.lang.Object implements com.google.common.base.Function<VEPair<V,E>,java.lang.Number>
ATransformer<VEPair,Number
that delegates its operation to aTransformer<E,Number>
. Mainly useful for technical reasons inside AbstractIterativeScorer; in essence it allows the edge weight instance variable to be of typeVEPair,W
even if the edge weightTransformer
only operates on edges.
-
-
Constructor Summary
Constructors Constructor Description DelegateToEdgeTransformer(com.google.common.base.Function<? super E,? extends java.lang.Number> delegate)
Creates an instance with the specified delegate Function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Number
apply(VEPair<V,E> arg0)
-
-
-
Field Detail
-
delegate
protected com.google.common.base.Function<? super E,? extends java.lang.Number> delegate
The Function to which this instance delegates its function.
-
-
Constructor Detail
-
DelegateToEdgeTransformer
public DelegateToEdgeTransformer(com.google.common.base.Function<? super E,? extends java.lang.Number> delegate)
Creates an instance with the specified delegate Function.- Parameters:
delegate
- the Function to which this instance will delegate
-
-