Class File

java.lang.Object
com.sanctionco.opconnect.model.File

public class File extends Object
Represents a file that is stored alongside an Item.
  • Method Details

    • getId

      public String getId()
      Get the unique ID of the file.
      Returns:
      the id of this file
    • getName

      public String getName()
      Get the name of the file.
      Returns:
      the name of this file
    • getSize

      public int getSize()
      Get the size of the file in bytes.
      Returns:
      the size of the file in bytes
    • getContentPath

      public String getContentPath()
    • getContent

      public String getContent()
    • getDecodedContent

      public String getDecodedContent()
    • getSection

      public Section getSection()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static File.Builder builder()