public JobIdsWithStatusOverview(JobIdsWithStatusOverview first, JobIdsWithStatusOverview second) { this.jobsWithStatus = combine(first.getJobsWithStatus(), second.getJobsWithStatus()); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof JobIdsWithStatusOverview) { JobIdsWithStatusOverview that = (JobIdsWithStatusOverview) obj; return jobsWithStatus.equals(that.getJobsWithStatus()); } else { return false; } }
@Override protected CompletableFuture<JobIdsWithStatusOverview> handleRequest( @Nonnull HandlerRequest<EmptyRequestBody, EmptyMessageParameters> request, @Nonnull RestfulGateway gateway) throws RestHandlerException { return gateway.requestMultipleJobDetails(timeout).thenApply( multipleJobDetails -> new JobIdsWithStatusOverview( multipleJobDetails .getJobs() .stream() .map( jobDetails -> new JobIdsWithStatusOverview.JobIdWithStatus( jobDetails.getJobId(), jobDetails.getStatus())) .collect(Collectors.toList()) ) ); } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof JobIdsWithStatusOverview) { JobIdsWithStatusOverview that = (JobIdsWithStatusOverview) obj; return jobsWithStatus.equals(that.getJobsWithStatus()); } else { return false; } }
@Override protected CompletableFuture<JobIdsWithStatusOverview> handleRequest( @Nonnull HandlerRequest<EmptyRequestBody, EmptyMessageParameters> request, @Nonnull RestfulGateway gateway) throws RestHandlerException { return gateway.requestMultipleJobDetails(timeout).thenApply( multipleJobDetails -> new JobIdsWithStatusOverview( multipleJobDetails .getJobs() .stream() .map( jobDetails -> new JobIdsWithStatusOverview.JobIdWithStatus( jobDetails.getJobId(), jobDetails.getStatus())) .collect(Collectors.toList()) ) ); } }
public JobIdsWithStatusOverview(JobIdsWithStatusOverview first, JobIdsWithStatusOverview second) { this.jobsWithStatus = combine(first.getJobsWithStatus(), second.getJobsWithStatus()); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof JobIdsWithStatusOverview) { JobIdsWithStatusOverview that = (JobIdsWithStatusOverview) obj; return jobsWithStatus.equals(that.getJobsWithStatus()); } else { return false; } }
@Override protected CompletableFuture<JobIdsWithStatusOverview> handleRequest( @Nonnull HandlerRequest<EmptyRequestBody, EmptyMessageParameters> request, @Nonnull RestfulGateway gateway) throws RestHandlerException { return gateway.requestMultipleJobDetails(timeout).thenApply( multipleJobDetails -> new JobIdsWithStatusOverview( multipleJobDetails .getJobs() .stream() .map( jobDetails -> new JobIdsWithStatusOverview.JobIdWithStatus( jobDetails.getJobId(), jobDetails.getStatus())) .collect(Collectors.toList()) ) ); } }
public JobIdsWithStatusOverview(JobIdsWithStatusOverview first, JobIdsWithStatusOverview second) { this.jobsWithStatus = combine(first.getJobsWithStatus(), second.getJobsWithStatus()); }
gen.writeArrayFieldStart(JobIdsWithStatusOverview.FIELD_NAME_JOBS); for (JobIdsWithStatusOverview.JobIdWithStatus jobIdWithStatus : overview.getJobsWithStatus()) { gen.writeObject(jobIdWithStatus);