/** * * @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 readLong() { $result = unserialize($this->getNext()); if (!\blaze\lang\Long::isType($result)) { throw new \blaze\lang\ClassCastException('The next token is not a long'); } return $result; }