Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.hubspot.singularity;
 
 import java.util.List;
 
  private final SingularityTaskId taskId;
  private final long updatedAt;
    ExtendedTaskState lastTaskState = null;
    long updatedAt = taskId.getStartedAt();
    if (updates != null && !updates.isEmpty()) {
      SingularityTaskHistoryUpdate lastUpdate = Iterables.getLast(updates);
      lastTaskState = lastUpdate.getTaskState();
      updatedAt = lastUpdate.getTimestamp();
    }
    return new SingularityTaskIdHistory(taskIdupdatedAt, Optional.fromNullable(lastTaskState));
  }
  public SingularityTaskIdHistory(@JsonProperty("taskId"SingularityTaskId taskId, @JsonProperty("updatedAt"long updatedAt, @JsonProperty("lastStatus"Optional<ExtendedTaskStatelastTaskState) {
    this. = taskId;
    this. = updatedAt;
    this. = lastTaskState;
  }
  public int compareTo(SingularityTaskIdHistory o) {
    return ComparisonChain.start()
        .compare(o.getUpdatedAt(), )
        .compare(.getId(), o.getTaskId().getId())
        .result();
  }
  public SingularityTaskId getTaskId() {
    return ;
  }
    return ;
  }
  public long getUpdatedAt() {
    return ;
  }
  public String toString() {
    return "SingularityTaskIdHistory [taskId=" +  + ", updatedAt=" +  + ", lastTaskState=" +  + "]";
  }
New to GrepCode? Check out our FAQ X