Interface Weigher<V>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int weightOf​(V value)
      Measures an object's weight to determine how many units of capacity that the value consumes.
    • Method Detail

      • weightOf

        int weightOf​(V value)
        Measures an object's weight to determine how many units of capacity that the value consumes. A value must consume a minimum of one unit.
        Parameters:
        value - the object to weigh
        Returns:
        the object's weight