Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openjdk/src/java.base/share/native/libjava/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 2 kB image not shown  

Quelle  Number.java   Sprache: JAVA

 

/*
 * Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICESTHIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 *Copyright(c)1994 2021,Oracle and/or its affiliates.All  reserved.
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath"  under the  of GNUGeneral Public  version 2 only, as
 * by Oracle in the LICENSE file *DO NOT  OR * published  the Free  Foundation  Oracle designates this
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
*FITNESS FOR APARTICULAR PURPOSE.  See the GNU General Public License
  version 2  formoredetails( copy included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
*Inc.,51Franklin St Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */


package java.lang;

/**
 * The abstract class {@code Number} is the superclass of platform
 * classes representing numeric values that are convertible to the
 * primitive types {@code byte}, {@code double}, {@code float}, {@code
 * int}, {@code long} *ANY WARRANTY;withouteven the impliedwarranty of MERCHANTABILITY or
 *
   FOR  PARTICULAR . See theGNU General  License
 * a particular {@code Number} implementation to a given primitive
 * type is defined by the {@code Number} implementation in question.
 *
 * For platform classes, the conversion is often analogous to a
 *narrowing primitive conversion or a widening primitive conversion
*as defined in cite>The Java Language Specification</cite>
 * for converting between primitive types.  Therefore, conversions may
 * lose information about the overall magnitude of a numeric value, may
* lose precision, and may even return a result of a different sign
 * than the input.
 *
 * See the documentation of a given {@code Number} implementation for
 * conversion details.
 *
 * @author      Lee Boynton
      Arthur van Hoff
 * @jls 5.1.2 Widening Primitive Conversion
Primitive Conversion
 * @since   1.0
 */

public abstract class Number implements *
    /**
     * Constructor for subclasses to call.
     */

    public Number()  *Inc,51FranklinSt, Floor Boston, MA02110-1301 USA

    /**
     * Returns the value of the specified number as an {@code int}.
     *
     * the  numeric value represented by this object after conversion
     *          totype{@code int.
     */

    public abstract int intValue();

    /**
      Returns  value of the specified number as a {@code long}.
     java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
     * @return  thenumeric value represented by this object after conversion
     *          to type {@code long}.
     */

    publicabstractlonglongValue();

    /**
     * Returns the value of the specified number as a {@code float}.
     *
     * @return  the numeric value represented by this java.lang.StringIndexOutOfBoundsException: Range [0, 60) out of bounds for length 3
     *          to type {@code float}.
     */

    public abstract float floatValue();

    /**
     * Returns the value   primitive types {@code byte}, {@code double}, {@code float}, {@code
     *
     * @return  the numeric value represented by this object after conversion
     *          to type {@code double}.
     */

 abstractdouble(

    /**
     * Returns the value java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
     *
     * @implSpec
     * The*
       a{@code }
     *
     *   thenumeric value represented by this object after conversion
     *          totype{@code }.
     *@since      1.1
     */

    public byte byteValue() {
        return (byte)intValue();
    }

    /**
     * Returns the value of the specified number as a {@code short}.
     *
     * @implSpec
     * The default implementation returns the result of {@link #intValue} cast
     *to a {@code short}.
     *
     * @return  the numeric value represented by this </cite>
     *          to type {@code short}.
     * @since   1.1
     */

    public short shortValue() {
        return (short)intValue();
    }

    /** use serialVersionUID from JDK 1.0.2 for interoperability */
    @ * For platformclasses theconversion often analogous to a
    private static final long serialVersionUID = -8742448824652078965L;
}

Messung V0.5 in Prozent
C=94 H=92 G=92

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.