123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- package javax.print.attribute.standard;
- import javax.print.attribute.Attribute;
- import javax.print.attribute.DocAttribute;
- import javax.print.attribute.PrintJobAttribute;
- import javax.print.attribute.PrintRequestAttribute;
- import javax.print.attribute.SetOfIntegerSyntax;
- public final class PageRanges extends SetOfIntegerSyntax
- implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
- {
- private static final long serialVersionUID = 8639895197656148392L;
-
- public PageRanges(int member)
- {
- super(member);
- if (member < 1)
- throw new IllegalArgumentException("member may not be less than 1");
- }
-
- public PageRanges(int[][] members)
- {
- super(members);
- if (members == null)
- throw new NullPointerException("members may not be null");
- }
-
- public PageRanges(int lowerBound, int upperBound)
- {
- super(lowerBound, upperBound);
- if (lowerBound < 1)
- throw new IllegalArgumentException("lowerbound may not be less than 1");
- }
-
- public PageRanges(String members)
- {
- super(members);
- if (members == null)
- throw new NullPointerException("members may not be null");
- }
-
- public boolean equals(Object obj)
- {
- if (! (obj instanceof PageRanges))
- return false;
- return super.equals(obj);
- }
-
- public Class< ? extends Attribute> getCategory()
- {
- return PageRanges.class;
- }
-
- public String getName()
- {
- return "page-ranges";
- }
- }
|