public static final class PageAttributes.MediaType extends Object
A type-safe enumeration of possible paper sizes. These sizes are in compliance with IPP 1.1.
public static final PageAttributes.MediaType ISO_4A0
The MediaType instance for ISO/DIN and JIS 4A0, 1682 x 2378 mm.
public static final PageAttributes.MediaType ISO_2A0
The MediaType instance for ISO/DIN and JIS 2A0, 1189 x 1682 mm.
public static final PageAttributes.MediaType ISO_A0
The MediaType instance for ISO/DIN and JIS A0, 841 x 1189 mm.
public static final PageAttributes.MediaType ISO_A1
The MediaType instance for ISO/DIN and JIS A1, 594 x 841 mm.
public static final PageAttributes.MediaType ISO_A2
The MediaType instance for ISO/DIN and JIS A2, 420 x 594 mm.
public static final PageAttributes.MediaType ISO_A3
The MediaType instance for ISO/DIN and JIS A3, 297 x 420 mm.
public static final PageAttributes.MediaType ISO_A4
The MediaType instance for ISO/DIN and JIS A4, 210 x 297 mm.
public static final PageAttributes.MediaType ISO_A5
The MediaType instance for ISO/DIN and JIS A5, 148 x 210 mm.
public static final PageAttributes.MediaType ISO_A6
The MediaType instance for ISO/DIN and JIS A6, 105 x 148 mm.
public static final PageAttributes.MediaType ISO_A7
The MediaType instance for ISO/DIN and JIS A7, 74 x 105 mm.
public static final PageAttributes.MediaType ISO_A8
The MediaType instance for ISO/DIN and JIS A8, 52 x 74 mm.
public static final PageAttributes.MediaType ISO_A9
The MediaType instance for ISO/DIN and JIS A9, 37 x 52 mm.
public static final PageAttributes.MediaType ISO_A10
The MediaType instance for ISO/DIN and JIS A10, 26 x 37 mm.
public static final PageAttributes.MediaType ISO_B0
The MediaType instance for ISO/DIN B0, 1000 x 1414 mm.
public static final PageAttributes.MediaType ISO_B1
The MediaType instance for ISO/DIN B1, 707 x 1000 mm.
public static final PageAttributes.MediaType ISO_B2
The MediaType instance for ISO/DIN B2, 500 x 707 mm.
public static final PageAttributes.MediaType ISO_B3
The MediaType instance for ISO/DIN B3, 353 x 500 mm.
public static final PageAttributes.MediaType ISO_B4
The MediaType instance for ISO/DIN B4, 250 x 353 mm.
public static final PageAttributes.MediaType ISO_B5
The MediaType instance for ISO/DIN B5, 176 x 250 mm.
public static final PageAttributes.MediaType ISO_B6
The MediaType instance for ISO/DIN B6, 125 x 176 mm.
public static final PageAttributes.MediaType ISO_B7
The MediaType instance for ISO/DIN B7, 88 x 125 mm.
public static final PageAttributes.MediaType ISO_B8
The MediaType instance for ISO/DIN B8, 62 x 88 mm.
public static final PageAttributes.MediaType ISO_B9
The MediaType instance for ISO/DIN B9, 44 x 62 mm.
public static final PageAttributes.MediaType ISO_B10
The MediaType instance for ISO/DIN B10, 31 x 44 mm.
public static final PageAttributes.MediaType JIS_B0
The MediaType instance for JIS B0, 1030 x 1456 mm.
public static final PageAttributes.MediaType JIS_B1
The MediaType instance for JIS B1, 728 x 1030 mm.
public static final PageAttributes.MediaType JIS_B2
The MediaType instance for JIS B2, 515 x 728 mm.
public static final PageAttributes.MediaType JIS_B3
The MediaType instance for JIS B3, 364 x 515 mm.
public static final PageAttributes.MediaType JIS_B4
The MediaType instance for JIS B4, 257 x 364 mm.
public static final PageAttributes.MediaType JIS_B5
The MediaType instance for JIS B5, 182 x 257 mm.
public static final PageAttributes.MediaType JIS_B6
The MediaType instance for JIS B6, 128 x 182 mm.
public static final PageAttributes.MediaType JIS_B7
The MediaType instance for JIS B7, 91 x 128 mm.
public static final PageAttributes.MediaType JIS_B8
The MediaType instance for JIS B8, 64 x 91 mm.
public static final PageAttributes.MediaType JIS_B9
The MediaType instance for JIS B9, 45 x 64 mm.
public static final PageAttributes.MediaType JIS_B10
The MediaType instance for JIS B10, 32 x 45 mm.
public static final PageAttributes.MediaType ISO_C0
The MediaType instance for ISO/DIN C0, 917 x 1297 mm.
public static final PageAttributes.MediaType ISO_C1
The MediaType instance for ISO/DIN C1, 648 x 917 mm.
public static final PageAttributes.MediaType ISO_C2
The MediaType instance for ISO/DIN C2, 458 x 648 mm.
public static final PageAttributes.MediaType ISO_C3
The MediaType instance for ISO/DIN C3, 324 x 458 mm.
public static final PageAttributes.MediaType ISO_C4
The MediaType instance for ISO/DIN C4, 229 x 324 mm.
public static final PageAttributes.MediaType ISO_C5
The MediaType instance for ISO/DIN C5, 162 x 229 mm.
public static final PageAttributes.MediaType ISO_C6
The MediaType instance for ISO/DIN C6, 114 x 162 mm.
public static final PageAttributes.MediaType ISO_C7
The MediaType instance for ISO/DIN C7, 81 x 114 mm.
public static final PageAttributes.MediaType ISO_C8
The MediaType instance for ISO/DIN C8, 57 x 81 mm.
public static final PageAttributes.MediaType ISO_C9
The MediaType instance for ISO/DIN C9, 40 x 57 mm.
public static final PageAttributes.MediaType ISO_C10
The MediaType instance for ISO/DIN C10, 28 x 40 mm.
public static final PageAttributes.MediaType ISO_DESIGNATED_LONG
The MediaType instance for ISO Designated Long, 110 x 220 mm.
public static final PageAttributes.MediaType EXECUTIVE
The MediaType instance for Executive, 7 1/4 x 10 1/2 in.
public static final PageAttributes.MediaType FOLIO
The MediaType instance for Folio, 8 1/2 x 13 in.
public static final PageAttributes.MediaType INVOICE
The MediaType instance for Invoice, 5 1/2 x 8 1/2 in.
public static final PageAttributes.MediaType LEDGER
The MediaType instance for Ledger, 11 x 17 in.
public static final PageAttributes.MediaType NA_LETTER
The MediaType instance for North American Letter, 8 1/2 x 11 in.
public static final PageAttributes.MediaType NA_LEGAL
The MediaType instance for North American Legal, 8 1/2 x 14 in.
public static final PageAttributes.MediaType QUARTO
The MediaType instance for Quarto, 215 x 275 mm.
public static final PageAttributes.MediaType A
The MediaType instance for Engineering A, 8 1/2 x 11 in.
public static final PageAttributes.MediaType B
The MediaType instance for Engineering B, 11 x 17 in.
public static final PageAttributes.MediaType C
The MediaType instance for Engineering C, 17 x 22 in.
public static final PageAttributes.MediaType D
The MediaType instance for Engineering D, 22 x 34 in.
public static final PageAttributes.MediaType E
The MediaType instance for Engineering E, 34 x 44 in.
public static final PageAttributes.MediaType NA_10X15_ENVELOPE
The MediaType instance for North American 10 x 15 in.
public static final PageAttributes.MediaType NA_10X14_ENVELOPE
The MediaType instance for North American 10 x 14 in.
public static final PageAttributes.MediaType NA_10X13_ENVELOPE
The MediaType instance for North American 10 x 13 in.
public static final PageAttributes.MediaType NA_9X12_ENVELOPE
The MediaType instance for North American 9 x 12 in.
public static final PageAttributes.MediaType NA_9X11_ENVELOPE
The MediaType instance for North American 9 x 11 in.
public static final PageAttributes.MediaType NA_7X9_ENVELOPE
The MediaType instance for North American 7 x 9 in.
public static final PageAttributes.MediaType NA_6X9_ENVELOPE
The MediaType instance for North American 6 x 9 in.
public static final PageAttributes.MediaType NA_NUMBER_9_ENVELOPE
The MediaType instance for North American #9 Business Envelope, 3 7/8 x 8 7/8 in.
public static final PageAttributes.MediaType NA_NUMBER_10_ENVELOPE
The MediaType instance for North American #10 Business Envelope, 4 1/8 x 9 1/2 in.
public static final PageAttributes.MediaType NA_NUMBER_11_ENVELOPE
The MediaType instance for North American #11 Business Envelope, 4 1/2 x 10 3/8 in.
public static final PageAttributes.MediaType NA_NUMBER_12_ENVELOPE
The MediaType instance for North American #12 Business Envelope, 4 3/4 x 11 in.
public static final PageAttributes.MediaType NA_NUMBER_14_ENVELOPE
The MediaType instance for North American #14 Business Envelope, 5 x 11 1/2 in.
public static final PageAttributes.MediaType INVITE_ENVELOPE
The MediaType instance for Invitation Envelope, 220 x 220 mm.
public static final PageAttributes.MediaType ITALY_ENVELOPE
The MediaType instance for Italy Envelope, 110 x 230 mm.
public static final PageAttributes.MediaType MONARCH_ENVELOPE
The MediaType instance for Monarch Envelope, 3 7/8 x 7 1/2 in.
public static final PageAttributes.MediaType PERSONAL_ENVELOPE
The MediaType instance for 6 3/4 envelope, 3 5/8 x 6 1/2 in.
public static final PageAttributes.MediaType A0
An alias for ISO_A0.
public static final PageAttributes.MediaType A1
An alias for ISO_A1.
public static final PageAttributes.MediaType A2
An alias for ISO_A2.
public static final PageAttributes.MediaType A3
An alias for ISO_A3.
public static final PageAttributes.MediaType A4
An alias for ISO_A4.
public static final PageAttributes.MediaType A5
An alias for ISO_A5.
public static final PageAttributes.MediaType A6
An alias for ISO_A6.
public static final PageAttributes.MediaType A7
An alias for ISO_A7.
public static final PageAttributes.MediaType A8
An alias for ISO_A8.
public static final PageAttributes.MediaType A9
An alias for ISO_A9.
public static final PageAttributes.MediaType A10
An alias for ISO_A10.
public static final PageAttributes.MediaType B0
An alias for ISO_B0.
public static final PageAttributes.MediaType B1
An alias for ISO_B1.
public static final PageAttributes.MediaType B2
An alias for ISO_B2.
public static final PageAttributes.MediaType B3
An alias for ISO_B3.
public static final PageAttributes.MediaType B4
An alias for ISO_B4.
public static final PageAttributes.MediaType ISO_B4_ENVELOPE
An alias for ISO_B4.
public static final PageAttributes.MediaType B5
An alias for ISO_B5.
public static final PageAttributes.MediaType ISO_B5_ENVELOPE
An alias for ISO_B5.
public static final PageAttributes.MediaType B6
An alias for ISO_B6.
public static final PageAttributes.MediaType B7
An alias for ISO_B7.
public static final PageAttributes.MediaType B8
An alias for ISO_B8.
public static final PageAttributes.MediaType B9
An alias for ISO_B9.
public static final PageAttributes.MediaType B10
An alias for ISO_B10.
public static final PageAttributes.MediaType C0
An alias for ISO_C0.
public static final PageAttributes.MediaType ISO_C0_ENVELOPE
An alias for ISO_C0.
public static final PageAttributes.MediaType C1
An alias for ISO_C1.
public static final PageAttributes.MediaType ISO_C1_ENVELOPE
An alias for ISO_C1.
public static final PageAttributes.MediaType C2
An alias for ISO_C2.
public static final PageAttributes.MediaType ISO_C2_ENVELOPE
An alias for ISO_C2.
public static final PageAttributes.MediaType C3
An alias for ISO_C3.
public static final PageAttributes.MediaType ISO_C3_ENVELOPE
An alias for ISO_C3.
public static final PageAttributes.MediaType C4
An alias for ISO_C4.
public static final PageAttributes.MediaType ISO_C4_ENVELOPE
An alias for ISO_C4.
public static final PageAttributes.MediaType C5
An alias for ISO_C5.
public static final PageAttributes.MediaType ISO_C5_ENVELOPE
An alias for ISO_C5.
public static final PageAttributes.MediaType C6
An alias for ISO_C6.
public static final PageAttributes.MediaType ISO_C6_ENVELOPE
An alias for ISO_C6.
public static final PageAttributes.MediaType C7
An alias for ISO_C7.
public static final PageAttributes.MediaType ISO_C7_ENVELOPE
An alias for ISO_C7.
public static final PageAttributes.MediaType C8
An alias for ISO_C8.
public static final PageAttributes.MediaType ISO_C8_ENVELOPE
An alias for ISO_C8.
public static final PageAttributes.MediaType C9
An alias for ISO_C9.
public static final PageAttributes.MediaType ISO_C9_ENVELOPE
An alias for ISO_C9.
public static final PageAttributes.MediaType C10
An alias for ISO_C10.
public static final PageAttributes.MediaType ISO_C10_ENVELOPE
An alias for ISO_C10.
public static final PageAttributes.MediaType ISO_DESIGNATED_LONG_ENVELOPE
An alias for ISO_DESIGNATED_LONG.
public static final PageAttributes.MediaType STATEMENT
An alias for INVOICE.
public static final PageAttributes.MediaType TABLOID
An alias for LEDGER.
public static final PageAttributes.MediaType LETTER
An alias for NA_LETTER.
public static final PageAttributes.MediaType NOTE
An alias for NA_LETTER.
public static final PageAttributes.MediaType LEGAL
An alias for NA_LEGAL.
public static final PageAttributes.MediaType ENV_10X15
An alias for NA_10X15_ENVELOPE.
public static final PageAttributes.MediaType ENV_10X14
An alias for NA_10X14_ENVELOPE.
public static final PageAttributes.MediaType ENV_10X13
An alias for NA_10X13_ENVELOPE.
public static final PageAttributes.MediaType ENV_9X12
An alias for NA_9X12_ENVELOPE.
public static final PageAttributes.MediaType ENV_9X11
An alias for NA_9X11_ENVELOPE.
public static final PageAttributes.MediaType ENV_7X9
An alias for NA_7X9_ENVELOPE.
public static final PageAttributes.MediaType ENV_6X9
An alias for NA_6X9_ENVELOPE.
public static final PageAttributes.MediaType ENV_9
An alias for NA_NUMBER_9_ENVELOPE.
public static final PageAttributes.MediaType ENV_10
An alias for NA_NUMBER_10_ENVELOPE.
public static final PageAttributes.MediaType ENV_11
An alias for NA_NUMBER_11_ENVELOPE.
public static final PageAttributes.MediaType ENV_12
An alias for NA_NUMBER_12_ENVELOPE.
public static final PageAttributes.MediaType ENV_14
An alias for NA_NUMBER_14_ENVELOPE.
public static final PageAttributes.MediaType ENV_INVITE
An alias for INVITE_ENVELOPE.
public static final PageAttributes.MediaType ENV_ITALY
An alias for ITALY_ENVELOPE.
public static final PageAttributes.MediaType ENV_MONARCH
An alias for MONARCH_ENVELOPE.
public static final PageAttributes.MediaType ENV_PERSONAL
An alias for PERSONAL_ENVELOPE.
public static final PageAttributes.MediaType INVITE
An alias for INVITE_ENVELOPE.
public static final PageAttributes.MediaType ITALY
An alias for ITALY_ENVELOPE.
public static final PageAttributes.MediaType MONARCH
An alias for MONARCH_ENVELOPE.
public static final PageAttributes.MediaType PERSONAL
An alias for PERSONAL_ENVELOPE.
public int hashCode()
Description copied from class: Object
Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by HashMap
.
The general contract of hashCode
is:
hashCode
method must consistently return the same integer, provided no information used in equals
comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application. equals(Object)
method, then calling the hashCode
method on each of the two objects must produce the same integer result. Object.equals(java.lang.Object)
method, then calling the hashCode
method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables. As much as is reasonably practical, the hashCode method defined by class Object
does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the Java™ programming language.)
hashCode
in class Object
Object.equals(java.lang.Object)
, System.identityHashCode(java.lang.Object)
public String toString()
Description copied from class: Object
Returns a string representation of the object. In general, the toString
method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@
', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.