Interface Weigher<V>

Type Parameters:
V - 值类型

public interface Weigher<V>
确定值的选择器
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    weightOf(V value)
    测量对象的选择器以确定值消耗了多少个容量单位
  • Method Details

    • weightOf

      int weightOf(V value)
      测量对象的选择器以确定值消耗了多少个容量单位
      Parameters:
      value - 称量物体
      Returns:
      对象的选择器