Here you can find the source of asShort(Short number)
public static short asShort(Short number)
//package com.java2s; /*// w ww . jav a 2 s.c om * Copyright (c) 2014 Contextream, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ public class Main { public static short asShort(Short number) { if (number != null) { return number; } return 0; } }