@Test(expected = InvalidParameterException.class) public void testNullStyle() { PdfPageTransition.newInstance(null, 1, 1); }
public static PdfPageTransition newInstance(PdfPageTransitionStyle style, int transitionDuration, int displayDuration) { if (transitionDuration < 1) { throw new InvalidParameterException("Input transition duration must be positive."); } if (displayDuration < 1) { throw new InvalidParameterException("Input display duration must be positive."); } if (style == null) { throw new InvalidParameterException("Input style cannot be null."); } return new PdfPageTransition(style, transitionDuration, displayDuration); }
PdfPageTransition { public static PdfPageTransition newInstance(PdfPageTransitionStyle style, int transitionDuration, int displayDuration) { if (transitionDuration < 1) { throw new InvalidParameterException("Input transition duration must be positive."); } if (displayDuration < 1) { throw new InvalidParameterException("Input display duration must be positive."); } if (style == null) { throw new InvalidParameterException("Input style cannot be null."); } return new PdfPageTransition(style, transitionDuration, displayDuration); } }
PdfPageTransition { public static PdfPageTransition newInstance(PdfPageTransitionStyle style, int transitionDuration, int displayDuration) { if (transitionDuration < 1) { throw new InvalidParameterException("Input transition duration must be positive."); } if (displayDuration < 1) { throw new InvalidParameterException("Input display duration must be positive."); } if (style == null) { throw new InvalidParameterException("Input style cannot be null."); } return new PdfPageTransition(style, transitionDuration, displayDuration); } private  PdfPageTransition(PdfPageTransitionStyle style, int transitionDuration, int displayDuration); }
PdfPageTransition { public static PdfPageTransition newInstance(PdfPageTransitionStyle style, int transitionDuration, int displayDuration) { if (transitionDuration < 1) { throw new InvalidParameterException("Input transition duration must be positive."); } if (displayDuration < 1) { throw new InvalidParameterException("Input display duration must be positive."); } if (style == null) { throw new InvalidParameterException("Input style cannot be null."); } return new PdfPageTransition(style, transitionDuration, displayDuration); } private  PdfPageTransition(PdfPageTransitionStyle style, int transitionDuration, int displayDuration); PdfPageTransitionStyle getStyle(); int getTransitionDuration(); int getDisplayDuration(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other); static PdfPageTransition newInstance(PdfPageTransitionStyle style, int transitionDuration,
            int displayDuration); }
PdfPageTransition { public static PdfPageTransition newInstance(PdfPageTransitionStyle style, int transitionDuration, int displayDuration) { if (transitionDuration < 1) { throw new InvalidParameterException("Input transition duration must be positive."); } if (displayDuration < 1) { throw new InvalidParameterException("Input display duration must be positive."); } if (style == null) { throw new InvalidParameterException("Input style cannot be null."); } return new PdfPageTransition(style, transitionDuration, displayDuration); } private  PdfPageTransition(PdfPageTransitionStyle style, int transitionDuration, int displayDuration); PdfPageTransitionStyle getStyle(); int getTransitionDuration(); int getDisplayDuration(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other); static PdfPageTransition newInstance(PdfPageTransitionStyle style, int transitionDuration,
            int displayDuration);  }