public class NumberPrintHandler extends java.lang.Object implements PrintHandler<java.lang.Number>
| Constructor and Description |
|---|
NumberPrintHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(java.lang.Object o)
Indicates whether this handler can take care of printing a particular
object.
|
java.lang.Number |
handle(java.lang.Object o)
Prints an object
|
void |
reset()
Resets the internal state of the handler
|
public boolean canHandle(java.lang.Object o)
PrintHandlercanHandle in interface PrintHandler<java.lang.Number>o - The objectpublic java.lang.Number handle(java.lang.Object o)
throws PrintException
PrintHandlerhandle in interface PrintHandler<java.lang.Number>o - The object to be printedPrintException - Thrown if the object cannot be printedpublic void reset()
PrintHandlerreset in interface PrintHandler<java.lang.Number>Copyright © Sylvain HallĂ©. All Rights Reserved.