Enum Size.PaperSizes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Size.PaperSizes>
    Enclosing class:
    Size

    public static enum Size.PaperSizes
    extends java.lang.Enum<Size.PaperSizes>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      A3
      Paper size with dimensions 0.297m x 0.420m, which is part of the A series format paper size defined by the ISO 216 standard.
      A4
      Paper size with dimensions 0.210m x 0.297, which is part of the A series format paper size defined by the ISO 216 standard.
      A5
      Paper size with dimensions 0.148m x 0.210m, which is part of the A series format paper size defined by the ISO 216 standard.
      LEGAL
      Paper size with dimensions 8.5in x 14in, which is mainly used in North America.
      LETTER
      Paper size with dimensions 8.5in x 11in, which is mainly used in North America.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Size.PaperSizes get​(java.lang.String name)
      Get the paper size enum value from its name, e.g.
      java.lang.String getName()
      Get the paper size's name.
      java.lang.String toString()  
      static Size.PaperSizes valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Size.PaperSizes[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

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

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

      • A3

        public static final Size.PaperSizes A3
        Paper size with dimensions 0.297m x 0.420m, which is part of the A series format paper size defined by the ISO 216 standard.
      • A4

        public static final Size.PaperSizes A4
        Paper size with dimensions 0.210m x 0.297, which is part of the A series format paper size defined by the ISO 216 standard.
      • A5

        public static final Size.PaperSizes A5
        Paper size with dimensions 0.148m x 0.210m, which is part of the A series format paper size defined by the ISO 216 standard.
      • LETTER

        public static final Size.PaperSizes LETTER
        Paper size with dimensions 8.5in x 11in, which is mainly used in North America.
      • LEGAL

        public static final Size.PaperSizes LEGAL
        Paper size with dimensions 8.5in x 14in, which is mainly used in North America.
    • Method Detail

      • values

        public static Size.PaperSizes[] 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 (Size.PaperSizes c : Size.PaperSizes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Size.PaperSizes 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
      • getName

        public java.lang.String getName()
        Get the paper size's name.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<Size.PaperSizes>
      • get

        public static Size.PaperSizes get​(java.lang.String name)
        Get the paper size enum value from its name, e.g. A4, or Letter.
        Parameters:
        name - the name, e.g. A4, or Letter.
        Returns: