GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Index
  • Help
  • Frames
  • No Frames
  • All Classes

This view

  • Original page
  • New address

GeezerVison is showing docs.oracle.com — Uses of Class java.lang.Integer (Java Platform SE 8 )

Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help
Java™ Platform
Standard Ed. 8
  • Prev
  • Next
  • Frames
  • No Frames
  • All Classes

Uses of Class
java.lang.Integer

  • Packages that use Integer 
    Package Description
    java.awt.font
    Provides classes and interface relating to fonts.
    java.lang
    Provides classes that are fundamental to the design of the Java programming language.
    java.net
    Provides the classes for implementing networking applications.
    java.nio.channels
    Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
    java.sql
    Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language.
    java.util
    Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
    java.util.spi
    Service provider classes for the classes in the java.util package.
    java.util.stream
    Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
    javax.management
    Provides the core classes for the Java Management Extensions.
    javax.management.openmbean
    Provides the open data types and Open MBean descriptor classes.
    javax.management.relation
    Provides the definition of the Relation Service.
    javax.management.remote
    Interfaces for remote access to JMX MBean servers.
    javax.management.remote.rmi
    The RMI connector is a connector for the JMX Remote API that uses RMI to transmit client requests to a remote MBean server.
    javax.management.timer
    Provides the definition of the Timer MBean.
    javax.script
    The scripting API consists of interfaces and classes that define Java TM Scripting Engines and provides a framework for their use in Java applications.
    javax.swing
    Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
    javax.swing.plaf.basic
    Provides user interface objects built according to the Basic look and feel.
    • Uses of Integer in java.awt.font

      Fields in java.awt.font declared as Integer 
      Modifier and Type Field Description
      static Integer TextAttribute.KERNING_ON
      Request standard kerning.
      static Integer TextAttribute.LIGATURES_ON
      Request standard optional ligatures.
      static Integer TextAttribute.SUPERSCRIPT_SUB
      Standard subscript.
      static Integer TextAttribute.SUPERSCRIPT_SUPER
      Standard superscript.
      static Integer TextAttribute.UNDERLINE_LOW_DASHED
      Single pixel dashed low underline.
      static Integer TextAttribute.UNDERLINE_LOW_DOTTED
      Single pixel dotted low underline.
      static Integer TextAttribute.UNDERLINE_LOW_GRAY
      Double pixel gray low underline.
      static Integer TextAttribute.UNDERLINE_LOW_ONE_PIXEL
      Single pixel solid low underline.
      static Integer TextAttribute.UNDERLINE_LOW_TWO_PIXEL
      Double pixel solid low underline.
      static Integer TextAttribute.UNDERLINE_ON
      Standard underline.
    • Uses of Integer in java.lang

      Fields in java.lang with type parameters of type Integer 
      Modifier and Type Field Description
      static Class<Integer> Integer.TYPE
      The Class instance representing the primitive type int.
      Methods in java.lang that return Integer 
      Modifier and Type Method Description
      static Integer Integer.decode(String nm)
      Decodes a String into an Integer.
      static Integer Integer.getInteger(String nm)
      Determines the integer value of the system property with the specified name.
      static Integer Integer.getInteger(String nm, int val)
      Determines the integer value of the system property with the specified name.
      static Integer Integer.getInteger(String nm, Integer val)
      Returns the integer value of the system property with the specified name.
      static Integer Integer.valueOf(int i)
      Returns an Integer instance representing the specified int value.
      static Integer Integer.valueOf(String s)
      Returns an Integer object holding the value of the specified String.
      static Integer Integer.valueOf(String s, int radix)
      Returns an Integer object holding the value extracted from the specified String when parsed with the radix given by the second argument.
      Methods in java.lang with parameters of type Integer 
      Modifier and Type Method Description
      int Integer.compareTo(Integer anotherInteger)
      Compares two Integer objects numerically.
      static Integer Integer.getInteger(String nm, Integer val)
      Returns the integer value of the system property with the specified name.
    • Uses of Integer in java.net

      Fields in java.net with type parameters of type Integer 
      Modifier and Type Field Description
      static SocketOption<Integer> StandardSocketOptions.IP_MULTICAST_TTL
      The time-to-live for Internet Protocol (IP) multicast datagrams.
      static SocketOption<Integer> StandardSocketOptions.IP_TOS
      The Type of Service (ToS) octet in the Internet Protocol (IP) header.
      static SocketOption<Integer> StandardSocketOptions.SO_LINGER
      Linger on close if data is present.
      static SocketOption<Integer> StandardSocketOptions.SO_RCVBUF
      The size of the socket receive buffer.
      static SocketOption<Integer> StandardSocketOptions.SO_SNDBUF
      The size of the socket send buffer.
    • Uses of Integer in java.nio.channels

      Methods in java.nio.channels that return types with arguments of type Integer 
      Modifier and Type Method Description
      Future<Integer> AsynchronousByteChannel.read(ByteBuffer dst)
      Reads a sequence of bytes from this channel into the given buffer.
      abstract Future<Integer> AsynchronousSocketChannel.read(ByteBuffer dst) 
      abstract Future<Integer> AsynchronousFileChannel.read(ByteBuffer dst, long position)
      Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
      Future<Integer> AsynchronousByteChannel.write(ByteBuffer src)
      Writes a sequence of bytes to this channel from the given buffer.
      abstract Future<Integer> AsynchronousSocketChannel.write(ByteBuffer src) 
      abstract Future<Integer> AsynchronousFileChannel.write(ByteBuffer src, long position)
      Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
      Method parameters in java.nio.channels with type arguments of type Integer 
      Modifier and Type Method Description
      <A> void AsynchronousByteChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
      Reads a sequence of bytes from this channel into the given buffer.
      <A> void AsynchronousSocketChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler) 
      abstract <A> void AsynchronousFileChannel.read(ByteBuffer dst, long position, A attachment, CompletionHandler<Integer,? super A> handler)
      Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
      abstract <A> void AsynchronousSocketChannel.read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
      Reads a sequence of bytes from this channel into the given buffer.
      <A> void AsynchronousByteChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
      Writes a sequence of bytes to this channel from the given buffer.
      <A> void AsynchronousSocketChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler) 
      abstract <A> void AsynchronousFileChannel.write(ByteBuffer src, long position, A attachment, CompletionHandler<Integer,? super A> handler)
      Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
      abstract <A> void AsynchronousSocketChannel.write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
      Writes a sequence of bytes to this channel from the given buffer.
    • Uses of Integer in java.sql

      Methods in java.sql that return Integer 
      Modifier and Type Method Description
      Integer JDBCType.getVendorTypeNumber()
      Returns the vendor specific type number for the data type.
      Integer SQLType.getVendorTypeNumber()
      Returns the vendor specific type number for the data type.
    • Uses of Integer in java.util

      Methods in java.util that return Integer 
      Modifier and Type Method Description
      default Integer PrimitiveIterator.OfInt.next()
      Returns the next element in the iteration.
      Methods in java.util that return types with arguments of type Integer 
      Modifier and Type Method Description
      Map<String,Integer> Calendar.getDisplayNames(int field, int style, Locale locale)
      Returns a Map containing all names of the calendar field in the given style and locale and their corresponding field values.
      Method parameters in java.util with type arguments of type Integer 
      Modifier and Type Method Description
      default void PrimitiveIterator.OfInt.forEachRemaining(Consumer<? super Integer> action)
      Performs the given action for each remaining element until all elements have been processed or the action throws an exception.
      default void Spliterator.OfInt.forEachRemaining(Consumer<? super Integer> action)
      Performs the given action for each remaining element, sequentially in the current thread, until all elements have been processed or the action throws an exception.
      default boolean Spliterator.OfInt.tryAdvance(Consumer<? super Integer> action)
      If a remaining element exists, performs the given action on it, returning true; else returns false.
    • Uses of Integer in java.util.spi

      Methods in java.util.spi that return types with arguments of type Integer 
      Modifier and Type Method Description
      abstract Map<String,Integer> CalendarNameProvider.getDisplayNames(String calendarType, int field, int style, Locale locale)
      Returns a Map containing all string representations (display names) of the Calendar field in the given style and locale and their corresponding field values.
    • Uses of Integer in java.util.stream

      Methods in java.util.stream that return types with arguments of type Integer 
      Modifier and Type Method Description
      Stream<Integer> IntStream.boxed()
      Returns a Stream consisting of the elements of this stream, each boxed to an Integer.
      static <T> Collector<T,?,Integer> Collectors.summingInt(ToIntFunction<? super T> mapper)
      Returns a Collector that produces the sum of a integer-valued function applied to the input elements.
    • Uses of Integer in javax.management

      Methods in javax.management that return Integer 
      Modifier and Type Method Description
      Integer MBeanServerConnection.getMBeanCount()
      Returns the number of MBeans registered in the MBean server.
      Integer MBeanServer.getMBeanCount()
      Returns the number of MBeans registered in the MBean server.
    • Uses of Integer in javax.management.openmbean

      Fields in javax.management.openmbean with type parameters of type Integer 
      Modifier and Type Field Description
      static SimpleType<Integer> SimpleType.INTEGER
      The SimpleType instance describing values whose Java class name is java.lang.Integer.
    • Uses of Integer in javax.management.relation

      Methods in javax.management.relation that return Integer 
      Modifier and Type Method Description
      Integer RelationService.checkRoleReading(String roleName, String relationTypeName)
      Checks if given Role can be read in a relation of the given type.
      Integer RelationServiceMBean.checkRoleReading(String roleName, String relationTypeName)
      Checks if given Role can be read in a relation of the given type.
      Integer RelationService.checkRoleWriting(Role role, String relationTypeName, Boolean initFlag)
      Checks if given Role can be set in a relation of given type.
      Integer RelationServiceMBean.checkRoleWriting(Role role, String relationTypeName, Boolean initFlag)
      Checks if given Role can be set in a relation of given type.
      Integer RelationSupport.getRoleCardinality(String roleName)
      Returns the number of MBeans currently referenced in the given role.
      Integer Relation.getRoleCardinality(String roleName)
      Returns the number of MBeans currently referenced in the given role.
      Integer RelationService.getRoleCardinality(String relationId, String roleName)
      Retrieves the number of MBeans currently referenced in the given role.
      Integer RelationServiceMBean.getRoleCardinality(String relationId, String roleName)
      Retrieves the number of MBeans currently referenced in the given role.
    • Uses of Integer in javax.management.remote

      Methods in javax.management.remote that return Integer 
      Modifier and Type Method Description
      Integer TargetedNotification.getListenerID()
      The ID of the listener to which the notification is targeted.
      Constructors in javax.management.remote with parameters of type Integer 
      Constructor Description
      TargetedNotification(Notification notification, Integer listenerID)
      Constructs a TargetedNotification object.
    • Uses of Integer in javax.management.remote.rmi

      Methods in javax.management.remote.rmi that return Integer 
      Modifier and Type Method Description
      Integer[] RMIConnectionImpl_Stub.addNotificationListeners(ObjectName[] $param_arrayOf_ObjectName_1, MarshalledObject[] $param_arrayOf_MarshalledObject_2, Subject[] $param_arrayOf_Subject_3) 
      Integer[] RMIConnectionImpl.addNotificationListeners(ObjectName[] names, MarshalledObject[] filters, Subject[] delegationSubjects) 
      Integer[] RMIConnection.addNotificationListeners(ObjectName[] names, MarshalledObject[] filters, Subject[] delegationSubjects)
      Handles the method MBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object).
      Integer RMIConnectionImpl_Stub.getMBeanCount(Subject $param_Subject_1) 
      Integer RMIConnectionImpl.getMBeanCount(Subject delegationSubject) 
      Integer RMIConnection.getMBeanCount(Subject delegationSubject)
      Handles the method MBeanServerConnection.getMBeanCount().
      Methods in javax.management.remote.rmi with parameters of type Integer 
      Modifier and Type Method Description
      void RMIConnectionImpl_Stub.removeNotificationListeners(ObjectName $param_ObjectName_1, Integer[] $param_arrayOf_Integer_2, Subject $param_Subject_3) 
      void RMIConnectionImpl.removeNotificationListeners(ObjectName name, Integer[] listenerIDs, Subject delegationSubject) 
      void RMIConnection.removeNotificationListeners(ObjectName name, Integer[] listenerIDs, Subject delegationSubject)
      Handles the removeNotificationListener(ObjectName, NotificationListener) and removeNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) methods.
    • Uses of Integer in javax.management.timer

      Methods in javax.management.timer that return Integer 
      Modifier and Type Method Description
      Integer TimerMBean.addNotification(String type, String message, Object userData, Date date)
      Creates a new timer notification with the specified type, message and userData and inserts it into the list of notifications with a given date and a null period and number of occurrences.
      Integer Timer.addNotification(String type, String message, Object userData, Date date)
      Creates a new timer notification with the specified type, message and userData and inserts it into the list of notifications with a given date and a null period and number of occurrences.
      Integer TimerMBean.addNotification(String type, String message, Object userData, Date date, long period)
      Creates a new timer notification with the specified type, message and userData and inserts it into the list of notifications with a given date and period and a null number of occurrences.
      Integer Timer.addNotification(String type, String message, Object userData, Date date, long period)
      Creates a new timer notification with the specified type, message and userData and inserts it into the list of notifications with a given date and period and a null number of occurrences.
      Integer TimerMBean.addNotification(String type, String message, Object userData, Date date, long period, long nbOccurences)
      Creates a new timer notification with the specified type, message and userData and inserts it into the list of notifications with a given date, period and number of occurrences.
      Integer Timer.addNotification(String type, String message, Object userData, Date date, long period, long nbOccurences)
      Creates a new timer notification with the specified type, message and userData and inserts it into the list of notifications with a given date, period and number of occurrences.
      Integer TimerMBean.addNotification(String type, String message, Object userData, Date date, long period, long nbOccurences, boolean fixedRate)
      Creates a new timer notification with the specified type, message and userData and inserts it into the list of notifications with a given date, period and number of occurrences.
      Integer Timer.addNotification(String type, String message, Object userData, Date date, long period, long nbOccurences, boolean fixedRate)
      Creates a new timer notification with the specified type, message and userData and inserts it into the list of notifications with a given date, period and number of occurrences.
      Integer TimerNotification.getNotificationID()
      Gets the identifier of this timer notification.
      Methods in javax.management.timer that return types with arguments of type Integer 
      Modifier and Type Method Description
      Vector<Integer> TimerMBean.getAllNotificationIDs()
      Gets all timer notification identifiers registered into the list of notifications.
      Vector<Integer> Timer.getAllNotificationIDs()
      Gets all timer notification identifiers registered into the list of notifications.
      Vector<Integer> TimerMBean.getNotificationIDs(String type)
      Gets all the identifiers of timer notifications corresponding to the specified type.
      Vector<Integer> Timer.getNotificationIDs(String type)
      Gets all the identifiers of timer notifications corresponding to the specified type.
      Methods in javax.management.timer with parameters of type Integer 
      Modifier and Type Method Description
      Date TimerMBean.getDate(Integer id)
      Gets a copy of the date associated to a timer notification.
      Date Timer.getDate(Integer id)
      Gets a copy of the date associated to a timer notification.
      Boolean TimerMBean.getFixedRate(Integer id)
      Gets a copy of the flag indicating whether a periodic notification is executed at fixed-delay or at fixed-rate.
      Boolean Timer.getFixedRate(Integer id)
      Gets a copy of the flag indicating whether a periodic notification is executed at fixed-delay or at fixed-rate.
      Long TimerMBean.getNbOccurences(Integer id)
      Gets a copy of the remaining number of occurrences associated to a timer notification.
      Long Timer.getNbOccurences(Integer id)
      Gets a copy of the remaining number of occurrences associated to a timer notification.
      String TimerMBean.getNotificationMessage(Integer id)
      Gets the timer notification detailed message corresponding to the specified identifier.
      String Timer.getNotificationMessage(Integer id)
      Gets the timer notification detailed message corresponding to the specified identifier.
      String TimerMBean.getNotificationType(Integer id)
      Gets the timer notification type corresponding to the specified identifier.
      String Timer.getNotificationType(Integer id)
      Gets the timer notification type corresponding to the specified identifier.
      Object TimerMBean.getNotificationUserData(Integer id)
      Gets the timer notification user data object corresponding to the specified identifier.
      Object Timer.getNotificationUserData(Integer id)
      Gets the timer notification user data object corresponding to the specified identifier.
      Long TimerMBean.getPeriod(Integer id)
      Gets a copy of the period (in milliseconds) associated to a timer notification.
      Long Timer.getPeriod(Integer id)
      Gets a copy of the period (in milliseconds) associated to a timer notification.
      void TimerMBean.removeNotification(Integer id)
      Removes the timer notification corresponding to the specified identifier from the list of notifications.
      void Timer.removeNotification(Integer id)
      Removes the timer notification corresponding to the specified identifier from the list of notifications.
      Constructors in javax.management.timer with parameters of type Integer 
      Constructor Description
      TimerNotification(String type, Object source, long sequenceNumber, long timeStamp, String msg, Integer id)
      Creates a timer notification object.
    • Uses of Integer in javax.script

      Methods in javax.script that return types with arguments of type Integer 
      Modifier and Type Method Description
      List<Integer> SimpleScriptContext.getScopes()
      Returns immutable List of all the valid values for scope in the ScriptContext.
      List<Integer> ScriptContext.getScopes()
      Returns immutable List of all the valid values for scope in the ScriptContext.
    • Uses of Integer in javax.swing

      Fields in javax.swing declared as Integer 
      Modifier and Type Field Description
      static Integer JLayeredPane.DEFAULT_LAYER
      Convenience object defining the Default layer.
      static Integer JLayeredPane.DRAG_LAYER
      Convenience object defining the Drag layer.
      static Integer JLayeredPane.FRAME_CONTENT_LAYER
      Convenience object defining the Frame Content layer.
      static Integer JLayeredPane.MODAL_LAYER
      Convenience object defining the Modal layer.
      static Integer JLayeredPane.PALETTE_LAYER
      Convenience object defining the Palette layer.
      static Integer JLayeredPane.POPUP_LAYER
      Convenience object defining the Popup layer.
      Methods in javax.swing that return Integer 
      Modifier and Type Method Description
      protected Integer JLayeredPane.getObjectForLayer(int layer)
      Returns the Integer object associated with a specified layer.
      Methods in javax.swing that return types with arguments of type Integer 
      Modifier and Type Method Description
      protected Hashtable<Component,Integer> JLayeredPane.getComponentToLayer()
      Returns the hashtable that maps components to layers.
      Methods in javax.swing with parameters of type Integer 
      Modifier and Type Method Description
      void JInternalFrame.setLayer(Integer layer)
      Convenience method for setting the layer attribute of this component.
    • Uses of Integer in javax.swing.plaf.basic

      Methods in javax.swing.plaf.basic that return Integer 
      Modifier and Type Method Description
      protected Integer BasicSliderUI.getHighestValue()
      Returns the biggest value that has an entry in the label table.
      protected Integer BasicSliderUI.getLowestValue()
      Returns the smallest value that has an entry in the label table.
Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help
Java™ Platform
Standard Ed. 8
  • Prev
  • Next
  • Frames
  • No Frames
  • All Classes

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.