Uses of Class
java.lang.Long
| Package | Description |
|---|---|
| java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
| 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.time.chrono |
Generic API for calendar systems other than the default ISO.
|
| java.time.format |
Provides classes to print and parse dates and times.
|
| java.time.temporal |
Access to date and time using fields and units, and date time adjusters.
|
| 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.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
| javax.management.openmbean |
Provides the open data types and Open MBean descriptor classes.
|
| javax.management.timer |
Provides the definition of the Timer MBean.
|
-
Uses of Long in java.lang
Fields in java.lang with type parameters of type Long Modifier and Type Field Description static Class<Long>Long. TYPETheClassinstance representing the primitive typelong.Methods in java.lang that return Long Modifier and Type Method Description static LongLong. decode(String nm)Decodes aStringinto aLong.static LongLong. getLong(String nm)Determines thelongvalue of the system property with the specified name.static LongLong. getLong(String nm, long val)Determines thelongvalue of the system property with the specified name.static LongLong. getLong(String nm, Long val)Returns thelongvalue of the system property with the specified name.LongLong. 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 LongLong. valueOf(String s)Returns aLongobject holding the value of the specifiedString.static LongLong. valueOf(String s, int radix)Returns aLongobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument. -
Uses of Long in java.nio.channels
Method parameters in java.nio.channels with type arguments of type Long Modifier and Type Method Description abstract <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 Long Modifier and Type Method Description ChronoLocalDateAbstractChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)Resolves parsedChronoFieldvalues into a date during parsing.ChronoLocalDateChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)Resolves parsedChronoFieldvalues into a date during parsing.HijrahDateHijrahChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)LocalDateIsoChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)Resolves parsedChronoFieldvalues into a date during parsing.JapaneseDateJapaneseChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)MinguoDateMinguoChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)ThaiBuddhistDateThaiBuddhistChronology. 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 Long Modifier and Type Method Description DateTimeFormatterBuilderDateTimeFormatterBuilder. 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 Long Modifier and Type Method Description default 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
Methods in java.util that return Long Modifier and Type Method Description default LongPrimitiveIterator.OfLong. next()Returns the next element in the iteration.Method parameters in java.util with type arguments of type Long Modifier and Type Method Description default 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
Methods in java.util.stream that return types with arguments of type Long Modifier and Type Method Description Stream<Long>LongStream. boxed()Returns aStreamconsisting of the elements of this stream, each boxed to aLong.static <T> Collector<T,?,Long>Collectors. counting()Returns aCollectoraccepting elements of typeTthat counts the number of input elements.static <T> Collector<T,?,Long>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 Long Modifier and Type Field Description static 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 Long Modifier and Type Method Description 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.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.