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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.google.common.base.Function<? super E,? extends Number>
    The Function to which this instance delegates its function.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DelegateToEdgeTransformer(com.google.common.base.Function<? super E,? extends Number> delegate)
    Creates an instance with the specified delegate Function.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(VEPair<V,E> arg0)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.common.base.Function

    equals

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • 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)