@Override public String toString() { return "TaskSlot(index:" + index + ", state:" + state + ", resource profile: " + resourceProfile + ", allocationId: " + (allocationId != null ? allocationId.toString() : "none") + ", jobId: " + (jobId != null ? jobId.toString() : "none") + ", version: " + version + ", allocationResourceProfile: " + (allocationResourceProfile != null ? allocationResourceProfile.toString() : "none") + ")"; } }