Java Object to Byte castByte(Object o)

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

Description

cast Byte

License

Open Source License

Declaration

public static Byte castByte(Object o) 

Method Source Code

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

public class Main {
    public static Byte castByte(Object o) {
        if (o instanceof Number) {
            return ((Number) o).byteValue();
        }//w  ww.  j  av  a  2  s  .  com

        return null;
    }
}

Related

  1. castBytes(Object o)
  2. castToByte(Object val)
  3. castToByte(Object value)
  4. castToByte(Object value)