public boolean contains(LocalDateTime dateTime) { long dt = PackedLocalDateTime.pack(dateTime); return data().contains(dt); }
public boolean contains(long value) { return data.contains(value); }
public boolean contains(LocalDateTime dateTime) { long dt = PackedLocalDateTime.pack(dateTime); return data().contains(dt); }
public void trainInternal(List<Item> items, List<ClickData> clickData) { //if new articles arrive. check if they are already known //if so remove the old entry from the list //in any case, add the new article id to the list for (Item item : items) { if (mostRecentItems.contains(item.id)) { mostRecentItems.rem(item.id); } mostRecentItems.add(0, item.id); } }
public boolean contains(LocalDateTime dateTime) { long dt = PackedLocalDateTime.pack(dateTime); return data().contains(dt); }
if (inProgress.get(tx.getTransactionId()) == null) { if (invalid.contains(tx.getTransactionId())) { throw new TransactionNotInProgressException( String.format("canCommit() is called for transaction %d that is not in progress (it is known to be invalid)",
if (inProgress.get(tx.getTransactionId()) == null) { if (invalid.contains(tx.getTransactionId())) { throw new TransactionNotInProgressException( String.format("canCommit() is called for transaction %d that is not in progress (it is known to be invalid)",
if (invalid.contains(txId)) { throw new TransactionNotInProgressException( String.format("Transaction %d is not in progress because it was invalidated", txId));
if (invalid.contains(txId)) { throw new TransactionNotInProgressException( String.format("Transaction %d is not in progress because it was invalidated", txId));
if (inProgress.get(tx.getTransactionId()) == null) { if (invalid.contains(tx.getTransactionId())) { throw new TransactionNotInProgressException( String.format("canCommit() is called for transaction %d that is not in progress " +
if (inProgress.get(tx.getTransactionId()) == null) { if (invalid.contains(tx.getTransactionId())) { throw new TransactionNotInProgressException( String.format("canCommit() is called for transaction %d that is not in progress " +