congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
File.setLastModifiedImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
setLastModifiedImpl
method
in
java.io.File

Best Java code snippets using java.io.File.setLastModifiedImpl (Showing top 7 results out of 315)

origin: robovm/robovm

/**
 * 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);
}
origin: ibinti/bugvm

/**
 * 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);
}
origin: MobiVM/robovm

/**
 * 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);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * 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);
}
origin: com.bugvm/bugvm-rt

/**
 * 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);
}
origin: com.gluonhq/robovm-rt

/**
 * 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);
}
origin: FlexoVM/flexovm

/**
 * 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);
}
java.ioFilesetLastModifiedImpl

Popular methods of File

  • <init>
    Creates a new File instance by converting the givenfile: URI into an abstract pathname. The exact fo
  • exists
    Tests whether the file or directory denoted by this abstract pathname exists.
  • getAbsolutePath
    Returns the absolute pathname string of this abstract pathname. If this abstract pathname is already
  • getName
    Returns the name of the file or directory denoted by this abstract pathname. This is just the last n
  • isDirectory
  • mkdirs
  • delete
    Deletes the file or directory denoted by this abstract pathname. If this pathname denotes a director
  • listFiles
    Returns an array of abstract pathnames denoting the files and directories in the directory denoted b
  • getParentFile
    Returns the abstract pathname of this abstract pathname's parent, or null if this pathname does not
  • getPath
    Converts this abstract pathname into a pathname string. The resulting string uses the #separator to
  • isFile
  • length
    Returns the length of the file denoted by this abstract pathname. The return value is unspecified if
  • isFile,
  • length,
  • toURI,
  • createTempFile,
  • createNewFile,
  • toPath,
  • mkdir,
  • lastModified,
  • toString,
  • getCanonicalPath

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now