Class MENetworkMatterTankList
-
- All Implemented Interfaces:
-
kotlin.collections.Collection,kotlin.collections.Iterable,kotlin.collections.List
public final class MENetworkMatterTankList implements List<MEMatterTank>
ME ネットワーク内のすべてのマターをタンクのリストとして扱う為のクラス
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMENetworkMatterTankList.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integersizepublic final static MENetworkMatterTankList.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description MENetworkMatterTankList(Map<IMatterType, Long> cachedMatters, MEStorage storage, IActionSource source)
-
Method Summary
Modifier and Type Method Description IntegergetSize()final UnitupdateCache(AEKey key, Long amount)タンク内のマター量を更新する。 AE2 のストレージは Long で数量を扱うため、Long を受け取って Double に変換する。 BooleanisEmpty()Booleancontains(MEMatterTank element)Iterator<MEMatterTank>iterator()BooleancontainsAll(Collection<MEMatterTank> elements)MEMatterTankget(Integer index)IntegerindexOf(MEMatterTank element)IntegerlastIndexOf(MEMatterTank element)ListIterator<MEMatterTank>listIterator()ListIterator<MEMatterTank>listIterator(Integer index)List<MEMatterTank>subList(Integer fromIndex, Integer toIndex)-
Methods inherited from class kotlin.collections.Collection
parallelStream, stream, toArray -
Methods inherited from class kotlin.collections.Iterable
forEach, spliterator -
Methods inherited from class kotlin.collections.List
getFirst, getLast, reversed -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
updateCache
final Unit updateCache(AEKey key, Long amount)
タンク内のマター量を更新する。 AE2 のストレージは Long で数量を扱うため、Long を受け取って Double に変換する。
-
contains
Boolean contains(MEMatterTank element)
-
iterator
Iterator<MEMatterTank> iterator()
-
containsAll
Boolean containsAll(Collection<MEMatterTank> elements)
-
get
MEMatterTank get(Integer index)
-
indexOf
Integer indexOf(MEMatterTank element)
-
lastIndexOf
Integer lastIndexOf(MEMatterTank element)
-
listIterator
ListIterator<MEMatterTank> listIterator()
-
listIterator
ListIterator<MEMatterTank> listIterator(Integer index)
-
subList
List<MEMatterTank> subList(Integer fromIndex, Integer toIndex)
-
-
-
-