org.bukkit.util
Class NumberConversions

java.lang.Object
  extended by org.bukkit.util.NumberConversions

public final class NumberConversions
extends Object

Utils for casting number types to other number types


Method Summary
static int ceil(double num)
           
static int floor(double num)
           
static int round(double num)
           
static byte toByte(Object object)
           
static double toDouble(Object object)
           
static float toFloat(Object object)
           
static int toInt(Object object)
           
static long toLong(Object object)
           
static short toShort(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

floor

public static int floor(double num)

ceil

public static int ceil(double num)

round

public static int round(double num)

toInt

public static int toInt(Object object)

toFloat

public static float toFloat(Object object)

toDouble

public static double toDouble(Object object)

toLong

public static long toLong(Object object)

toShort

public static short toShort(Object object)

toByte

public static byte toByte(Object object)


Copyright © 2013. All Rights Reserved.