public void put(UniqueKeyType uniqueKey, MultiKeyType multiKey, ValueType value) { mapValues.put(uniqueKey, value); Set<UniqueKeyType> set = mapKeys.get(multiKey); if (set == null) { set = new HashSet<>(); set.add(uniqueKey); mapKeys.put(multiKey, set); }else{ set.add(uniqueKey); } }
public void put(UniqueKeyType uniqueKey, MultiKeyType multiKey, ValueType value) { mapValues.put(uniqueKey, value); Set<UniqueKeyType> set = mapKeys.get(multiKey); if (set == null) { set = new HashSet<UniqueKeyType>(); set.add(uniqueKey); mapKeys.put(multiKey, set); }else{ set.add(uniqueKey); } }
public void put(UniqueKeyType uniqueKey, MultiKeyType multiKey, ValueType value) { mapValues.put(uniqueKey, value); Set<UniqueKeyType> set = mapKeys.get(multiKey); if (set == null) { set = new HashSet<UniqueKeyType>(); set.add(uniqueKey); mapKeys.put(multiKey, set); }else{ set.add(uniqueKey); } }
public void put(UniqueKeyType uniqueKey, MultiKeyType multiKey, ValueType value) { mapValues.put(uniqueKey, value); Set<UniqueKeyType> set = mapKeys.get(multiKey); if (set == null) { set = new HashSet<>(); set.add(uniqueKey); mapKeys.put(multiKey, set); }else{ set.add(uniqueKey); } }
@Override public synchronized void addUnspentTransactionOutput(UTXO out) throws BlockStoreException { Preconditions.checkNotNull(transactionOutputMap, "MemoryFullPrunedBlockStore is closed"); transactionOutputMap.put(new StoredTransactionOutPoint(out), out); }
@Override public synchronized void addUnspentTransactionOutput(UTXO out) throws BlockStoreException { Preconditions.checkNotNull(transactionOutputMap, "MemoryFullPrunedBlockStore is closed"); transactionOutputMap.put(new StoredTransactionOutPoint(out), out); }
@Override public synchronized void addUnspentTransactionOutput(UTXO out) throws BlockStoreException { Preconditions.checkNotNull(transactionOutputMap, "MemoryFullPrunedBlockStore is closed"); transactionOutputMap.put(new StoredTransactionOutPoint(out), out); }
@Override public synchronized void addUnspentTransactionOutput(UTXO out) throws BlockStoreException { Preconditions.checkNotNull(transactionOutputMap, "MemoryFullPrunedBlockStore is closed"); transactionOutputMap.put(new StoredTransactionOutPoint(out), out); }
@Override public synchronized void put(StoredBlock block) throws BlockStoreException { Preconditions.checkNotNull(blockMap, "MemoryFullPrunedBlockStore is closed"); Sha256Hash hash = block.getHeader().getHash(); blockMap.put(hash, new StoredBlockAndWasUndoableFlag(block, false)); }
@Override public synchronized void put(StoredBlock block) throws BlockStoreException { Preconditions.checkNotNull(blockMap, "MemoryFullPrunedBlockStore is closed"); Sha256Hash hash = block.getHeader().getHash(); blockMap.put(hash, new StoredBlockAndWasUndoableFlag(block, false)); }
@Override public synchronized void put(StoredBlock block) throws BlockStoreException { Preconditions.checkNotNull(blockMap, "MemoryFullPrunedBlockStore is closed"); Sha256Hash hash = block.getHeader().getHash(); blockMap.put(hash, new StoredBlockAndWasUndoableFlag(block, false)); }
@Override public synchronized void put(StoredBlock block) throws BlockStoreException { Preconditions.checkNotNull(blockMap, "MemoryFullPrunedBlockStore is closed"); Sha256Hash hash = block.getHeader().getHash(); blockMap.put(hash, new StoredBlockAndWasUndoableFlag(block, false)); }
@Override public synchronized final void put(StoredBlock storedBlock, StoredUndoableBlock undoableBlock) throws BlockStoreException { Preconditions.checkNotNull(blockMap, "MemoryFullPrunedBlockStore is closed"); Sha256Hash hash = storedBlock.getHeader().getHash(); fullBlockMap.put(hash, storedBlock.getHeight(), undoableBlock); blockMap.put(hash, new StoredBlockAndWasUndoableFlag(storedBlock, true)); }
@Override public synchronized final void put(StoredBlock storedBlock, StoredUndoableBlock undoableBlock) throws BlockStoreException { Preconditions.checkNotNull(blockMap, "MemoryFullPrunedBlockStore is closed"); Sha256Hash hash = storedBlock.getHeader().getHash(); fullBlockMap.put(hash, storedBlock.getHeight(), undoableBlock); blockMap.put(hash, new StoredBlockAndWasUndoableFlag(storedBlock, true)); }
@Override public synchronized final void put(StoredBlock storedBlock, StoredUndoableBlock undoableBlock) throws BlockStoreException { Preconditions.checkNotNull(blockMap, "MemoryFullPrunedBlockStore is closed"); Sha256Hash hash = storedBlock.getHeader().getHash(); fullBlockMap.put(hash, storedBlock.getHeight(), undoableBlock); blockMap.put(hash, new StoredBlockAndWasUndoableFlag(storedBlock, true)); }
@Override public synchronized final void put(StoredBlock storedBlock, StoredUndoableBlock undoableBlock) throws BlockStoreException { Preconditions.checkNotNull(blockMap, "MemoryFullPrunedBlockStore is closed"); Sha256Hash hash = storedBlock.getHeader().getHash(); fullBlockMap.put(hash, storedBlock.getHeight(), undoableBlock); blockMap.put(hash, new StoredBlockAndWasUndoableFlag(storedBlock, true)); }