Class Quadra<F,S,T,Fo>
java.lang.Object
tools.Quadra<F,S,T,Fo>
- All Implemented Interfaces:
Serializable
儲存四個異質型別值的不可變泛型容器,為
Pair 與 Triple 的四元組擴充。
以型別參數 F、S、T、Fo 分別持有
first、second、third、forth 四個公開欄位,
實作 Serializable 以支援序列化。
提供對應的 getter 方法與完整的 equals/hashCode/toString 實作。
在 TWMS v149 中作為輕量值持有物件,用於需要同時傳遞四個不同型別資料而不值得獨立建立類別的場合。
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
first
-
second
-
third
-
forth
-
-
Constructor Details
-
Quadra
-
-
Method Details
-
getFirst
-
getSecond
-
getThird
-
getForth
-
toString
-
hashCode
-
equals
-