Uses of Class
java.lang.Integer
Packages that useInteger Package Description com.sun.nio.sctp A Java API for Stream Control Transport Protocol.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 adata source (usually a relational database) using theJava™ programming language.java.util Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.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.imageio.plugins.tiff Public classes used by the built-in TIFF plug-ins.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 defineJava™ Scripting Engines and providesa 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.jdk.jshell Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.jdk.net Platform specific socket options for thejava.netandjava.nio.channelssocket classes.Uses ofInteger incom.sun.nio.sctp
Fields incom.sun.nio.sctp with type parameters of typeInteger Modifier and Type Field Description staticSctpSocketOption<Integer>SctpStandardSocketOptions. SCTP_FRAGMENT_INTERLEAVEFragmented interleave controls how the presentation of messages occur for the message receiver.staticSctpSocketOption<Integer>SctpStandardSocketOptions. SO_LINGERLinger on close if data is present.staticSctpSocketOption<Integer>SctpStandardSocketOptions. SO_RCVBUFThe size of the socket receive buffer.staticSctpSocketOption<Integer>SctpStandardSocketOptions. SO_SNDBUFThe size of the socket send buffer.Uses ofInteger injava.awt.font
Fields injava.awt.font declared asInteger Modifier and Type Field Description staticIntegerTextAttribute. KERNING_ONRequest standard kerning.staticIntegerTextAttribute. LIGATURES_ONRequest standard optional ligatures.staticIntegerTextAttribute. SUPERSCRIPT_SUBStandard subscript.staticIntegerTextAttribute. SUPERSCRIPT_SUPERStandard superscript.staticIntegerTextAttribute. UNDERLINE_LOW_DASHEDSingle pixel dashed low underline.staticIntegerTextAttribute. UNDERLINE_LOW_DOTTEDSingle pixel dotted low underline.staticIntegerTextAttribute. UNDERLINE_LOW_GRAYDouble pixel gray low underline.staticIntegerTextAttribute. UNDERLINE_LOW_ONE_PIXELSingle pixel solid low underline.staticIntegerTextAttribute. UNDERLINE_LOW_TWO_PIXELDouble pixel solid low underline.staticIntegerTextAttribute. UNDERLINE_ONStandard underline.Uses ofInteger injava.lang
Fields injava.lang with type parameters of typeInteger Modifier and Type Field Description staticClass<Integer>Integer. TYPETheClassinstance representing the primitive typeint.Methods injava.lang that returnInteger Modifier and Type Method Description staticIntegerInteger. decode(String nm)Decodes aStringinto anInteger.staticIntegerInteger. getInteger(String nm)Determines the integer value of the system property with the specified name.staticIntegerInteger. getInteger(String nm, int val)Determines the integer value of the system property with the specified name.staticIntegerInteger. getInteger(String nm,Integer val)Returns the integer value of the system property with the specified name.staticIntegerInteger. valueOf(int i)Returns anIntegerinstance representing the specifiedintvalue.staticIntegerInteger. valueOf(String s)Returns anIntegerobject holding the value of the specifiedString.staticIntegerInteger. valueOf(String s, int radix)Returns anIntegerobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.Methods injava.lang that return types with arguments of typeInteger Modifier and Type Method Description Optional<Integer>Runtime.Version. build()Returns thebuild number.List<Integer>Runtime.Version. version()Returns an unmodifiableListof the integers represented in theversion number.Methods injava.lang with parameters of typeInteger Modifier and Type Method Description intInteger. compareTo(Integer anotherInteger)Compares twoIntegerobjects numerically.staticIntegerInteger. getInteger(String nm,Integer val)Returns the integer value of the system property with the specified name.Uses ofInteger injava.net
Fields injava.net with type parameters of typeInteger Modifier and Type Field Description staticSocketOption<Integer>StandardSocketOptions. IP_MULTICAST_TTLThetime-to-live for Internet Protocol (IP) multicast datagrams.staticSocketOption<Integer>StandardSocketOptions. IP_TOSThe Type of Service (ToS) octet in the Internet Protocol (IP) header.staticSocketOption<Integer>StandardSocketOptions. SO_LINGERLinger on close if data is present.staticSocketOption<Integer>StandardSocketOptions. SO_RCVBUFThe size of the socket receive buffer.staticSocketOption<Integer>StandardSocketOptions. SO_SNDBUFThe size of the socket send buffer.Uses ofInteger injava.nio.channels
Methods injava.nio.channels that return types with arguments of typeInteger Modifier and Type Method Description Future<Integer>AsynchronousByteChannel. read(ByteBuffer dst)Reads a sequence of bytes from this channel into the given buffer.abstractFuture<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.abstractFuture<Integer>AsynchronousSocketChannel. read(ByteBuffer dst)Future<Integer>AsynchronousByteChannel. write(ByteBuffer src)Writes a sequence of bytes to this channel from the given buffer.abstractFuture<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.abstractFuture<Integer>AsynchronousSocketChannel. write(ByteBuffer src)Method parameters injava.nio.channels with type arguments of typeInteger Modifier and Type Method Description <A> voidAsynchronousByteChannel. read(ByteBuffer dst, A attachment,CompletionHandler<Integer,? super A> handler)Reads a sequence of bytes from this channel into the given buffer.abstract <A> voidAsynchronousFileChannel. 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> voidAsynchronousSocketChannel. 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> voidAsynchronousSocketChannel. read(ByteBuffer dst, A attachment,CompletionHandler<Integer,? super A> handler)<A> voidAsynchronousByteChannel. write(ByteBuffer src, A attachment,CompletionHandler<Integer,? super A> handler)Writes a sequence of bytes to this channel from the given buffer.abstract <A> voidAsynchronousFileChannel. 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> voidAsynchronousSocketChannel. 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.<A> voidAsynchronousSocketChannel. write(ByteBuffer src, A attachment,CompletionHandler<Integer,? super A> handler)Uses ofInteger injava.sql
Methods injava.sql that returnInteger Modifier and Type Method Description IntegerJDBCType. getVendorTypeNumber()Returns the vendor specific type number for the data type.IntegerSQLType. getVendorTypeNumber()Returns the vendor specific type number for the data type.Uses ofInteger injava.util
Methods injava.util that returnInteger Modifier and Type Method Description defaultIntegerPrimitiveIterator.OfInt. next()Returns the next element in the iteration.Methods injava.util that return types with arguments of typeInteger Modifier and Type Method Description Map<String,Integer>Calendar. getDisplayNames(int field, int style,Locale locale)Returns aMapcontaining all names of the calendarfieldin the givenstyleandlocaleand their corresponding field values.Method parameters injava.util with type arguments of typeInteger Modifier and Type Method Description default voidPrimitiveIterator.OfInt. forEachRemaining(Consumer<? superInteger> action)Performs the given action for each remaining element until all elements have been processed or the action throws an exception.default voidSpliterator.OfInt. forEachRemaining(Consumer<? superInteger> 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 booleanSpliterator.OfInt. tryAdvance(Consumer<? superInteger> action)If a remaining element exists, performs the given action on it, returningtrue; else returnsfalse.Uses ofInteger injava.util.spi
Methods injava.util.spi that return types with arguments of typeInteger Modifier and Type Method Description abstractMap<String,Integer>CalendarNameProvider. getDisplayNames(String calendarType, int field, int style,Locale locale)Returns aMapcontaining all string representations (display names) of theCalendarfieldin the givenstyleandlocaleand their corresponding field values.Uses ofInteger injava.util.stream
Methods injava.util.stream that return types with arguments of typeInteger Modifier and Type Method Description Stream<Integer>IntStream. boxed()Returns aStreamconsisting of the elements of this stream, each boxed to anInteger.static <T> Collector<T,?,Integer>Collectors. summingInt(ToIntFunction<? super T> mapper)Returns aCollectorthat produces the sum of a integer-valued function applied to the input elements.Uses ofInteger injavax.imageio.plugins.tiff
Methods injavax.imageio.plugins.tiff that return types with arguments of typeInteger Modifier and Type Method Description SortedSet<Integer>TIFFTagSet. getTagNumbers()Retrieves an unmodifiable numerically increasing set of tag numbers.Uses ofInteger injavax.management
Methods injavax.management that returnInteger Modifier and Type Method Description IntegerMBeanServer. getMBeanCount()Returns the number of MBeans registered in the MBean server.IntegerMBeanServerConnection. getMBeanCount()Returns the number of MBeans registered in the MBean server.Uses ofInteger injavax.management.openmbean
Fields injavax.management.openmbean with type parameters of typeInteger Modifier and Type Field Description staticSimpleType<Integer>SimpleType. INTEGERTheSimpleTypeinstance describing values whose Java class name isjava.lang.Integer.Uses ofInteger injavax.management.relation
Methods injavax.management.relation that returnInteger Modifier and Type Method Description IntegerRelationService. checkRoleReading(String roleName,String relationTypeName)Checks if given Role can be read in a relation of the given type.IntegerRelationServiceMBean. checkRoleReading(String roleName,String relationTypeName)Checks if given Role can be read in a relation of the given type.IntegerRelationService. checkRoleWriting(Role role,String relationTypeName,Boolean initFlag)Checks if given Role can be set in a relation of given type.IntegerRelationServiceMBean. checkRoleWriting(Role role,String relationTypeName,Boolean initFlag)Checks if given Role can be set in a relation of given type.IntegerRelation. getRoleCardinality(String roleName)Returns the number of MBeans currently referenced in the given role.IntegerRelationService. getRoleCardinality(String relationId,String roleName)Retrieves the number of MBeans currently referenced in the given role.IntegerRelationServiceMBean. getRoleCardinality(String relationId,String roleName)Retrieves the number of MBeans currently referenced in the given role.IntegerRelationSupport. getRoleCardinality(String roleName)Returns the number of MBeans currently referenced in the given role.Uses ofInteger injavax.management.remote
Methods injavax.management.remote that returnInteger Modifier and Type Method Description IntegerTargetedNotification. getListenerID()The ID of the listener to which the notification is targeted.Constructors injavax.management.remote with parameters of typeInteger Constructor Description TargetedNotification(Notification notification,Integer listenerID)Constructs aTargetedNotificationobject.Uses ofInteger injavax.management.remote.rmi
Methods injavax.management.remote.rmi that returnInteger Modifier and Type Method Description Integer[]RMIConnection. addNotificationListeners(ObjectName[] names,MarshalledObject[] filters,Subject[] delegationSubjects)IntegerRMIConnection. getMBeanCount(Subject delegationSubject)Handles the methodMBeanServerConnection.getMBeanCount().Methods injavax.management.remote.rmi with parameters of typeInteger Modifier and Type Method Description voidRMIConnection. removeNotificationListeners(ObjectName name,Integer[] listenerIDs,Subject delegationSubject)Uses ofInteger injavax.management.timer
Methods injavax.management.timer that returnInteger Modifier and Type Method Description IntegerTimer. addNotification(String type,String message,Object userData,Date date)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and a null period and number of occurrences.IntegerTimer. addNotification(String type,String message,Object userData,Date date, long period)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and period and a null number of occurrences.IntegerTimer. addNotification(String type,String message,Object userData,Date date, long period, long nbOccurences)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.IntegerTimer. addNotification(String type,String message,Object userData,Date date, long period, long nbOccurences, boolean fixedRate)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.IntegerTimerMBean. addNotification(String type,String message,Object userData,Date date)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and a null period and number of occurrences.IntegerTimerMBean. addNotification(String type,String message,Object userData,Date date, long period)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and period and a null number of occurrences.IntegerTimerMBean. addNotification(String type,String message,Object userData,Date date, long period, long nbOccurences)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.IntegerTimerMBean. addNotification(String type,String message,Object userData,Date date, long period, long nbOccurences, boolean fixedRate)Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.IntegerTimerNotification. getNotificationID()Gets the identifier of this timer notification.Methods injavax.management.timer that return types with arguments of typeInteger Modifier and Type Method Description Vector<Integer>Timer. getAllNotificationIDs()Gets all timer notification identifiers registered into the list of notifications.Vector<Integer>TimerMBean. getAllNotificationIDs()Gets all timer notification identifiers registered into the list of notifications.Vector<Integer>Timer. getNotificationIDs(String type)Gets all the identifiers of timer notifications corresponding to the specified type.Vector<Integer>TimerMBean. getNotificationIDs(String type)Gets all the identifiers of timer notifications corresponding to the specified type.Methods injavax.management.timer with parameters of typeInteger Modifier and Type Method Description DateTimer. getDate(Integer id)Gets a copy of the date associated to a timer notification.DateTimerMBean. getDate(Integer id)Gets a copy of the date associated to a timer notification.BooleanTimer. getFixedRate(Integer id)Gets a copy of the flag indicating whether a periodic notification is executed atfixed-delay or atfixed-rate.BooleanTimerMBean. getFixedRate(Integer id)Gets a copy of the flag indicating whether a periodic notification is executed atfixed-delay or atfixed-rate.LongTimer. getNbOccurences(Integer id)Gets a copy of the remaining number of occurrences associated to a timer notification.LongTimerMBean. getNbOccurences(Integer id)Gets a copy of the remaining number of occurrences associated to a timer notification.StringTimer. getNotificationMessage(Integer id)Gets the timer notification detailed message corresponding to the specified identifier.StringTimerMBean. getNotificationMessage(Integer id)Gets the timer notification detailed message corresponding to the specified identifier.StringTimer. getNotificationType(Integer id)Gets the timer notification type corresponding to the specified identifier.StringTimerMBean. getNotificationType(Integer id)Gets the timer notification type corresponding to the specified identifier.ObjectTimer. getNotificationUserData(Integer id)Gets the timer notification user data object corresponding to the specified identifier.ObjectTimerMBean. getNotificationUserData(Integer id)Gets the timer notification user data object corresponding to the specified identifier.LongTimer. getPeriod(Integer id)Gets a copy of the period (in milliseconds) associated to a timer notification.LongTimerMBean. getPeriod(Integer id)Gets a copy of the period (in milliseconds) associated to a timer notification.voidTimer. removeNotification(Integer id)Removes the timer notification corresponding to the specified identifier from the list of notifications.voidTimerMBean. removeNotification(Integer id)Removes the timer notification corresponding to the specified identifier from the list of notifications.Constructors injavax.management.timer with parameters of typeInteger Constructor Description TimerNotification(String type,Object source, long sequenceNumber, long timeStamp,String msg,Integer id)Creates a timer notification object.Uses ofInteger injavax.script
Methods injavax.script that return types with arguments of typeInteger Modifier and Type Method Description List<Integer>ScriptContext. getScopes()Returns immutableListof all the valid values for scope in the ScriptContext.Uses ofInteger injavax.swing
Fields injavax.swing declared asInteger Modifier and Type Field Description staticIntegerJLayeredPane. DEFAULT_LAYERConvenience object defining the Default layer.staticIntegerJLayeredPane. DRAG_LAYERConvenience object defining the Drag layer.staticIntegerJLayeredPane. FRAME_CONTENT_LAYERConvenience object defining the Frame Content layer.staticIntegerJLayeredPane. MODAL_LAYERConvenience object defining the Modal layer.staticIntegerJLayeredPane. PALETTE_LAYERConvenience object defining the Palette layer.staticIntegerJLayeredPane. POPUP_LAYERConvenience object defining the Popup layer.Methods injavax.swing that returnInteger Modifier and Type Method Description protectedIntegerJLayeredPane. getObjectForLayer(int layer)Returns the Integer object associated with a specified layer.Methods injavax.swing that return types with arguments of typeInteger Modifier and Type Method Description Hashtable<Integer,JComponent>JSlider. createStandardLabels(int increment)Creates aHashtableof numerical text labels, starting at the slider minimum, and using the increment specified.Hashtable<Integer,JComponent>JSlider. createStandardLabels(int increment, int start)Creates aHashtableof numerical text labels, starting at the starting point specified, and using the increment specified.protectedHashtable<Component,Integer>JLayeredPane. getComponentToLayer()Returns the hashtable that maps components to layers.Methods injavax.swing with parameters of typeInteger Modifier and Type Method Description voidJInternalFrame. setLayer(Integer layer)Convenience method for setting the layer attribute of this component.Uses ofInteger injavax.swing.plaf.basic
Methods injavax.swing.plaf.basic that returnInteger Modifier and Type Method Description protectedIntegerBasicSliderUI. getHighestValue()Returns the biggest value that has an entry in the label table.protectedIntegerBasicSliderUI. getLowestValue()Returns the smallest value that has an entry in the label table.Uses ofInteger injdk.jshell
Method parameters injdk.jshell with type arguments of typeInteger Modifier and Type Method Description JShell.BuilderJShell.Builder. idGenerator(BiFunction<Snippet,Integer,String> generator)Sets the generator of identifying names for Snippets.Uses ofInteger injdk.net
Fields injdk.net with type parameters of typeInteger Modifier and Type Field Description staticSocketOption<Integer>ExtendedSocketOptions. TCP_KEEPCOUNTKeep-Alive retransmission maximum limit.staticSocketOption<Integer>ExtendedSocketOptions. TCP_KEEPIDLEKeep-Alive idle time.staticSocketOption<Integer>ExtendedSocketOptions. TCP_KEEPINTERVALKeep-Alive retransmission interval time.