Interface HTAmountView
-
- All Implemented Interfaces:
public interface HTAmountView<N extends Number, Comparable<N>>量と容量を保持するインターフェースです。
- Since:
0.1.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceHTAmountView.IntSizedInt値を扱うHTAmountViewの拡張インターフェース
public interfaceHTAmountView.LongSizedLong値を扱うHTAmountViewの拡張インターフェース
-
Method Summary
Modifier and Type Method Description abstract NgetAmount()保持している量を返します。 abstract NgetCapacity()容量を返します。 abstract NgetNeeded()空き容量を返します。 abstract FractiongetStoredLevel()占有率を返します。 -
-
Method Detail
-
getCapacity
abstract N getCapacity()
容量を返します。
-
getStoredLevel
abstract Fraction getStoredLevel()
占有率を返します。
- Returns:
Fraction型での占有率
-
-
-
-