/** * * @param blaze\lang\Integer|int $value * @return blaze\lang\ClassWrapper */ public static function getNumberClass($value) { if (self::$numberClasses == null) { self::lazyInit(); } if (Byte::isType($value)) { return self::$numberClasses[0]; } else { if (Short::isType($value)) { return self::$numberClasses[1]; } else { if (Integer::isType($value)) { return self::$numberClasses[4]; } else { if (Long::isType($value)) { return self::$numberClasses[5]; } else { if (Float::isType($value)) { return self::$numberClasses[3]; } else { if (Double::isType($value)) { return self::$numberClasses[2]; } else { if (BigInteger::isType($value)) { return self::$numberClasses[6]; } else { if (BigDecimal::isType($value)) { return self::$numberClasses[7]; } } } } } } } } return null; }
public function shortValue() { return Short::asNative($this->value); }
public function setShort($identifier, $value) { $this->set($identifier, \blaze\lang\Short::asNative($value), \PDO::PARAM_INT); return $this; }
public function readShort() { $result = unserialize($this->getNext()); if (!\blaze\lang\Short::isType($result)) { throw new \blaze\lang\ClassCastException('The next token is not a short'); } return $result; }
public function shortValue() { \blaze\lang\Short::asNative($this->getIntVal()); }
public function getShort($identifier) { $this->checkClosed(); $val = $this->get($identifier); if ($val == null) { return null; } return Short::asNative($val); }
public function writeShort(\short $short) { $short = \blaze\lang\Short::asNative($short); return $this->out->write(serialize($short)); }