Java Object to Short castShort(Object o)

Here you can find the source of castShort(Object o)

Description

cast Short

License

Open Source License

Declaration

public static Short castShort(Object o) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static Short castShort(Object o) {
        if (o instanceof Number) {
            return ((Number) o).shortValue();
        }/*from ww  w  .j a  va 2  s .  com*/

        return null;
    }
}

Related

  1. castShort(Object o)
  2. castShort(Object val)
  3. castShortToFloat(short[] x)
  4. castToShort(final int value)
  5. castToShort(final String uid)