Class WorkspaceFile

java.lang.Object
com.sas.lsaf.content.workspace.WorkspaceItem
com.sas.lsaf.content.workspace.WorkspaceFile
All Implemented Interfaces:
Serializable

public class WorkspaceFile extends WorkspaceItem
The representation of a file in the user's workspace.
Since:
2.1
See Also:
  • Constructor Details

    • WorkspaceFile

      public WorkspaceFile(String path, Date lastModifiedDate, long size)
      It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the workspace files returned by the API.
      Parameters:
      path - the path of the file in the workspace.
      lastModifiedDate - the date on which the file was last modified.
      size - the size of the file.
  • Method Details

    • getSize

      public long getSize()
      Gets the size of the workspace file in bytes.
      Returns:
      The size of the workspace file in bytes.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class WorkspaceItem
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class WorkspaceItem
    • toString

      public String toString()
      Overrides:
      toString in class WorkspaceItem