Uses of Class
java.lang.Long
Packages that use Long
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
Provides classfile parsing, generation, and transformation library.
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.
Generic API for calendar systems other than the default ISO.
Provides classes to print and parse dates and times.
Access to date and time using fields and units, and date time adjusters.
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.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
Provides the open data types and Open MBean descriptor classes.
Provides the definition of the Timer MBean.
-
Uses of Long in java.lang
Modifier and TypeClassDescriptionfinal classModifier and TypeFieldDescriptionLong.TYPETheClassinstance representing the primitive typelong.Modifier and TypeMethodDescriptionstatic LongDecodes aStringinto aLong.static LongDetermines thelongvalue of the system property with the specified name.static LongDetermines thelongvalue of the system property with the specified name.static LongReturns thelongvalue of the system property with the specified name.Long.resolveConstantDesc(MethodHandles.Lookup lookup) Resolves this instance as aConstantDesc, the result of which is the instance itself.static LongLong.valueOf(long l) Returns aLonginstance representing the specifiedlongvalue.static LongReturns aLongobject holding the value of the specifiedString.static LongReturns aLongobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.Modifier and TypeMethodDescriptionLong.describeConstable()Returns anOptionalcontaining the nominal descriptor for this instance, which is the instance itself. -
Uses of Long in java.lang.classfile
Methods in java.lang.classfile that return LongModifier and TypeMethodDescriptiondefault LongAnnotationValue.OfLong.resolvedValue()Returns the resolved long value. -
Uses of Long in java.nio.channels
Method parameters in java.nio.channels with type arguments of type LongModifier and TypeMethodDescriptionabstract <A> voidAsynchronousSocketChannel.read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, ? super A> handler) Reads a sequence of bytes from this channel into a subsequence of the given buffers.abstract <A> voidAsynchronousSocketChannel.write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, ? super A> handler) Writes a sequence of bytes to this channel from a subsequence of the given buffers. -
Uses of Long in java.time.chrono
Method parameters in java.time.chrono with type arguments of type LongModifier and TypeMethodDescriptionAbstractChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) Resolves parsedChronoFieldvalues into a date during parsing.Chronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) Resolves parsedChronoFieldvalues into a date during parsing.HijrahChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) IsoChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) Resolves parsedChronoFieldvalues into a date during parsing.JapaneseChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) MinguoChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) ThaiBuddhistChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) -
Uses of Long in java.time.format
Method parameters in java.time.format with type arguments of type LongModifier and TypeMethodDescriptionDateTimeFormatterBuilder.appendText(TemporalField field, Map<Long, String> textLookup) Appends the text of a date-time field to the formatter using the specified map to supply the text. -
Uses of Long in java.time.temporal
Method parameters in java.time.temporal with type arguments of type LongModifier and TypeMethodDescriptiondefault TemporalAccessorTemporalField.resolve(Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) Resolves this field to provide a simpler alternative or a date. -
Uses of Long in java.util
Modifier and TypeInterfaceDescriptionstatic interfaceAn Iterator specialized forlongvalues.static interfaceA Spliterator specialized forlongvalues.Modifier and TypeMethodDescriptiondefault LongPrimitiveIterator.OfLong.next()Returns the next element in the iteration.Modifier and TypeMethodDescriptiondefault voidPrimitiveIterator.OfLong.forEachRemaining(Consumer<? super Long> action) Performs the given action for each remaining element until all elements have been processed or the action throws an exception.default voidSpliterator.OfLong.forEachRemaining(Consumer<? super Long> 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.OfLong.tryAdvance(Consumer<? super Long> action) If a remaining element exists: performs the given action on it, returningtrue; else returnsfalse. -
Uses of Long in java.util.stream
Subinterfaces with type arguments of type Long in java.util.streamModifier and TypeInterfaceDescriptioninterfaceA sequence of primitive long-valued elements supporting sequential and parallel aggregate operations.Methods in java.util.stream that return types with arguments of type LongModifier and TypeMethodDescriptionLongStream.boxed()Returns aStreamconsisting of the elements of this stream, each boxed to aLong.Collectors.counting()Returns aCollectoraccepting elements of typeTthat counts the number of input elements.Collectors.summingLong(ToLongFunction<? super T> mapper) Returns aCollectorthat produces the sum of a long-valued function applied to the input elements. -
Uses of Long in javax.management.openmbean
Fields in javax.management.openmbean with type parameters of type LongModifier and TypeFieldDescriptionstatic final SimpleType<Long> SimpleType.LONGTheSimpleTypeinstance describing values whose Java class name isjava.lang.Long. -
Uses of Long in javax.management.timer
Methods in javax.management.timer that return LongModifier and TypeMethodDescriptionTimer.getNbOccurences(Integer id) Gets a copy of the remaining number of occurrences associated to a timer notification.TimerMBean.getNbOccurences(Integer id) Gets a copy of the remaining number of occurrences associated to a timer notification.Gets a copy of the period (in milliseconds) associated to a timer notification.Gets a copy of the period (in milliseconds) associated to a timer notification.