/** * Sets the time this file was last modified, measured in milliseconds since * January 1st, 1970, midnight. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @param time * the last modification time for this file. * @return {@code true} if the operation is successful, {@code false} * otherwise. * @throws IllegalArgumentException * if {@code time < 0}. */ public boolean setLastModified(long time) { if (time < 0) { throw new IllegalArgumentException("time < 0"); } return setLastModifiedImpl(path, time); }
/** * Sets the time this file was last modified, measured in milliseconds since * January 1st, 1970, midnight. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @param time * the last modification time for this file. * @return {@code true} if the operation is successful, {@code false} * otherwise. * @throws IllegalArgumentException * if {@code time < 0}. */ public boolean setLastModified(long time) { if (time < 0) { throw new IllegalArgumentException("time < 0"); } return setLastModifiedImpl(path, time); }
/** * Sets the time this file was last modified, measured in milliseconds since * January 1st, 1970, midnight. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @param time * the last modification time for this file. * @return {@code true} if the operation is successful, {@code false} * otherwise. * @throws IllegalArgumentException * if {@code time < 0}. */ public boolean setLastModified(long time) { if (time < 0) { throw new IllegalArgumentException("time < 0"); } return setLastModifiedImpl(path, time); }
/** * Sets the time this file was last modified, measured in milliseconds since * January 1st, 1970, midnight. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @param time * the last modification time for this file. * @return {@code true} if the operation is successful, {@code false} * otherwise. * @throws IllegalArgumentException * if {@code time < 0}. */ public boolean setLastModified(long time) { if (time < 0) { throw new IllegalArgumentException("time < 0"); } return setLastModifiedImpl(path, time); }
/** * Sets the time this file was last modified, measured in milliseconds since * January 1st, 1970, midnight. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @param time * the last modification time for this file. * @return {@code true} if the operation is successful, {@code false} * otherwise. * @throws IllegalArgumentException * if {@code time < 0}. */ public boolean setLastModified(long time) { if (time < 0) { throw new IllegalArgumentException("time < 0"); } return setLastModifiedImpl(path, time); }
/** * Sets the time this file was last modified, measured in milliseconds since * January 1st, 1970, midnight. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @param time * the last modification time for this file. * @return {@code true} if the operation is successful, {@code false} * otherwise. * @throws IllegalArgumentException * if {@code time < 0}. */ public boolean setLastModified(long time) { if (time < 0) { throw new IllegalArgumentException("time < 0"); } return setLastModifiedImpl(path, time); }
/** * Sets the time this file was last modified, measured in milliseconds since * January 1st, 1970, midnight. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @param time * the last modification time for this file. * @return {@code true} if the operation is successful, {@code false} * otherwise. * @throws IllegalArgumentException * if {@code time < 0}. */ public boolean setLastModified(long time) { if (time < 0) { throw new IllegalArgumentException("time < 0"); } return setLastModifiedImpl(path, time); }