Enum PaperSize

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PaperSize>

    public enum PaperSize
    extends java.lang.Enum<PaperSize>
    Represents page dimensions in the Smartsheet REST API.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      A0
      Represents the A0 page size.
      A1
      Represents the A1 page size.
      A2
      Represents the A2 page size.
      A3
      Represents the A3 page size.
      A4
      Represents the A4 page size.
      ARCHD
      Represents the ARCHD page size.
      LEGAL
      Represents the LEGAL page size.
      LETTER
      Represents the LETTER page size.
      WIDE
      Represents the WIDE page size.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PaperSize valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PaperSize[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LETTER

        public static final PaperSize LETTER
        Represents the LETTER page size.
      • LEGAL

        public static final PaperSize LEGAL
        Represents the LEGAL page size.
      • WIDE

        public static final PaperSize WIDE
        Represents the WIDE page size.
      • ARCHD

        public static final PaperSize ARCHD
        Represents the ARCHD page size.
      • A4

        public static final PaperSize A4
        Represents the A4 page size.
      • A3

        public static final PaperSize A3
        Represents the A3 page size.
      • A2

        public static final PaperSize A2
        Represents the A2 page size.
      • A1

        public static final PaperSize A1
        Represents the A1 page size.
      • A0

        public static final PaperSize A0
        Represents the A0 page size.
    • Method Detail

      • values

        public static PaperSize[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PaperSize c : PaperSize.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PaperSize valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null