Uses of Class
java.lang.Long
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
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 TypeFieldDescriptionLong.TYPE
TheClass
instance representing the primitive typelong
.Modifier and TypeMethodDescriptionstatic Long
Decodes aString
into aLong
.static Long
Determines thelong
value of the system property with the specified name.static Long
Determines thelong
value of the system property with the specified name.static Long
Returns thelong
value 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 Long
Long.valueOf
(long l) Returns aLong
instance representing the specifiedlong
value.static Long
Returns aLong
object holding the value of the specifiedString
.static Long
Returns aLong
object holding the value extracted from the specifiedString
when parsed with the radix given by the second argument.Modifier and TypeMethodDescriptionLong.describeConstable()
Returns anOptional
containing the nominal descriptor for this instance, which is the instance itself. -
Uses of Long in java.nio.channels
Modifier and TypeMethodDescriptionabstract <A> void
AsynchronousSocketChannel.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> void
AsynchronousSocketChannel.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
Modifier and TypeMethodDescriptionAbstractChronology.resolveDate
(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) Resolves parsedChronoField
values into a date during parsing.Chronology.resolveDate
(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) Resolves parsedChronoField
values into a date during parsing.HijrahChronology.resolveDate
(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) IsoChronology.resolveDate
(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) Resolves parsedChronoField
values 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
Modifier 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
Modifier and TypeMethodDescriptiondefault TemporalAccessor
TemporalField.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 TypeMethodDescriptiondefault Long
PrimitiveIterator.OfLong.next()
Returns the next element in the iteration.Modifier and TypeMethodDescriptiondefault void
PrimitiveIterator.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 void
Spliterator.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 boolean
Spliterator.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
Modifier and TypeMethodDescriptionLongStream.boxed()
Returns aStream
consisting of the elements of this stream, each boxed to aLong
.Collectors.counting()
Returns aCollector
accepting elements of typeT
that counts the number of input elements.Collectors.summingLong
(ToLongFunction<? super T> mapper) Returns aCollector
that produces the sum of a long-valued function applied to the input elements. -
Uses of Long in javax.management.openmbean
Modifier and TypeFieldDescriptionstatic final SimpleType<Long>
SimpleType.LONG
TheSimpleType
instance describing values whose Java class name isjava.lang.Long
. -
Uses of Long in javax.management.timer
Modifier 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.