Class TreeCollapseDemo.ClusterVertexSizeFunction<V>

  • Type Parameters:
    V - the vertex type
    All Implemented Interfaces:
    com.google.common.base.Function<V,​java.lang.Integer>, java.util.function.Function<V,​java.lang.Integer>
    Enclosing class:
    TreeCollapseDemo

    class TreeCollapseDemo.ClusterVertexSizeFunction<V>
    extends java.lang.Object
    implements com.google.common.base.Function<V,​java.lang.Integer>
    A demo class that will make vertices larger if they represent a collapsed collection of original vertices
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int size  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer 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

      • size

        int size
    • Constructor Detail

      • ClusterVertexSizeFunction

        public ClusterVertexSizeFunction​(java.lang.Integer size)
    • Method Detail

      • apply

        public java.lang.Integer apply​(V v)
        Specified by:
        apply in interface com.google.common.base.Function<V,​java.lang.Integer>
        Specified by:
        apply in interface java.util.function.Function<V,​java.lang.Integer>