All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.transferwise.tasks.domain.BaseTask1 Maven / Gradle / Ivy

There is a newer version: 1.43.0
Show newest version
package com.transferwise.tasks.domain;

import java.util.UUID;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class BaseTask1 implements IBaseTask {

  private UUID id;
  private String type;
  private long version;
  private int priority;
  private String status;

  public BaseTask toBaseTask() {
    return new BaseTask().setVersion(getVersion()).setType(getType()).setPriority(getPriority()).setId(getId());
  }

  @Override
  public ITaskVersionId getVersionId() {
    return new TaskVersionId(id, version);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy