public boolean appliesTo(ColumnFamily current) throws InvalidRequestException { for (RowCondition condition : conditions.values()) { if (!condition.appliesTo(current)) return false; } return true; }
/** * Checks whether the conditions represented by this object applies provided the current state of the partition on * which those conditions are. * * @param current the partition with current data corresponding to these conditions. More precisely, this must be * the result of executing the command returned by {@link #readCommand}. This can be empty but it should not be * {@code null}. * @return whether the conditions represented by this object applies or not. */ public boolean appliesTo(FilteredPartition current) throws InvalidRequestException { if (staticConditions != null && !staticConditions.appliesTo(current)) return false; for (RowCondition condition : conditions.values()) { if (!condition.appliesTo(current)) return false; } return true; }
/** * Checks whether the conditions represented by this object applies provided the current state of the partition on * which those conditions are. * * @param current the partition with current data corresponding to these conditions. More precisely, this must be * the result of executing the command returned by {@link #readCommand}. This can be empty but it should not be * {@code null}. * @return whether the conditions represented by this object applies or not. */ public boolean appliesTo(FilteredPartition current) throws InvalidRequestException { if (staticConditions != null && !staticConditions.appliesTo(current)) return false; for (RowCondition condition : conditions.values()) { if (!condition.appliesTo(current)) return false; } return true; }
/** * Checks whether the conditions represented by this object applies provided the current state of the partition on * which those conditions are. * * @param current the partition with current data corresponding to these conditions. More precisely, this must be * the result of executing the command returned by {@link #readCommand}. This can be empty but it should not be * {@code null}. * @return whether the conditions represented by this object applies or not. */ public boolean appliesTo(FilteredPartition current) throws InvalidRequestException { if (staticConditions != null && !staticConditions.appliesTo(current)) return false; for (RowCondition condition : conditions.values()) { if (!condition.appliesTo(current)) return false; } return true; }