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>, Number>, Function<VEPair<V,E>, Number>

public class DelegateToEdgeTransformer<V,E> extends Object implements com.google.common.base.Function<VEPair<V,E>, Number>
A Transformer<VEPair,Number that delegates its operation to a Transformer<E,Number>. 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 Details

    • delegate

      protected com.google.common.base.Function<? super E, ? extends Number> delegate
      The Function to which this instance delegates its function.
  • Constructor Details

    • DelegateToEdgeTransformer

      public DelegateToEdgeTransformer(com.google.common.base.Function<? super E, ? extends Number> delegate)
      Creates an instance with the specified delegate Function.
      Parameters:
      delegate - the Function to which this instance will delegate
  • Method Details

    • apply

      public Number apply(VEPair<V,E> arg0)
      Specified by:
      apply in interface com.google.common.base.Function<V,E>
      Specified by:
      apply in interface Function<V,E>
      See Also:
      • Function.apply(Object)