@Override public boolean isCommandValid() { return timestamp != -1L && !scan.isEmpty(); } }
/** * Returns the last element of this list. * If the list is empty, it returns {@code null}. * @return the last element of this list */ public T getLast() { if (isEmpty()) return null; else return unsafeGet(size - 1); }
@Override public String toString() { if (isEmpty()) return "Empty list"; String ret = ""; for (int i = 0; i < size - 1; i++) ret += unsafeGet(i).toString() + "\n"; ret += unsafeGet(size - 1).toString(); return ret; }
if (!requestedFootstepAdjustment.getPredictedContactPoints().isEmpty())
if (footstepData.getPredictedContactPoints().isEmpty()) contactPoints = null; else