Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
javax.management.openmbean

Class SimpleType<T>

  • All Implemented Interfaces:
    Serializable

    public final class SimpleType<T>
    extends OpenType<T>
    The SimpleType class is the open type class whose instances describe all open data values which are neither arrays, nor CompositeData values, nor TabularData values. It predefines all its possible instances as static fields, and has no public constructor.

    Given a SimpleType instance describing values whose Java class name is className, the internal fields corresponding to the name and description of this SimpleType instance are also set to className. In other words, its methods getClassName, getTypeName and getDescription all return the same string value className.

    Since:
    1.5
    See Also:
    Serialized Form
    • Field Detail

      • VOID

        public static final SimpleType<Void> VOID
        The SimpleType instance describing values whose Java class name is java.lang.Void.
      • BOOLEAN

        public static final SimpleType<Boolean> BOOLEAN
        The SimpleType instance describing values whose Java class name is java.lang.Boolean.
      • CHARACTER

        public static final SimpleType<Character> CHARACTER
        The SimpleType instance describing values whose Java class name is java.lang.Character.
      • BYTE

        public static final SimpleType<Byte> BYTE
        The SimpleType instance describing values whose Java class name is java.lang.Byte.
      • SHORT

        public static final SimpleType<Short> SHORT
        The SimpleType instance describing values whose Java class name is java.lang.Short.
      • INTEGER

        public static final SimpleType<Integer> INTEGER
        The SimpleType instance describing values whose Java class name is java.lang.Integer.
      • LONG

        public static final SimpleType<Long> LONG
        The SimpleType instance describing values whose Java class name is java.lang.Long.
      • FLOAT

        public static final SimpleType<Float> FLOAT
        The SimpleType instance describing values whose Java class name is java.lang.Float.
      • DOUBLE

        public static final SimpleType<Double> DOUBLE
        The SimpleType instance describing values whose Java class name is java.lang.Double.
      • STRING

        public static final SimpleType<String> STRING
        The SimpleType instance describing values whose Java class name is java.lang.String.
      • BIGDECIMAL

        public static final SimpleType<BigDecimal> BIGDECIMAL
        The SimpleType instance describing values whose Java class name is java.math.BigDecimal.
      • BIGINTEGER

        public static final SimpleType<BigInteger> BIGINTEGER
        The SimpleType instance describing values whose Java class name is java.math.BigInteger.
      • DATE

        public static final SimpleType<Date> DATE
        The SimpleType instance describing values whose Java class name is java.util.Date.
      • OBJECTNAME

        public static final SimpleType<ObjectName> OBJECTNAME
        The SimpleType instance describing values whose Java class name is javax.management.ObjectName.
    • Method Detail

      • isValue

        public boolean isValue(Object obj)
        Tests whether obj is a value for this SimpleType instance.

        This method returns true if and only if obj is not null and obj's class name is the same as the className field defined for this SimpleType instance (ie the class name returned by the getClassName method).

        Specified by:
        isValue in class OpenType<T>
        Parameters:
        obj - the object to be tested.
        Returns:
        true if obj is a value for this SimpleType instance.
      • equals

        public boolean equals(Object obj)
        Compares the specified obj parameter with this SimpleType instance for equality.

        Two SimpleType instances are equal if and only if their getClassName methods return the same value.

        Specified by:
        equals in class OpenType<T>
        Parameters:
        obj - the object to be compared for equality with this SimpleType instance; if obj is null or is not an instance of the class SimpleType, equals returns false.
        Returns:
        true if the specified object is equal to this SimpleType instance.
        See Also:
        Object.hashCode(), HashMap
      • hashCode

        public int hashCode()
        Returns the hash code value for this SimpleType instance. The hash code of a SimpleType instance is the the hash code of the string value returned by the getClassName method.

        As SimpleType instances are immutable, the hash code for this instance is calculated once, on the first call to hashCode, and then the same value is returned for subsequent calls.

        Specified by:
        hashCode in class OpenType<T>
        Returns:
        the hash code value for this SimpleType instance
        See Also:
        Object.equals(java.lang.Object), System.identityHashCode(java.lang.Object)
      • toString

        public String toString()
        Returns a string representation of this SimpleType instance.

        The string representation consists of the name of this class (ie javax.management.openmbean.SimpleType) and the type name for this instance (which is the java class name of the values this SimpleType instance represents).

        As SimpleType instances are immutable, the string representation for this instance is calculated once, on the first call to toString, and then the same value is returned for subsequent calls.

        Specified by:
        toString in class OpenType<T>
        Returns:
        a string representation of this SimpleType instance

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/management/openmbean/SimpleType.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut