Class VertexScoreTransformer<V,​S>

  • All Implemented Interfaces:
    org.apache.commons.collections4.Transformer<V,​S>

    public class VertexScoreTransformer<V,​S>
    extends java.lang.Object
    implements org.apache.commons.collections4.Transformer<V,​S>
    A Transformer convenience wrapper around VertexScorer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected VertexScorer<V,​S> vs
      The VertexScorer instance that provides the values returned by transform.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      S transform​(V v)
      Returns the score for this vertex.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • vs

        protected VertexScorer<V,​S> vs
        The VertexScorer instance that provides the values returned by transform.
    • Constructor Detail

      • VertexScoreTransformer

        public VertexScoreTransformer​(VertexScorer<V,​S> vs)
        Creates an instance based on the specified VertexScorer.
    • Method Detail

      • transform

        public S transform​(V v)
        Returns the score for this vertex.
        Specified by:
        transform in interface org.apache.commons.collections4.Transformer<V,​S>