Package hiiragi283.core.impl.material
Class HTMaterialContentsImpl
-
- All Implemented Interfaces:
-
hiiragi283.core.api.collection.HTTable,hiiragi283.core.api.material.HTMaterialContents
public final class HTMaterialContentsImpl<R extends Object, V extends HTMaterialContents.Entry<?>> implements HTMaterialContents<R, V>, HTTable<R, HTMaterialKey, V>
-
-
Field Summary
Fields Modifier and Type Field Description private final Integersizeprivate final BooleanisEmptyprivate final Set<R>rowKeysprivate final Set<HTMaterialKey>columnKeysprivate final Collection<V>valuesprivate final Set<Triple<R, HTMaterialKey, V>>entriesprivate final Map<R, Map<HTMaterialKey, V>>rowMapprivate final Map<HTMaterialKey, Map<R, V>>columnMap
-
Constructor Summary
Constructors Constructor Description HTMaterialContentsImpl(HTTable<R, HTMaterialKey, V> table, Function2<R, HTMaterialKey, String> errorFactory)
-
Method Summary
Modifier and Type Method Description abstract IntegergetSize()abstract BooleanisEmpty()abstract Set<R>getRowKeys()abstract Set<HTMaterialKey>getColumnKeys()abstract Collection<V>getValues()abstract Set<Triple<R, HTMaterialKey, V>>getEntries()abstract Map<R, Map<HTMaterialKey, V>>getRowMap()abstract Map<HTMaterialKey, Map<R, V>>getColumnMap()StringgetErrorMessage(R row, HTMaterialKey material)対応する値がない場合のエラーメッセージを作成します。 -
Methods inherited from class hiiragi283.core.api.collection.HTTable
column, contains, containsColumn, containsRow, containsValue, get, row -
Methods inherited from class hiiragi283.core.api.material.HTMaterialContents
column, get, getOrThrow -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTMaterialContentsImpl
HTMaterialContentsImpl(HTTable<R, HTMaterialKey, V> table, Function2<R, HTMaterialKey, String> errorFactory)
-
-
Method Detail
-
getRowKeys
abstract Set<R> getRowKeys()
-
getColumnKeys
abstract Set<HTMaterialKey> getColumnKeys()
-
getValues
abstract Collection<V> getValues()
-
getEntries
abstract Set<Triple<R, HTMaterialKey, V>> getEntries()
-
getColumnMap
abstract Map<HTMaterialKey, Map<R, V>> getColumnMap()
-
getErrorMessage
String getErrorMessage(R row, HTMaterialKey material)
対応する値がない場合のエラーメッセージを作成します。
-
-
-
-