Class VertexScoreTransformer<V,​S>

  • All Implemented Interfaces:
    com.google.common.base.Function<V,​S>, java.util.function.Function<V,​S>

    public class VertexScoreTransformer<V,​S>
    extends java.lang.Object
    implements com.google.common.base.Function<V,​S>
    A Function 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 apply​(V v)  
      • 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 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.
        Parameters:
        vs - the VertexScorer which will retrieve the score for each vertex
    • Method Detail

      • apply

        public S apply​(V v)
        Specified by:
        apply in interface com.google.common.base.Function<V,​S>
        Specified by:
        apply in interface java.util.function.Function<V,​S>
        Parameters:
        v - the vertex whose score is being returned
        Returns:
        the score for this vertex.