equal
deleted
inserted
replaced
619 } |
619 } |
620 |
620 |
621 /** |
621 /** |
622 * Utilitity to convert this script object to the given type. |
622 * Utilitity to convert this script object to the given type. |
623 * |
623 * |
|
624 * @param <T> destination type to convert to |
624 * @param type destination type to convert to |
625 * @param type destination type to convert to |
625 * @return converted object |
626 * @return converted object |
626 */ |
627 */ |
627 public <T> T to(final Class<T> type) { |
628 public <T> T to(final Class<T> type) { |
628 return inGlobal(new Callable<T>() { |
629 return inGlobal(new Callable<T>() { |