@Override public String toString() { return getValue(); }
private boolean equalTo(CancelTaskResponse another) { return Objects.equals(command, another.command) && diskInMb.equals(another.diskInMb) && dropletId.equals(another.dropletId) && memoryInMb.equals(another.memoryInMb) && name.equals(another.name) && Objects.equals(result, another.result) && sequenceId.equals(another.sequenceId) && state.equals(another.state) && createdAt.equals(another.createdAt) && id.equals(another.id) && links.equals(another.links) && Objects.equals(updatedAt, another.updatedAt); }
/** * Computes a hash code from attributes: {@code command}, {@code diskInMb}, {@code dropletId}, {@code memoryInMb}, {@code name}, {@code result}, {@code sequenceId}, {@code state}, {@code createdAt}, {@code id}, {@code links}, {@code updatedAt}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + Objects.hashCode(command); h += (h << 5) + diskInMb.hashCode(); h += (h << 5) + dropletId.hashCode(); h += (h << 5) + memoryInMb.hashCode(); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(result); h += (h << 5) + sequenceId.hashCode(); h += (h << 5) + state.hashCode(); h += (h << 5) + createdAt.hashCode(); h += (h << 5) + id.hashCode(); h += (h << 5) + links.hashCode(); h += (h << 5) + Objects.hashCode(updatedAt); return h; }
/** * Computes a hash code from attributes: {@code command}, {@code diskInMb}, {@code dropletId}, {@code memoryInMb}, {@code name}, {@code result}, {@code sequenceId}, {@code state}, {@code createdAt}, {@code id}, {@code links}, {@code updatedAt}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + Objects.hashCode(command); h += (h << 5) + diskInMb.hashCode(); h += (h << 5) + dropletId.hashCode(); h += (h << 5) + memoryInMb.hashCode(); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(result); h += (h << 5) + sequenceId.hashCode(); h += (h << 5) + state.hashCode(); h += (h << 5) + createdAt.hashCode(); h += (h << 5) + id.hashCode(); h += (h << 5) + links.hashCode(); h += (h << 5) + Objects.hashCode(updatedAt); return h; }
private static Task toTask(org.cloudfoundry.client.v3.tasks.Task task) { return Task.builder() .command(task.getCommand()) .sequenceId(task.getSequenceId()) .name(task.getName()) .startTime(task.getCreatedAt()) .state(TaskState.valueOf(task.getState().getValue())) .build(); }
private boolean equalTo(GetTaskResponse another) { return Objects.equals(command, another.command) && diskInMb.equals(another.diskInMb) && dropletId.equals(another.dropletId) && memoryInMb.equals(another.memoryInMb) && name.equals(another.name) && Objects.equals(result, another.result) && sequenceId.equals(another.sequenceId) && state.equals(another.state) && createdAt.equals(another.createdAt) && id.equals(another.id) && links.equals(another.links) && Objects.equals(updatedAt, another.updatedAt); }
/** * Computes a hash code from attributes: {@code command}, {@code diskInMb}, {@code dropletId}, {@code memoryInMb}, {@code name}, {@code result}, {@code sequenceId}, {@code state}, {@code createdAt}, {@code id}, {@code links}, {@code updatedAt}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + Objects.hashCode(command); h += (h << 5) + diskInMb.hashCode(); h += (h << 5) + dropletId.hashCode(); h += (h << 5) + memoryInMb.hashCode(); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(result); h += (h << 5) + sequenceId.hashCode(); h += (h << 5) + state.hashCode(); h += (h << 5) + createdAt.hashCode(); h += (h << 5) + id.hashCode(); h += (h << 5) + links.hashCode(); h += (h << 5) + Objects.hashCode(updatedAt); return h; }
private boolean equalTo(CreateTaskResponse another) { return Objects.equals(command, another.command) && diskInMb.equals(another.diskInMb) && dropletId.equals(another.dropletId) && memoryInMb.equals(another.memoryInMb) && name.equals(another.name) && Objects.equals(result, another.result) && sequenceId.equals(another.sequenceId) && state.equals(another.state) && createdAt.equals(another.createdAt) && id.equals(another.id) && links.equals(another.links) && Objects.equals(updatedAt, another.updatedAt); }
/** * Computes a hash code from attributes: {@code command}, {@code diskInMb}, {@code dropletId}, {@code memoryInMb}, {@code name}, {@code result}, {@code sequenceId}, {@code state}, {@code createdAt}, {@code id}, {@code links}, {@code updatedAt}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + Objects.hashCode(command); h += (h << 5) + diskInMb.hashCode(); h += (h << 5) + dropletId.hashCode(); h += (h << 5) + memoryInMb.hashCode(); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(result); h += (h << 5) + sequenceId.hashCode(); h += (h << 5) + state.hashCode(); h += (h << 5) + createdAt.hashCode(); h += (h << 5) + id.hashCode(); h += (h << 5) + links.hashCode(); h += (h << 5) + Objects.hashCode(updatedAt); return h; }
private boolean equalTo(TaskResource another) { return Objects.equals(command, another.command) && diskInMb.equals(another.diskInMb) && dropletId.equals(another.dropletId) && memoryInMb.equals(another.memoryInMb) && name.equals(another.name) && Objects.equals(result, another.result) && sequenceId.equals(another.sequenceId) && state.equals(another.state) && createdAt.equals(another.createdAt) && id.equals(another.id) && links.equals(another.links) && Objects.equals(updatedAt, another.updatedAt); }