Class DeleteSelectedSupport

java.lang.Object
fr.tiogars.inception.common.services.DeleteSelectedSupport

public final class DeleteSelectedSupport extends Object
Applies a single-record deletion to each selected identifier.
Since:
0.1.0
  • Method Details

    • deleteEach

      public static DeleteSelectedResponse deleteEach(List<Long> ids, Predicate<Long> delete)
      Deletes each distinct identifier, preserving the input order.
      Parameters:
      ids - selected identifiers
      delete - deletion returning true when the record was deleted
      Returns:
      deleted and skipped identifiers