Interface HTAmountView

  • All Implemented Interfaces:

    
    public interface HTAmountView<N extends Number, Comparable<N>>
    
                        

    量と容量を保持するインターフェースです。

    Since:

    0.1.0

    Author:

    Hiiragi Tsubasa

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract N getAmount() 保持している量を返します。
      abstract N getCapacity() 容量を返します。
      abstract N getNeeded() 空き容量を返します。
      abstract Fraction getStoredLevel() 占有率を返します。
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getAmount

         abstract N getAmount()

        保持している量を返します。

      • getCapacity

         abstract N getCapacity()

        容量を返します。

      • getNeeded

         abstract N getNeeded()

        空き容量を返します。

      • getStoredLevel

         abstract Fraction getStoredLevel()

        占有率を返します。

        Returns:

        Fraction型での占有率