javax.print.attribute

Class IntegerSyntax

    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected IntegerSyntax(int value)
      Construct a new integer attribute with the given integer value.
      protected IntegerSyntax(int value, int lowerBound, int upperBound)
      Construct a new integer attribute with the given integer value, which must lie within the given range.

        

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(Object object)
      Returns whether this integer attribute is equivalent to the passed in object.
      int getValue()
      Returns this integer attribute's integer value.
      int hashCode()
      Returns a hash code value for this integer attribute.
      String toString()
      Returns a string value corresponding to this integer attribute.

        

    • Constructor Detail

      • IntegerSyntax

        protected IntegerSyntax(int value)
        Construct a new integer attribute with the given integer value.
        Parameters:
        value - Integer value.
      • IntegerSyntax

        protected IntegerSyntax(int value,
                     int lowerBound,
                     int upperBound)
        Construct a new integer attribute with the given integer value, which must lie within the given range.
        Parameters:
        value - Integer value.
        lowerBound - Lower bound.
        upperBound - Upper bound.
        Throws:
        IllegalArgumentException - (Unchecked exception) Thrown if value is less than lowerBound or greater than upperBound.
    • Method Detail

      • getValue

        public int getValue()
        Returns this integer attribute's integer value.
        Returns:
        the integer value
      • equals

        public boolean equals(Object object)
        Returns whether this integer attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true:
        1. object is not null.
        2. object is an instance of class IntegerSyntax.
        3. This integer attribute's value and object's value are equal.
        Overrides:
        equals in class Object
        Parameters:
        object - Object to compare to.
        Returns:
        True if object is equivalent to this integer attribute, false otherwise.
        See Also:
        Object.hashCode(), HashMap
      • toString

        public String toString()
        Returns a string value corresponding to this integer attribute. The string value is just this integer attribute's integer value converted to a string.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object.

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 30/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/print/attribute/IntegerSyntax.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, IntegerSyntax

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut