java.io
BufferedReader
|
public java.util.stream.Stream lines()
|
现有类中的附加方法。 |
java.io
ByteArrayInputStream
|
public long transferTo(OutputStream p0)
|
现有类中的附加方法。 |
java.io
File
|
public java.nio.file.Path toPath()
|
现有类中的附加方法。 |
java.io
InputStream
|
public long transferTo(OutputStream p0)
|
现有类中的附加方法。 |
java.io
UncheckedIOException
|
public UncheckedIOException(IOException cause)
public UncheckedIOException( String message, IOException cause)
public IOException getCause()
|
完全实现的类。 |
java.lang
Character
|
public static boolean isBmpCodePoint(int p0)
|
现有类中的附加方法。 |
java.lang
Iterable
|
public void forEach(Consumer action)
public java.util.Spliterator spliterator()
|
现有类中的附加方法。 |
java.net
URLDecoder
|
public URLDecoder()
public static String decode(String s)
public static String decode(String s, String enc)
public static String decode( String s, java.nio.charset.Charset charset)
|
完全实现的类。 |
java.net
URLEncoder
|
public static String encode(String s)
public static String encode(String s, String enc)
public static String encode( String s, java.nio.charset.Charset charset)
|
完全实现的类。 |
java.nio.channels 请参阅自定义项
AsynchronousChannel
|
public abstract void close()
|
完全实现的类。 |
java.nio.channels 请参阅自定义项
AsynchronousFileChannel
|
protected AsynchronousFileChannel()
public abstract void force(boolean p0)
public final java.util.concurrent.Future lock()
public abstract java.util.concurrent.Future lock( long p0, long p1, boolean p2)
public abstract void lock( long p0, long p1, boolean p2, Object p3, CompletionHandler p4)
public final void lock( Object attachment, CompletionHandler handler)
public static AsynchronousFileChannel open( Path file, java.util.Set options, java.util.concurrent.ExecutorService executor, FileAttribute[] attrs)
public static AsynchronousFileChannel open( Path file, OpenOption[] options)
public abstract java.util.concurrent.Future read( ByteBuffer p0, long p1)
public abstract void read( ByteBuffer p0, long p1, Object p2, CompletionHandler p3)
public abstract long size()
public abstract AsynchronousFileChannel truncate( long p0)
public final FileLock tryLock()
public abstract FileLock tryLock( long p0, long p1, boolean p2)
public abstract java.util.concurrent.Future write( ByteBuffer p0, long p1)
public abstract void write( ByteBuffer p0, long p1, Object p2, CompletionHandler p3)
|
完全实现的类。 |
java.nio.channels 请参阅自定义项
CompletionHandler
|
public abstract void completed(Object p0, Object p1)
public abstract void failed(Throwable p0, Object p1)
|
完全实现的类。 |
java.nio.channels 请参阅自定义项
FileChannel
|
public static FileChannel open( Path path, java.util.Set options, FileAttribute[] attrs)
public static FileChannel open( Path path, OpenOption[] options)
|
现有类中的附加方法。 |
java.nio.channels 请参阅自定义项
SeekableByteChannel
|
public abstract long position()
public abstract SeekableByteChannel position( long p0)
public abstract int read(ByteBuffer p0)
public abstract long size()
public abstract SeekableByteChannel truncate( long p0)
public abstract int write(ByteBuffer p0)
|
完全实现的类。 |
java.nio.charset 请参阅自定义项
StandardCharsets
|
public static final Charset ISO_8859_1
public static final Charset US_ASCII
public static final Charset UTF_16
public static final Charset UTF_16BE
public static final Charset UTF_16LE
public static final Charset UTF_8
|
完全实现的类。 |
java.nio.file 请参阅自定义项
AccessDeniedException
|
public AccessDeniedException(String file)
public AccessDeniedException( String file, String other, String reason)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
AccessMode
|
public static final AccessMode EXECUTE
public static final AccessMode READ
public static final AccessMode WRITE
public static AccessMode valueOf(String name)
public static AccessMode[] values()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
AtomicMoveNotSupportedException
|
public AtomicMoveNotSupportedException( String source, String target, String reason)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
ClosedDirectoryStreamException
|
public ClosedDirectoryStreamException()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
ClosedFileSystemException
|
public ClosedFileSystemException()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
ClosedWatchServiceException
|
public ClosedWatchServiceException()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
DirectoryIteratorException
|
public DirectoryIteratorException( java.io.IOException cause)
public java.io.IOException getCause()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
DirectoryNotEmptyException
|
public DirectoryNotEmptyException(String dir)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
DirectoryStream. Filter
|
public abstract boolean accept(Object p0)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
DirectoryStream
|
public abstract java.util.Iterator iterator()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
FileAlreadyExistsException
|
public FileAlreadyExistsException(String file)
public FileAlreadyExistsException( String file, String other, String reason)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
FileStore
|
protected FileStore()
public abstract Object getAttribute(String p0)
public long getBlockSize()3
public abstract FileStoreAttributeView getFileStoreAttributeView( Class p0)
public abstract long getTotalSpace()
public abstract long getUnallocatedSpace()
public abstract long getUsableSpace()
public abstract boolean isReadOnly()
public abstract String name()
public abstract boolean supportsFileAttributeView( Class p0)
public abstract boolean supportsFileAttributeView( String p0)
public abstract String type()
|
3 所有minSDK级别均不支持。 |
java.nio.file 请参阅自定义项
FileSystem
|
protected FileSystem()
public abstract void close()
public abstract Iterable getFileStores()
public abstract Path getPath(String p0, String[] p1)
public abstract PathMatcher getPathMatcher( String p0)
public abstract Iterable getRootDirectories()
public abstract String getSeparator()
public abstract UserPrincipalLookupService getUserPrincipalLookupService()
public abstract boolean isOpen()
public abstract boolean isReadOnly()
public abstract WatchService newWatchService()
public abstract FileSystemProvider provider()
public abstract java.util.Set supportedFileAttributeViews()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
FileSystemAlreadyExistsException
|
public FileSystemAlreadyExistsException()
public FileSystemAlreadyExistsException(String msg)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
FileSystemException
|
public FileSystemException(String file)
public FileSystemException( String file, String other, String reason)
public String getFile()
public String getMessage()
public String getOtherFile()
public String getReason()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
FileSystemLoopException
|
public FileSystemLoopException(String file)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
FileSystemNotFoundException
|
public FileSystemNotFoundException()
public FileSystemNotFoundException(String msg)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
FileSystems
|
public static FileSystem getDefault()
public static FileSystem getFileSystem( java.net.URI uri)
public static FileSystem newFileSystem( java.net.URI uri, java.util.Map env)
public static FileSystem newFileSystem( java.net.URI uri, java.util.Map env, ClassLoader loader)
public static FileSystem newFileSystem( Path path, ClassLoader loader)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
FileVisitOption
|
public static final FileVisitOption FOLLOW_LINKS
public static FileVisitOption valueOf(String name)
public static FileVisitOption[] values()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
FileVisitResult
|
public static final FileVisitResult CONTINUE
public static final FileVisitResult SKIP_SIBLINGS
public static final FileVisitResult SKIP_SUBTREE
public static final FileVisitResult TERMINATE
public static FileVisitResult valueOf(String name)
public static FileVisitResult[] values()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
FileVisitor
|
public abstract FileVisitResult postVisitDirectory( Object p0, java.io.IOException p1)
public abstract FileVisitResult preVisitDirectory( Object p0, BasicFileAttributes p1)
public abstract FileVisitResult visitFile( Object p0, BasicFileAttributes p1)
public abstract FileVisitResult visitFileFailed( Object p0, java.io.IOException p1)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
Files
|
public static long copy( java.io.InputStream in, Path target, CopyOption[] options)
public static long copy( Path source, java.io.OutputStream out)
public static Path copy( Path source, Path target, CopyOption[] options)
public static Path createDirectories( Path dir, FileAttribute[] attrs)
public static Path createDirectory( Path dir, FileAttribute[] attrs)
public static Path createFile( Path path, FileAttribute[] attrs)
public static Path createLink( Path link, Path existing)
public static Path createSymbolicLink( Path link, Path target, FileAttribute[] attrs)
public static Path createTempDirectory( String prefix, FileAttribute[] attrs)
public static Path createTempDirectory( Path dir, String prefix, FileAttribute[] attrs)
public static Path createTempFile( String prefix, String suffix, FileAttribute[] attrs)
public static Path createTempFile( Path dir, String prefix, String suffix, FileAttribute[] attrs)
public static void delete(Path path)
public static boolean deleteIfExists(Path path)
public static boolean exists( Path path, LinkOption[] options)
public static java.util.stream.Stream find( Path start, int maxDepth, BiPredicate matcher, FileVisitOption[] options)
public static Object getAttribute( Path path, String attribute, LinkOption[] options)
public static FileAttributeView getFileAttributeView( Path path, Class type, LinkOption[] options)
public static FileStore getFileStore(Path path)
public static FileTime getLastModifiedTime( Path path, LinkOption[] options)
public static UserPrincipal getOwner( Path path, LinkOption[] options)
public static java.util.Set getPosixFilePermissions( Path path, LinkOption[] options)
public static boolean isDirectory( Path path, LinkOption[] options)
public static boolean isExecutable(Path path)
public static boolean isHidden(Path path)
public static boolean isReadable(Path path)
public static boolean isRegularFile( Path path, LinkOption[] options)
public static boolean isSameFile( Path path, Path path2)
public static boolean isSymbolicLink(Path path)
public static boolean isWritable(Path path)
public static java.util.stream.Stream lines( Path path)
public static java.util.stream.Stream lines( Path path, Charset cs)
public static java.util.stream.Stream list(Path dir)
public static Path move( Path source, Path target, CopyOption[] options)
public static java.io.BufferedReader newBufferedReader( Path path)
public static java.io.BufferedReader newBufferedReader( Path path, Charset cs)
public static java.io.BufferedWriter newBufferedWriter( Path path, Charset cs, OpenOption[] options)
public static java.io.BufferedWriter newBufferedWriter( Path path, OpenOption[] options)
public static SeekableByteChannel newByteChannel( Path path, java.util.Set options, FileAttribute[] attrs)
public static SeekableByteChannel newByteChannel( Path path, OpenOption[] options)
public static DirectoryStream newDirectoryStream( Path dir)
public static DirectoryStream newDirectoryStream( Path dir, String glob)
public static DirectoryStream newDirectoryStream( Path dir, DirectoryStream.Filter filter)
public static java.io.InputStream newInputStream( Path path, OpenOption[] options)
public static java.io.OutputStream newOutputStream( Path path, OpenOption[] options)
public static boolean notExists( Path path, LinkOption[] options)
public static String probeContentType(Path path)
public static byte[] readAllBytes(Path path)
public static java.util.List readAllLines(Path path)
public static java.util.List readAllLines( Path path, Charset cs)
public static BasicFileAttributes readAttributes( Path path, Class type, LinkOption[] options)
public static java.util.Map readAttributes( Path path, String attributes, LinkOption[] options)
public static String readString( Path path)2
public static String readString( Path path, Charset cs)2
public static Path readSymbolicLink(Path link)
public static Path setAttribute( Path path, String attribute, Object value, LinkOption[] options)
public static Path setLastModifiedTime( Path path, FileTime time)
public static Path setOwner( Path path, UserPrincipal owner)
public static Path setPosixFilePermissions( Path path, java.util.Set perms)
public static long size(Path path)
public static java.util.stream.Stream walk( Path start, int maxDepth, FileVisitOption[] options)
public static java.util.stream.Stream walk( Path start, FileVisitOption[] options)
public static Path walkFileTree( Path start, FileVisitor visitor)
public static Path walkFileTree( Path start, java.util.Set options, int maxDepth, FileVisitor visitor)
public static Path write( Path path, Iterable lines, Charset cs, OpenOption[] options)
public static Path write( Path path, Iterable lines, OpenOption[] options)
public static Path write( Path path, byte[] bytes, OpenOption[] options)
public static Path writeString( Path path, CharSequence csq, Charset cs, OpenOption[] options)2
public static Path writeString( Path path, CharSequence csq, OpenOption[] options)2
|
2 Android T中不存在(编译时可能无法解析)。 |
java.nio.file 请参阅自定义项
InvalidPathException
|
public InvalidPathException( String input, String reason)
public InvalidPathException( String input, String reason, int index)
public int getIndex()
public String getInput()
public String getMessage()
public String getReason()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
LinkOption
|
public static final LinkOption NOFOLLOW_LINKS
public static LinkOption valueOf(String name)
public static LinkOption[] values()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
LinkPermission
|
public LinkPermission(String name)
public LinkPermission(String name, String actions)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
NoSuchFileException
|
public NoSuchFileException(String file)
public NoSuchFileException( String file, String other, String reason)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
NotDirectoryException
|
public NotDirectoryException(String file)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
NotLinkException
|
public NotLinkException(String file)
public NotLinkException( String file, String other, String reason)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
Path
|
public abstract int compareTo(Path p0)
public boolean endsWith(String other)
public abstract boolean endsWith(Path p0)
public abstract boolean equals(Object p0)
public abstract Path getFileName()
public abstract FileSystem getFileSystem()
public abstract Path getName(int p0)
public abstract int getNameCount()
public abstract Path getParent()
public abstract Path getRoot()
public abstract int hashCode()
public abstract boolean isAbsolute()
public java.util.Iterator iterator()
public abstract Path normalize()
public static Path of( String first, String[] more)2
public static Path of(java.net.URI uri)2
public WatchKey register( WatchService watcher, WatchEvent.Kind[] events)
public abstract WatchKey register( WatchService p0, WatchEvent.Kind[] p1, WatchEvent.Modifier[] p2)
public abstract Path relativize(Path p0)
public Path resolve(String other)
public abstract Path resolve(Path p0)
public Path resolveSibling(String other)
public Path resolveSibling(Path other)
public boolean startsWith(String other)
public abstract boolean startsWith(Path p0)
public abstract Path subpath(int p0, int p1)
public abstract Path toAbsolutePath()
public java.io.File toFile()
public abstract Path toRealPath(LinkOption[] p0)
public abstract String toString()
public abstract java.net.URI toUri()
|
2 Android T中不存在(编译时可能无法解析)。 |
java.nio.file 请参阅自定义项
PathMatcher
|
public abstract boolean matches(Path p0)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
Paths
|
public static Path get(String first, String[] more)
public static Path get(java.net.URI uri)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
ProviderMismatchException
|
public ProviderMismatchException()
public ProviderMismatchException(String msg)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
ProviderNotFoundException
|
public ProviderNotFoundException()
public ProviderNotFoundException(String msg)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
ReadOnlyFileSystemException
|
public ReadOnlyFileSystemException()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
SecureDirectoryStream
|
public abstract void deleteDirectory(Object p0)
public abstract void deleteFile(Object p0)
public abstract FileAttributeView getFileAttributeView( Class p0)
public abstract FileAttributeView getFileAttributeView( Object p0, Class p1, LinkOption[] p2)
public abstract void move( Object p0, SecureDirectoryStream p1, Object p2)
public abstract SeekableByteChannel newByteChannel( Object p0, java.util.Set p1, FileAttribute[] p2)
public abstract SecureDirectoryStream newDirectoryStream( Object p0, LinkOption[] p1)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
SimpleFileVisitor
|
protected SimpleFileVisitor()
public FileVisitResult postVisitDirectory( Object dir, java.io.IOException exc)
public FileVisitResult preVisitDirectory( Object dir, BasicFileAttributes attrs)
public FileVisitResult visitFile( Object file, BasicFileAttributes attrs)
public FileVisitResult visitFileFailed( Object file, java.io.IOException exc)
|
完全实现的类。 |
java.nio.file 请参阅自定义项
StandardCopyOption
|
public static final StandardCopyOption ATOMIC_MOVE
public static final StandardCopyOption COPY_ATTRIBUTES
public static final StandardCopyOption REPLACE_EXISTING
public static StandardCopyOption valueOf( String name)
public static StandardCopyOption[] values()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
StandardOpenOption
|
public static final StandardOpenOption APPEND
public static final StandardOpenOption CREATE
public static final StandardOpenOption CREATE_NEW
public static final StandardOpenOption DELETE_ON_CLOSE
public static final StandardOpenOption DSYNC
public static final StandardOpenOption READ
public static final StandardOpenOption SPARSE
public static final StandardOpenOption SYNC
public static final StandardOpenOption TRUNCATE_EXISTING
public static final StandardOpenOption WRITE
public static StandardOpenOption valueOf( String name)
public static StandardOpenOption[] values()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
StandardWatchEventKinds
|
public static final WatchEvent.Kind ENTRY_CREATE
public static final WatchEvent.Kind ENTRY_DELETE
public static final WatchEvent.Kind ENTRY_MODIFY
public static final WatchEvent.Kind OVERFLOW
|
完全实现的类。 |
java.nio.file 请参阅自定义项
WatchEvent. Kind
|
public abstract String name()
public abstract Class type()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
WatchEvent. Modifier
|
public abstract String name()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
WatchEvent
|
public abstract Object context()
public abstract int count()
public abstract WatchEvent.Kind kind()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
WatchKey
|
public abstract void cancel()
public abstract boolean isValid()
public abstract java.util.List pollEvents()
public abstract boolean reset()
public abstract Watchable watchable()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
WatchService
|
public abstract void close()
public abstract WatchKey poll()
public abstract WatchKey poll( long p0, java.util.concurrent.TimeUnit p1)
public abstract WatchKey take()
|
完全实现的类。 |
java.nio.file 请参阅自定义项
Watchable
|
public abstract WatchKey register( WatchService p0, WatchEvent.Kind[] p1)
public abstract WatchKey register( WatchService p0, WatchEvent.Kind[] p1, WatchEvent.Modifier[] p2)
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
AclEntry. Builder
|
public AclEntry build()
public AclEntry.Builder setFlags( java.util.Set flags)
public AclEntry.Builder setFlags( AclEntryFlag[] flags)
public AclEntry.Builder setPermissions( java.util.Set perms)
public AclEntry.Builder setPermissions( AclEntryPermission[] perms)
public AclEntry.Builder setPrincipal( UserPrincipal who)
public AclEntry.Builder setType(AclEntryType type)
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
AclEntry
|
public boolean equals(Object ob)
public java.util.Set flags()
public int hashCode()
public static AclEntry.Builder newBuilder()
public static AclEntry.Builder newBuilder( AclEntry entry)
public java.util.Set permissions()
public UserPrincipal principal()
public String toString()
public AclEntryType type()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
AclEntryFlag
|
public static final AclEntryFlag DIRECTORY_INHERIT
public static final AclEntryFlag FILE_INHERIT
public static final AclEntryFlag INHERIT_ONLY
public static final AclEntryFlag NO_PROPAGATE_INHERIT
public static AclEntryFlag valueOf(String name)
public static AclEntryFlag[] values()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
AclEntryPermission
|
public static final AclEntryPermission ADD_FILE
public static final AclEntryPermission ADD_SUBDIRECTORY
public static final AclEntryPermission APPEND_DATA
public static final AclEntryPermission DELETE
public static final AclEntryPermission DELETE_CHILD
public static final AclEntryPermission EXECUTE
public static final AclEntryPermission LIST_DIRECTORY
public static final AclEntryPermission READ_ACL
public static final AclEntryPermission READ_ATTRIBUTES
public static final AclEntryPermission READ_DATA
public static final AclEntryPermission READ_NAMED_ATTRS
public static final AclEntryPermission SYNCHRONIZE
public static final AclEntryPermission WRITE_ACL
public static final AclEntryPermission WRITE_ATTRIBUTES
public static final AclEntryPermission WRITE_DATA
public static final AclEntryPermission WRITE_NAMED_ATTRS
public static final AclEntryPermission WRITE_OWNER
public static AclEntryPermission valueOf( String name)
public static AclEntryPermission[] values()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
AclEntryType
|
public static final AclEntryType ALARM
public static final AclEntryType ALLOW
public static final AclEntryType AUDIT
public static final AclEntryType DENY
public static AclEntryType valueOf(String name)
public static AclEntryType[] values()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
AclFileAttributeView
|
public abstract java.util.List getAcl()
public abstract String name()
public abstract void setAcl(java.util.List p0)
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
AttributeView
|
public abstract String name()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
BasicFileAttributeView
|
public abstract String name()
public abstract BasicFileAttributes readAttributes()
public abstract void setTimes( FileTime p0, FileTime p1, FileTime p2)
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
BasicFileAttributes
|
public abstract FileTime creationTime()
public abstract Object fileKey()
public abstract boolean isDirectory()
public abstract boolean isOther()
public abstract boolean isRegularFile()
public abstract boolean isSymbolicLink()
public abstract FileTime lastAccessTime()
public abstract FileTime lastModifiedTime()
public abstract long size()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
DosFileAttributeView
|
public abstract String name()
public abstract DosFileAttributes readAttributes()
public abstract void setArchive(boolean p0)
public abstract void setHidden(boolean p0)
public abstract void setReadOnly(boolean p0)
public abstract void setSystem(boolean p0)
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
DosFileAttributes
|
public abstract boolean isArchive()
public abstract boolean isHidden()
public abstract boolean isReadOnly()
public abstract boolean isSystem()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
FileAttribute
|
public abstract String name()
public abstract Object value()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
FileOwnerAttributeView
|
public abstract UserPrincipal getOwner()
public abstract String name()
public abstract void setOwner(UserPrincipal p0)
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
FileTime
|
public int compareTo(FileTime other)
public boolean equals(Object obj)
public static FileTime from( long value, java.util.concurrent.TimeUnit unit)
public static FileTime from( java.time.Instant instant)
public static FileTime fromMillis(long value)
public int hashCode()
public long to(java.util.concurrent.TimeUnit unit)
public java.time.Instant toInstant()
public long toMillis()
public String toString()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
PosixFileAttributeView
|
public abstract String name()
public abstract PosixFileAttributes readAttributes()
public abstract void setGroup(GroupPrincipal p0)
public abstract void setPermissions( java.util.Set p0)
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
PosixFileAttributes
|
public abstract GroupPrincipal group()
public abstract UserPrincipal owner()
public abstract java.util.Set permissions()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
PosixFilePermission
|
public static final PosixFilePermission GROUP_EXECUTE
public static final PosixFilePermission GROUP_READ
public static final PosixFilePermission GROUP_WRITE
public static final PosixFilePermission OTHERS_EXECUTE
public static final PosixFilePermission OTHERS_READ
public static final PosixFilePermission OTHERS_WRITE
public static final PosixFilePermission OWNER_EXECUTE
public static final PosixFilePermission OWNER_READ
public static final PosixFilePermission OWNER_WRITE
public static PosixFilePermission valueOf( String name)
public static PosixFilePermission[] values()
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
PosixFilePermissions
|
public static FileAttribute asFileAttribute( java.util.Set perms)
public static java.util.Set fromString(String perms)
public static String toString(java.util.Set perms)
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
UserDefinedFileAttributeView
|
public abstract void delete(String p0)
public abstract java.util.List list()
public abstract String name()
public abstract int read( String p0, java.nio.ByteBuffer p1)
public abstract int size(String p0)
public abstract int write( String p0, java.nio.ByteBuffer p1)
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
UserPrincipalLookupService
|
protected UserPrincipalLookupService()
public abstract GroupPrincipal lookupPrincipalByGroupName( String p0)
public abstract UserPrincipal lookupPrincipalByName( String p0)
|
完全实现的类。 |
java.nio. file.attribute 请参阅自定义项
UserPrincipalNotFoundException
|
public UserPrincipalNotFoundException(String name)
public String getName()
|
完全实现的类。 |
java.nio. file.spi 请参阅自定义项
FileSystemProvider
|
protected FileSystemProvider()
public abstract void checkAccess( Path p0, AccessMode[] p1)
public abstract void copy( Path p0, Path p1, CopyOption[] p2)
public abstract void createDirectory( Path p0, FileAttribute[] p1)
public void createLink(Path link, Path existing)
public void createSymbolicLink( Path link, Path target, FileAttribute[] attrs)
public abstract void delete(Path p0)
public boolean deleteIfExists(Path path)
public abstract FileAttributeView getFileAttributeView( Path p0, Class p1, LinkOption[] p2)
public abstract FileStore getFileStore(Path p0)
public abstract FileSystem getFileSystem( java.net.URI p0)
public abstract Path getPath(java.net.URI p0)
public abstract String getScheme()
public static java.util.List installedProviders()
public abstract boolean isHidden(Path p0)
public abstract boolean isSameFile(Path p0, Path p1)
public abstract void move( Path p0, Path p1, CopyOption[] p2)
public java.nio.channels.AsynchronousFileChannel newAsynchronousFileChannel( Path path, java.util.Set options, java.util.concurrent.ExecutorService executor, FileAttribute[] attrs)
public abstract java.nio.channels.SeekableByteChannel newByteChannel( Path p0, java.util.Set p1, FileAttribute[] p2)
public abstract DirectoryStream newDirectoryStream( Path p0, DirectoryStream.Filter p1)
public java.nio.channels.FileChannel newFileChannel( Path path, java.util.Set options, FileAttribute[] attrs)
public abstract FileSystem newFileSystem( java.net.URI p0, java.util.Map p1)
public FileSystem newFileSystem( Path path, java.util.Map env)
public java.io.InputStream newInputStream( Path path, OpenOption[] options)
public java.io.OutputStream newOutputStream( Path path, OpenOption[] options)
public abstract BasicFileAttributes readAttributes( Path p0, Class p1, LinkOption[] p2)
public abstract java.util.Map readAttributes( Path p0, String p1, LinkOption[] p2)
public Path readSymbolicLink(Path link)
public abstract void setAttribute( Path p0, String p1, Object p2, LinkOption[] p3)
|
完全实现的类。 |
java.nio. file.spi 请参阅自定义项
FileTypeDetector
|
protected FileTypeDetector()
public abstract String probeContentType(Path p0)
|
完全实现的类。 |
java.time 请参阅自定义项
Clock
|
protected Clock()
public boolean equals(Object obj)
public static Clock fixed( Instant fixedInstant, ZoneId zone)
public abstract ZoneId getZone()
public int hashCode()
public abstract Instant instant()
public long millis()
public static Clock offset( Clock baseClock, Duration offsetDuration)
public static Clock system(ZoneId zone)
public static Clock systemDefaultZone()
public static Clock systemUTC()
public static Clock tick( Clock baseClock, Duration tickDuration)
public static Clock tickMillis( ZoneId zone)2
public static Clock tickMinutes(ZoneId zone)
public static Clock tickSeconds(ZoneId zone)
public abstract Clock withZone(ZoneId p0)
|
2 Android T中不存在(编译时可能无法解析)。 |
java.time 请参阅自定义项
DateTimeException
|
public DateTimeException(String message)
public DateTimeException( String message, Throwable cause)
|
完全实现的类。 |
java.time 请参阅自定义项
DayOfWeek
|
public static final DayOfWeek FRIDAY
public static final DayOfWeek MONDAY
public static final DayOfWeek SATURDAY
public static final DayOfWeek SUNDAY
public static final DayOfWeek THURSDAY
public static final DayOfWeek TUESDAY
public static final DayOfWeek WEDNESDAY
public Temporal adjustInto(Temporal temporal)
public static DayOfWeek from( TemporalAccessor temporal)
public int get(TemporalField field)
public String getDisplayName( TextStyle style, java.util.Locale locale)
public long getLong(TemporalField field)
public int getValue()
public boolean isSupported(TemporalField field)
public DayOfWeek minus(long days)
public static DayOfWeek of(int dayOfWeek)
public DayOfWeek plus(long days)
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public static DayOfWeek valueOf(String name)
public static DayOfWeek[] values()
|
完全实现的类。 |
java.time 请参阅自定义项
Duration
|
public static final Duration ZERO
public Duration abs()
public Temporal addTo(Temporal temporal)
public static Duration between( Temporal startInclusive, Temporal endExclusive)
public int compareTo(Duration otherDuration)
public long dividedBy(Duration divisor)
public Duration dividedBy(long divisor)
public boolean equals(Object otherDuration)
public static Duration from(TemporalAmount amount)
public long get(TemporalUnit unit)
public int getNano()
public long getSeconds()
public java.util.List getUnits()
public int hashCode()
public boolean isNegative()
public boolean isZero()
public Duration minus( long amountToSubtract, TemporalUnit unit)
public Duration minus(Duration duration)
public Duration minusDays(long daysToSubtract)
public Duration minusHours(long hoursToSubtract)
public Duration minusMillis(long millisToSubtract)
public Duration minusMinutes(long minutesToSubtract)
public Duration minusNanos(long nanosToSubtract)
public Duration minusSeconds(long secondsToSubtract)
public Duration multipliedBy(long multiplicand)
public Duration negated()
public static Duration of( long amount, TemporalUnit unit)
public static Duration ofDays(long days)
public static Duration ofHours(long hours)
public static Duration ofMillis(long millis)
public static Duration ofMinutes(long minutes)
public static Duration ofNanos(long nanos) 以纳秒创建 Duration 对象
public static Duration ofSeconds(long seconds) 以秒创建 Duration 对象
public static Duration ofSeconds( long seconds, long nanoAdjustment) 以秒和纳秒调整创建 Duration 对象
public static Duration parse(CharSequence text) 解析文本字符串创建 Duration 对象
public Duration plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public Duration plus(Duration duration) 为 Duration 添加另一个 Duration
public Duration plusDays(long daysToAdd) 为 Duration 添加天数
public Duration plusHours(long hoursToAdd) 为 Duration 添加小时数
public Duration plusMillis(long millisToAdd) 为 Duration 添加毫秒数
public Duration plusMinutes(long minutesToAdd) 为 Duration 添加分钟数
public Duration plusNanos(long nanosToAdd) 为 Duration 添加纳秒数
public Duration plusSeconds(long secondsToAdd) 为 Duration 添加秒数
public Temporal subtractFrom(Temporal temporal) 从给定的 Temporal 对象中减去 Duration
public long toDays() 将 Duration 转换为天数 (包含小数部分)
public long toDaysPart() 将 Duration 转换为天数 (整数部分)
public long toHours() 将 Duration 转换为小时数 (包含小数部分)
public int toHoursPart() 将 Duration 转换为小时数 (整数部分)
public long toMillis()
public int toMillisPart() 将 Duration 转换为毫秒数 (整数部分)
public long toMinutes() 将 Duration 转换为分钟数 (包含小数部分)
public int toMinutesPart() 将 Duration 转换为分钟数 (整数部分)
public long toNanos() 将 Duration 转换为纳秒数
public int toNanosPart() 将 Duration 转换为纳秒数 (整数部分)
public long toSeconds() 将 Duration 转换为秒数 (包含小数部分)
public int toSecondsPart() 将 Duration 转换为秒数 (整数部分)
public String toString()
public Duration truncatedTo(TemporalUnit unit) 将 Duration 截断到指定的单位
public Duration withNanos(int nanoOfSecond) 设置 Duration 的纳秒部分
public Duration withSeconds(long seconds) 设置 Duration 的秒数部分
|
完全实现的类。 |
java.time 请参阅自定义项
Instant Instant 类
|
public static final Instant EPOCH 纪元时刻 (1970-01-01T00:00:00Z)
public static final Instant MAX Instant 的最大值
public static final Instant MIN Instant 的最小值
public Temporal adjustInto(Temporal temporal)
public OffsetDateTime atOffset(ZoneOffset offset) 将 Instant 转换为 OffsetDateTime
public ZonedDateTime atZone(ZoneId zone) 将 Instant 转换为 ZonedDateTime
public int compareTo(Instant otherInstant) 比较两个 Instant 对象
public boolean equals(Object otherInstant) 判断两个 Instant 对象是否相等
public static Instant from( TemporalAccessor temporal)
public int get(TemporalField field)
public long getEpochSecond() 获取自纪元以来的秒数
public long getLong(TemporalField field)
public int getNano()
public int hashCode()
public boolean isAfter(Instant otherInstant) 判断当前 Instant 是否在另一个 Instant 之后
public boolean isBefore(Instant otherInstant) 判断当前 Instant 是否在另一个 Instant 之前
public boolean isSupported(TemporalField field)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public Instant minus( long amountToSubtract, TemporalUnit unit)
public Instant minus( TemporalAmount amountToSubtract) 从 Instant 中减去指定的时间量
public Instant minusMillis(long millisToSubtract) 从 Instant 中减去毫秒数
public Instant minusNanos(long nanosToSubtract) 从 Instant 中减去纳秒数
public Instant minusSeconds(long secondsToSubtract) 从 Instant 中减去秒数
public static Instant now() 获取当前 Instant
public static Instant now(Clock clock) 使用给定的 Clock 获取当前 Instant
public static Instant ofEpochMilli(long epochMilli) 使用自纪元以来的毫秒数创建 Instant
public static Instant ofEpochSecond( long epochSecond) 使用自纪元以来的秒数创建 Instant
public static Instant ofEpochSecond( long epochSecond, long nanoAdjustment) 使用自纪元以来的秒数和纳秒调整创建 Instant
public static Instant parse(CharSequence text) 解析文本字符串创建 Instant 对象
public Instant plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public Instant plus(TemporalAmount amountToAdd) 为 Instant 添加指定的时间量
public Instant plusMillis(long millisToAdd) 为 Instant 添加毫秒数
public Instant plusNanos(long nanosToAdd) 为 Instant 添加纳秒数
public Instant plusSeconds(long secondsToAdd) 为 Instant 添加秒数
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public long toEpochMilli() 将 Instant 转换为自纪元以来的毫秒数
public String toString()
public Instant truncatedTo(TemporalUnit unit) 将 Instant 截断到指定的单位
public long until( Temporal endExclusive, TemporalUnit unit) 计算当前 Instant 到另一个 Temporal 对象之间的时间量
public Instant with(TemporalAdjuster adjuster) 使用 TemporalAdjuster 调整 Instant
public Instant with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
|
完全实现的类。 |
java.time 请参阅自定义项
LocalDate LocalDate 类
|
public static final LocalDate EPOCH 纪元日期 (1970-01-01)
public static final LocalDate MAX LocalDate 的最大值
public static final LocalDate MIN LocalDate 的最小值
public Temporal adjustInto(Temporal temporal)
public LocalDateTime atStartOfDay() 将 LocalDate 设置为一天的开始时间
public ZonedDateTime atStartOfDay(ZoneId zone) 将 LocalDate 设置为一天的开始时间,并指定时区
public LocalDateTime atTime(int hour, int minute) 创建 LocalDateTime 对象,指定小时和分钟
public LocalDateTime atTime( int hour, int minute, int second) 创建 LocalDateTime 对象,指定小时、分钟和秒
public LocalDateTime atTime( int hour, int minute, int second, int nanoOfSecond) 创建 LocalDateTime 对象,指定小时、分钟、秒和纳秒
public LocalDateTime atTime(LocalTime time) 使用 LocalTime 创建 LocalDateTime 对象
public OffsetDateTime atTime(OffsetTime time) 使用 OffsetTime 创建 OffsetDateTime 对象
public int compareTo(ChronoLocalDate other) 比较两个 LocalDate 对象
public java.util.stream.Stream datesUntil( LocalDate endExclusive)2 生成一个 LocalDate 流,直到指定的日期 (不包含)
public java.util.stream.Stream datesUntil( LocalDate endExclusive, Period step)2 生成一个 LocalDate 流,直到指定的日期 (不包含),并指定步长
public boolean equals(Object obj)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static LocalDate from( TemporalAccessor temporal)
public int get(TemporalField field)
public IsoChronology getChronology() 获取 LocalDate 的纪元
public int getDayOfMonth() 获取月份中的天数
public DayOfWeek getDayOfWeek() 获取星期几
public int getDayOfYear() 获取一年中的天数
public IsoEra getEra()234 获取纪元
public long getLong(TemporalField field)
public Month getMonth() 获取月份
public int getMonthValue() 获取月份值 (1-12)
public int getYear() 获取年份
public int hashCode()
public boolean isAfter(ChronoLocalDate other) 判断当前 LocalDate 是否在另一个 ChronoLocalDate 之后
public boolean isBefore(ChronoLocalDate other) 判断当前 LocalDate 是否在另一个 ChronoLocalDate 之前
public boolean isEqual(ChronoLocalDate other) 判断当前 LocalDate 是否与另一个 ChronoLocalDate 相等
public boolean isLeapYear() 判断是否是闰年
public boolean isSupported(TemporalField field)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public int lengthOfMonth() 获取月份的天数
public int lengthOfYear() 获取年份的天数
public LocalDate minus( long amountToSubtract, TemporalUnit unit)
public LocalDate minus( TemporalAmount amountToSubtract) 从 Instant 中减去指定的时间量
public LocalDate minusDays(long daysToSubtract) 从 LocalDate 中减去天数
public LocalDate minusMonths(long monthsToSubtract) 从 LocalDate 中减去月份
public LocalDate minusWeeks(long weeksToSubtract) 从 LocalDate 中减去星期数
public LocalDate minusYears(long yearsToSubtract) 从 LocalDate 中减去年份
public static LocalDate now() 获取当前 LocalDate
public static LocalDate now(Clock clock) 使用给定的 Clock 获取当前 LocalDate
public static LocalDate now(ZoneId zone) 使用给定的 ZoneId 获取当前 LocalDate
public static LocalDate of( int year, int month, int dayOfMonth) 创建 LocalDate 对象,指定年、月、日
public static LocalDate of( int year, Month month, int dayOfMonth) 创建 LocalDate 对象,指定年、月份枚举、日
public static LocalDate ofEpochDay(long epochDay) 使用自纪元以来的天数创建 LocalDate 对象
public static LocalDate ofInstant( Instant instant, ZoneId zone)2 使用 Instant 和 ZoneId 创建 LocalDate 对象
public static LocalDate ofYearDay( int year, int dayOfYear) 使用年份和一年中的天数创建 LocalDate 对象
public static LocalDate parse(CharSequence text) 解析文本字符串创建 LocalDate 对象
public static LocalDate parse( CharSequence text, DateTimeFormatter formatter) 使用 DateTimeFormatter 解析文本字符串创建 LocalDate 对象
public LocalDate plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public LocalDate plus(TemporalAmount amountToAdd) 为 LocalDate 添加指定的时间量
public LocalDate plusDays(long daysToAdd) 为 LocalDate 添加天数
public LocalDate plusMonths(long monthsToAdd) 为 LocalDate 添加月份
public LocalDate plusWeeks(long weeksToAdd) 为 LocalDate 添加星期数
public LocalDate plusYears(long yearsToAdd) 为 LocalDate 添加年份
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public long toEpochDay() 将 LocalDate 转换为自纪元以来的天数
public long toEpochSecond( LocalTime time, ZoneOffset offset)2 将 LocalDate 和 LocalTime 转换为自纪元以来的秒数
public String toString()
public long until( Temporal endExclusive, TemporalUnit unit) 计算当前 Instant 到另一个 Temporal 对象之间的时间量
public Period until( ChronoLocalDate endDateExclusive) 计算当前 LocalDate 到另一个 ChronoLocalDate 之间的时间段
public LocalDate with(TemporalAdjuster adjuster) 使用 TemporalAdjuster 调整 LocalDate
public LocalDate with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
public LocalDate withDayOfMonth(int dayOfMonth) 设置月份中的天数
public LocalDate withDayOfYear(int dayOfYear) 设置一年中的天数
public LocalDate withMonth(int month) 设置月份
public LocalDate withYear(int year) 设置年份
|
2 Android T中不存在(编译时可能无法解析)。 3 所有minSDK级别均不支持。 4 也支持协变返回类型。 |
java.time 请参阅自定义项
LocalDateTime LocalDateTime 类
|
public static final LocalDateTime MAX LocalDateTime 的最大值
public static final LocalDateTime MIN LocalDateTime 的最小值
public Temporal adjustInto(Temporal temporal)
public OffsetDateTime atOffset(ZoneOffset offset) 将 Instant 转换为 OffsetDateTime
public ZonedDateTime atZone(ZoneId zone) 将 Instant 转换为 ZonedDateTime
public int compareTo(ChronoLocalDateTime other) 比较两个 LocalDateTime 对象
public boolean equals(Object obj)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static LocalDateTime from( TemporalAccessor temporal)
public int get(TemporalField field)
public int getDayOfMonth() 获取月份中的天数
public DayOfWeek getDayOfWeek() 获取星期几
public int getDayOfYear() 获取一年中的天数
public int getHour() 获取小时
public long getLong(TemporalField field)
public int getMinute() 获取分钟
public Month getMonth() 获取月份
public int getMonthValue() 获取月份值 (1-12)
public int getNano()
public int getSecond() 获取秒
public int getYear() 获取年份
public int hashCode()
public boolean isAfter(ChronoLocalDateTime other) 判断当前 LocalDateTime 是否在另一个 ChronoLocalDateTime 之后
public boolean isBefore(ChronoLocalDateTime other) 判断当前 LocalDateTime 是否在另一个 ChronoLocalDateTime 之前
public boolean isEqual(ChronoLocalDateTime other) 判断当前 LocalDateTime 是否与另一个 ChronoLocalDateTime 相等
public boolean isSupported(TemporalField field)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public LocalDateTime minus( long amountToSubtract, TemporalUnit unit)
public LocalDateTime minus( TemporalAmount amountToSubtract) 从 Instant 中减去指定的时间量
public LocalDateTime minusDays(long days) 从 LocalDateTime 中减去天数
public LocalDateTime minusHours(long hours) 从 LocalDateTime 中减去小时数
public LocalDateTime minusMinutes(long minutes) 从 LocalDateTime 中减去分钟数
public LocalDateTime minusMonths(long months) 从 LocalDateTime 中减去月份
public LocalDateTime minusNanos(long nanos) 从 LocalDateTime 中减去纳秒数
public LocalDateTime minusSeconds(long seconds) 从 LocalDateTime 中减去秒数
public LocalDateTime minusWeeks(long weeks) 从 LocalDateTime 中减去星期数
public LocalDateTime minusYears(long years) 从 LocalDateTime 中减去年份
public static LocalDateTime now() 获取当前 LocalDateTime
public static LocalDateTime now(Clock clock) 使用给定的 Clock 获取当前 LocalDateTime
public static LocalDateTime now(ZoneId zone) 使用给定的 ZoneId 获取当前 LocalDateTime
public static LocalDateTime of( int year, int month, int dayOfMonth, int hour, int minute) 创建 LocalDateTime 对象,指定年、月、日、时、分
public static LocalDateTime of( int year, int month, int dayOfMonth, int hour, int minute, int second) 创建 LocalDateTime 对象,指定年、月、日、时、分、秒
public static LocalDateTime of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) 创建 LocalDateTime 对象,指定小时、分钟、秒和纳秒
public static LocalDateTime of( int year, Month month, int dayOfMonth, int hour, int minute) 创建 LocalDateTime 对象,指定年、月、日、时、分
public static LocalDateTime of( int year, Month month, int dayOfMonth, int hour, int minute, int second) 创建 LocalDateTime 对象,指定年、月、日、时、分、秒
public static LocalDateTime of( int year, Month month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) 创建 LocalDateTime 对象,指定小时、分钟、秒和纳秒
public static LocalDateTime of( LocalDate date, LocalTime time) 使用 LocalDate 和 LocalTime 创建 LocalDateTime 对象
public static LocalDateTime ofEpochSecond( long epochSecond, int nanoOfSecond, ZoneOffset offset) 使用自纪元以来的秒数、纳秒和 ZoneOffset 创建 LocalDateTime 对象
public static LocalDateTime ofInstant( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public static LocalDateTime parse(CharSequence text) 解析文本字符串创建 LocalDateTime 对象
public static LocalDateTime parse( CharSequence text, DateTimeFormatter formatter) 使用 DateTimeFormatter 解析文本字符串创建 LocalDate 对象
public LocalDateTime plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public LocalDateTime plus( TemporalAmount amountToAdd) 为 LocalDateTime 添加指定的时间量
public LocalDateTime plusDays(long days) 为 LocalDateTime 添加天数
public LocalDateTime plusHours(long hours) 为 LocalDateTime 添加小时数
public LocalDateTime plusMinutes(long minutes) 为 LocalDateTime 添加分钟数
public LocalDateTime plusMonths(long months) 为 LocalDateTime 添加月份
public LocalDateTime plusNanos(long nanos) 为 LocalDateTime 添加纳秒数
public LocalDateTime plusSeconds(long seconds) 为 LocalDateTime 添加秒数
public LocalDateTime plusWeeks(long weeks) 为 LocalDateTime 添加星期数
public LocalDateTime plusYears(long years) 为 LocalDateTime 添加年份
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public LocalDate toLocalDate() 获取 LocalDateTime 的 LocalDate 部分
public LocalTime toLocalTime() 获取 LocalDateTime 的 LocalTime 部分
public String toString()
public LocalDateTime truncatedTo(TemporalUnit unit) 将 LocalDateTime 截断到指定的单位
public long until( Temporal endExclusive, TemporalUnit unit) 计算当前 Instant 到另一个 Temporal 对象之间的时间量
public LocalDateTime with(TemporalAdjuster adjuster) 使用 TemporalAdjuster 调整 LocalDateTime
public LocalDateTime with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
public LocalDateTime withDayOfMonth(int dayOfMonth) 设置月份中的天数
public LocalDateTime withDayOfYear(int dayOfYear) 设置一年中的天数
public LocalDateTime withHour(int hour) 设置小时
public LocalDateTime withMinute(int minute) 设置分钟
public LocalDateTime withMonth(int month) 设置月份
public LocalDateTime withNano(int nanoOfSecond) 设置纳秒
public LocalDateTime withSecond(int second) 设置秒
public LocalDateTime withYear(int year) 设置年份
|
完全实现的类。 |
java.time 请参阅自定义项
LocalTime LocalTime 类
|
public static final LocalTime MAX LocalTime 的最大值
public static final LocalTime MIDNIGHT 午夜 (00:00)
public static final LocalTime MIN LocalTime 的最小值
public static final LocalTime NOON 中午 (12:00)
public Temporal adjustInto(Temporal temporal)
public LocalDateTime atDate(LocalDate date) 使用 LocalDate 创建 LocalDateTime 对象
public OffsetTime atOffset(ZoneOffset offset) 将 LocalTime 转换为 OffsetTime
public int compareTo(LocalTime other) 比较两个 LocalTime 对象
public boolean equals(Object obj)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static LocalTime from( TemporalAccessor temporal)
public int get(TemporalField field)
public int getHour() 获取小时
public long getLong(TemporalField field)
public int getMinute() 获取分钟
public int getNano()
public int getSecond() 获取秒
public int hashCode()
public boolean isAfter(LocalTime other) 判断当前 LocalTime 是否在另一个 LocalTime 之后
public boolean isBefore(LocalTime other) 判断当前 LocalTime 是否在另一个 LocalTime 之前
public boolean isSupported(TemporalField field)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public LocalTime minus( long amountToSubtract, TemporalUnit unit)
public LocalTime minus( TemporalAmount amountToSubtract) 从 Instant 中减去指定的时间量
public LocalTime minusHours(long hoursToSubtract) 从 LocalTime 中减去小时数
public LocalTime minusMinutes( long minutesToSubtract) 从 LocalTime 中减去分钟数
public LocalTime minusNanos(long nanosToSubtract) 从 LocalTime 中减去纳秒数
public LocalTime minusSeconds( long secondsToSubtract) 从 LocalTime 中减去秒数
public static LocalTime now() 获取当前 LocalTime
public static LocalTime now(Clock clock) 使用给定的 Clock 获取当前 LocalTime
public static LocalTime now(ZoneId zone) 使用给定的 ZoneId 获取当前 LocalTime
public static LocalTime of(int hour, int minute) 创建 LocalTime 对象,指定小时和分钟
public static LocalTime of( int hour, int minute, int second) 创建 LocalDateTime 对象,指定小时、分钟和秒
public static LocalTime of( int hour, int minute, int second, int nanoOfSecond) 创建 LocalDateTime 对象,指定小时、分钟、秒和纳秒
public static LocalTime ofInstant( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public static LocalTime ofNanoOfDay(long nanoOfDay) 使用一天中的纳秒数创建 LocalTime 对象
public static LocalTime ofSecondOfDay( long secondOfDay) 使用一天中的秒数创建 LocalTime 对象
public static LocalTime parse(CharSequence text) 解析文本字符串创建 LocalTime 对象
public static LocalTime parse( CharSequence text, DateTimeFormatter formatter) 使用 DateTimeFormatter 解析文本字符串创建 LocalDate 对象
public LocalTime plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public LocalTime plus(TemporalAmount amountToAdd) 为 LocalTime 添加指定的时间量
public LocalTime plusHours(long hoursToAdd) 为 LocalTime 添加小时数
public LocalTime plusMinutes(long minutesToAdd) 为 LocalTime 添加分钟数
public LocalTime plusNanos(long nanosToAdd) 为 LocalTime 添加纳秒数
public LocalTime plusSeconds(long secondstoAdd) 为 LocalTime 添加秒数
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public long toEpochSecond( LocalDate date, ZoneOffset offset) 使用 LocalDate 和 ZoneOffset 创建 OffsetTime 对象
public long toNanoOfDay() 将 LocalTime 转换为一天中的纳秒数
public int toSecondOfDay() 将 LocalTime 转换为一天中的秒数
public String toString()
public LocalTime truncatedTo(TemporalUnit unit) 将 LocalTime 截断到指定的单位
public long until( Temporal endExclusive, TemporalUnit unit) 计算当前 Instant 到另一个 Temporal 对象之间的时间量
public LocalTime with(TemporalAdjuster adjuster) 使用 TemporalAdjuster 调整 LocalTime
public LocalTime with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
public LocalTime withHour(int hour) 设置小时
public LocalTime withMinute(int minute) 设置分钟
public LocalTime withNano(int nanoOfSecond) 设置纳秒
public LocalTime withSecond(int second) 设置秒
|
完全实现的类。 |
java.time 请参阅自定义项
Month Month 类 (月份)
|
public static final Month APRIL 四月
public static final Month AUGUST 八月
public static final Month DECEMBER 十二月
public static final Month FEBRUARY 二月
public static final Month JANUARY 一月
public static final Month JULY 七月
public static final Month JUNE 六月
public static final Month MARCH 三月
public static final Month MAY 五月
public static final Month NOVEMBER 十一月
public static final Month OCTOBER 十月
public static final Month SEPTEMBER 九月
public Temporal adjustInto(Temporal temporal)
public int firstDayOfYear(boolean leapYear) 获取一年中该月份的第一天
public Month firstMonthOfQuarter() 获取该月份所在的季度的第一个月份
public static Month from(TemporalAccessor temporal) 从 TemporalAccessor 获取月份
public int get(TemporalField field)
public String getDisplayName( TextStyle style, java.util.Locale locale)
public long getLong(TemporalField field)
public int getValue()
public boolean isSupported(TemporalField field)
public int length(boolean leapYear) 获取该月份的天数 (考虑闰年)
public int maxLength() 获取该月份的最大天数
public int minLength() 获取该月份的最小天数
public Month minus(long months) 从月份中减去月份数
public static Month of(int month) 获取指定月份的枚举值
public Month plus(long months) 为月份添加月份数
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public static Month valueOf(String name) 根据名称获取月份枚举值
public static Month[] values() 获取所有月份枚举值的数组
|
完全实现的类。 |
java.time 请参阅自定义项
MonthDay MonthDay 类
|
public Temporal adjustInto(Temporal temporal)
public LocalDate atYear(int year) 将 MonthDay 设置为指定的年份
public int compareTo(MonthDay other) 比较两个 MonthDay 对象
public boolean equals(Object obj)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static MonthDay from( TemporalAccessor temporal)
public int get(TemporalField field)
public int getDayOfMonth() 获取月份中的天数
public long getLong(TemporalField field)
public Month getMonth() 获取月份
public int getMonthValue() 获取月份值 (1-12)
public int hashCode()
public boolean isAfter(MonthDay other) 判断当前 MonthDay 是否在另一个 MonthDay 之后
public boolean isBefore(MonthDay other) 判断当前 MonthDay 是否在另一个 MonthDay 之前
public boolean isSupported(TemporalField field)
public boolean isValidYear(int year) 判断该月份和天数是否在指定的年份有效
public static MonthDay now() 获取当前 MonthDay
public static MonthDay now(Clock clock) 使用给定的 Clock 获取当前 MonthDay
public static MonthDay now(ZoneId zone) 使用给定的 ZoneId 获取当前 MonthDay
public static MonthDay of(int month, int dayOfMonth) 创建 MonthDay 对象,指定月和日
public static MonthDay of( Month month, int dayOfMonth) 创建 MonthDay 对象,指定月份枚举和日
public static MonthDay parse(CharSequence text) 解析文本字符串创建 MonthDay 对象
public static MonthDay parse( CharSequence text, DateTimeFormatter formatter) 使用 DateTimeFormatter 解析文本字符串创建 LocalDate 对象
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public String toString()
public MonthDay with(Month month) 设置月份
public MonthDay withDayOfMonth(int dayOfMonth) 设置月份中的天数
public MonthDay withMonth(int month) 设置月份
|
完全实现的类。 |
java.time 请参阅自定义项
OffsetDateTime OffsetDateTime 类
|
public static final OffsetDateTime MAX OffsetDateTime 的最大值
public static final OffsetDateTime MIN OffsetDateTime 的最小值
public Temporal adjustInto(Temporal temporal)
public ZonedDateTime atZoneSameInstant(ZoneId zone) 将 OffsetDateTime 转换为 ZonedDateTime,保持相同的瞬间
public ZonedDateTime atZoneSimilarLocal(ZoneId zone) 将 OffsetDateTime 转换为 ZonedDateTime,保持相似的本地时间
public int compareTo(OffsetDateTime other) 比较两个 OffsetDateTime 对象
public boolean equals(Object obj)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static OffsetDateTime from( TemporalAccessor temporal)
public int get(TemporalField field)
public int getDayOfMonth() 获取月份中的天数
public DayOfWeek getDayOfWeek() 获取星期几
public int getDayOfYear() 获取一年中的天数
public int getHour() 获取小时
public long getLong(TemporalField field)
public int getMinute() 获取分钟
public Month getMonth() 获取月份
public int getMonthValue() 获取月份值 (1-12)
public int getNano()
public ZoneOffset getOffset() 获取 ZoneOffset
public int getSecond() 获取秒
public int getYear() 获取年份
public int hashCode()
public boolean isAfter(OffsetDateTime other) 判断当前 OffsetDateTime 是否在另一个 OffsetDateTime 之后
public boolean isBefore(OffsetDateTime other) 判断当前 OffsetDateTime 是否在另一个 OffsetDateTime 之前
public boolean isEqual(OffsetDateTime other) 判断当前 OffsetDateTime 是否与另一个 OffsetDateTime 相等
public boolean isSupported(TemporalField field)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public OffsetDateTime minus( long amountToSubtract, TemporalUnit unit)
public OffsetDateTime minus( TemporalAmount amountToSubtract) 从 Instant 中减去指定的时间量
public OffsetDateTime minusDays(long days) 从 OffsetDateTime 中减去天数
public OffsetDateTime minusHours(long hours) 从 OffsetDateTime 中减去小时数
public OffsetDateTime minusMinutes(long minutes) 从 OffsetDateTime 中减去分钟数
public OffsetDateTime minusMonths(long months) 减去月份
public OffsetDateTime minusNanos(long nanos) 减去纳秒
public OffsetDateTime minusSeconds(long seconds) 减去秒
public OffsetDateTime minusWeeks(long weeks) 减去周
public OffsetDateTime minusYears(long years) 减去年
public static OffsetDateTime now() 获取当前时间
public static OffsetDateTime now(Clock clock) 使用指定时钟获取当前时间
public static OffsetDateTime now(ZoneId zone) 使用指定时区获取当前时间
public static OffsetDateTime of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) 使用自纪元以来的秒数、纳秒和 ZoneOffset 创建 LocalDateTime 对象
public static OffsetDateTime of( LocalDate date, LocalTime time, ZoneOffset offset) 使用日期、时间和偏移量创建 OffsetDateTime 对象
public static OffsetDateTime of( LocalDateTime dateTime, ZoneOffset offset) 使用日期时间和偏移量创建 OffsetDateTime 对象
public static OffsetDateTime ofInstant( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public static OffsetDateTime parse( CharSequence text) 解析文本字符串为 OffsetDateTime 对象
public static OffsetDateTime parse( CharSequence text, DateTimeFormatter formatter) 使用 DateTimeFormatter 解析文本字符串创建 LocalDate 对象
public OffsetDateTime plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public OffsetDateTime plus( TemporalAmount amountToAdd) 为 LocalDateTime 添加指定的时间量
public OffsetDateTime plusDays(long days) 加上天数
public OffsetDateTime plusHours(long hours) 加上小时数
public OffsetDateTime plusMinutes(long minutes) 加上分钟数
public OffsetDateTime plusMonths(long months) 加上月份
public OffsetDateTime plusNanos(long nanos) 加上纳秒
public OffsetDateTime plusSeconds(long seconds) 加上秒数
public OffsetDateTime plusWeeks(long weeks) 加上周数
public OffsetDateTime plusYears(long years) 加上年数
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public static java.util.Comparator timeLineOrder() 获取时间线顺序比较器
public long toEpochSecond() 转换为自纪元以来的秒数
public Instant toInstant() 转换为 Instant 对象
public LocalDate toLocalDate() 获取 LocalDateTime 的 LocalDate 部分
public LocalDateTime toLocalDateTime() 转换为 LocalDateTime 对象
public LocalTime toLocalTime() 获取 LocalDateTime 的 LocalTime 部分
public OffsetTime toOffsetTime() 转换为 OffsetTime 对象
public String toString()
public ZonedDateTime toZonedDateTime() 转换为 ZonedDateTime 对象
public OffsetDateTime truncatedTo(TemporalUnit unit) 截断到指定单位
public long until( Temporal endExclusive, TemporalUnit unit) 计算当前 Instant 到另一个 Temporal 对象之间的时间量
public OffsetDateTime with( TemporalAdjuster adjuster) 使用 TemporalAdjuster 进行调整
public OffsetDateTime with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
public OffsetDateTime withDayOfMonth(int dayOfMonth) 设置月份中的天数
public OffsetDateTime withDayOfYear(int dayOfYear) 设置一年中的天数
public OffsetDateTime withHour(int hour) 设置小时
public OffsetDateTime withMinute(int minute) 设置分钟
public OffsetDateTime withMonth(int month) 设置月份
public OffsetDateTime withNano(int nanoOfSecond) 设置纳秒
public OffsetDateTime withOffsetSameInstant( ZoneOffset offset) 保持瞬间不变,更改偏移量
public OffsetDateTime withOffsetSameLocal( ZoneOffset offset) 保持瞬间不变,更改偏移量
public OffsetDateTime withSecond(int second) 设置秒
public OffsetDateTime withYear(int year) 设置年份
|
完全实现的类。 |
java.time 请参阅自定义项
OffsetTime 带偏移量的时间
|
public static final OffsetTime MAX 最大 OffsetTime 值
public static final OffsetTime MIN 最小 OffsetTime 值
public Temporal adjustInto(Temporal temporal)
public OffsetDateTime atDate(LocalDate date) 将 OffsetTime 与 LocalDate 组合成 OffsetDateTime
public int compareTo(OffsetTime other) 与另一个 OffsetTime 对象比较
public boolean equals(Object obj)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static OffsetTime from( TemporalAccessor temporal)
public int get(TemporalField field)
public int getHour() 获取小时
public long getLong(TemporalField field)
public int getMinute() 获取分钟
public int getNano()
public ZoneOffset getOffset() 获取 ZoneOffset
public int getSecond() 获取秒
public int hashCode()
public boolean isAfter(OffsetTime other) 是否晚于另一个 OffsetTime 对象
public boolean isBefore(OffsetTime other) 是否早于另一个 OffsetTime 对象
public boolean isEqual(OffsetTime other) 是否等于另一个 OffsetTime 对象
public boolean isSupported(TemporalField field)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public OffsetTime minus( long amountToSubtract, TemporalUnit unit)
public OffsetTime minus( TemporalAmount amountToSubtract) 从 Instant 中减去指定的时间量
public OffsetTime minusHours(long hours) 减去小时数
public OffsetTime minusMinutes(long minutes) 减去分钟数
public OffsetTime minusNanos(long nanos) 减去纳秒
public OffsetTime minusSeconds(long seconds) 减去秒数
public static OffsetTime now() 获取当前带偏移量的时间
public static OffsetTime now(Clock clock) 使用指定时钟获取当前带偏移量的时间
public static OffsetTime now(ZoneId zone) 使用指定时区获取当前带偏移量的时间
public static OffsetTime of( int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) 使用自纪元以来的秒数、纳秒和 ZoneOffset 创建 LocalDateTime 对象
public static OffsetTime of( LocalTime time, ZoneOffset offset) 使用时间和偏移量创建 OffsetTime 对象
public static OffsetTime ofInstant( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public static OffsetTime parse(CharSequence text) 解析文本字符串为 OffsetTime 对象
public static OffsetTime parse( CharSequence text, DateTimeFormatter formatter) 使用 DateTimeFormatter 解析文本字符串创建 LocalDate 对象
public OffsetTime plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public OffsetTime plus(TemporalAmount amountToAdd) 加上时间量
public OffsetTime plusHours(long hours) 加上小时数
public OffsetTime plusMinutes(long minutes) 加上分钟数
public OffsetTime plusNanos(long nanos) 加上纳秒
public OffsetTime plusSeconds(long seconds) 加上秒数
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public long toEpochSecond( LocalDate date)2
public LocalTime toLocalTime() 获取 LocalDateTime 的 LocalTime 部分
public String toString()
public OffsetTime truncatedTo(TemporalUnit unit) 截断到指定单位
public long until( Temporal endExclusive, TemporalUnit unit) 计算当前 Instant 到另一个 Temporal 对象之间的时间量
public OffsetTime with(TemporalAdjuster adjuster) 使用 TemporalAdjuster 进行调整
public OffsetTime with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
public OffsetTime withHour(int hour) 设置小时
public OffsetTime withMinute(int minute) 设置分钟
public OffsetTime withNano(int nanoOfSecond) 设置纳秒
public OffsetTime withOffsetSameInstant( ZoneOffset offset) 保持瞬间不变,更改偏移量
public OffsetTime withOffsetSameLocal( ZoneOffset offset) 保持瞬间不变,更改偏移量
public OffsetTime withSecond(int second) 设置秒
|
2 Android T中不存在(编译时可能无法解析)。 |
java.time 请参阅自定义项
Period 时间段
|
public static final Period ZERO 零时间段
public Temporal addTo(Temporal temporal)
public static Period between( LocalDate startDateInclusive, LocalDate endDateExclusive) 计算两个日期之间的时间段
public boolean equals(Object obj)
public static Period from(TemporalAmount amount) 从时间量创建 Period 对象
public long get(TemporalUnit unit)
public IsoChronology getChronology() 获取 LocalDate 的纪元
public int getDays() 获取天数
public int getMonths() 获取月份数
public java.util.List getUnits()
public int getYears() 获取年数
public int hashCode()
public boolean isNegative()
public boolean isZero()
public Period minus(TemporalAmount amountToSubtract) 减去时间量
public Period minusDays(long daysToSubtract) 减去天数
public Period minusMonths(long monthsToSubtract) 减去月份数
public Period minusYears(long yearsToSubtract) 减去年数
public Period multipliedBy(int scalar) 乘以标量
public Period negated() 取反
public Period normalized() 标准化
public static Period of( int years, int months, int days) 创建指定年、月、日的时间段
public static Period ofDays(int days) 创建指定天数的时间段
public static Period ofMonths(int months) 创建指定月份数的时间段
public static Period ofWeeks(int weeks) 创建指定周数的时间段
public static Period ofYears(int years) 创建指定年数的时间段
public static Period parse(CharSequence text) 解析文本字符串为 Period 对象
public Period plus(TemporalAmount amountToAdd) 加上时间量
public Period plusDays(long daysToAdd) 加上天数
public Period plusMonths(long monthsToAdd) 加上月份数
public Period plusYears(long yearsToAdd) 加上年数
public Temporal subtractFrom(Temporal temporal) 从给定的 Temporal 对象中减去 Duration
public String toString()
public long toTotalMonths() 转换为总月份数
public Period withDays(int days) 设置天数
public Period withMonths(int months) 设置月份数
public Period withYears(int years) 设置年数
|
完全实现的类。 |
java.time 请参阅自定义项
Year 年份
|
public static final int MAX_VALUE 最大年份值
public static final int MIN_VALUE 最小年份值
public Temporal adjustInto(Temporal temporal)
public LocalDate atDay(int dayOfYear) 获取指定一年中的某一天的LocalDate
public YearMonth atMonth(int month) 获取指定月份的YearMonth
public YearMonth atMonth(Month month) 获取指定月份的YearMonth
public LocalDate atMonthDay(MonthDay monthDay) 获取指定月份和日子的LocalDate
public int compareTo(Year other) 与另一个Year对象比较
public boolean equals(Object obj)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static Year from(TemporalAccessor temporal) 从TemporalAccessor创建Year对象
public int get(TemporalField field)
public long getLong(TemporalField field)
public int getValue()
public int hashCode()
public boolean isAfter(Year other) 是否晚于另一个Year对象
public boolean isBefore(Year other) 是否早于另一个Year对象
public boolean isLeap() 是否为闰年
public static boolean isLeap(long year) 指定年份是否为闰年
public boolean isSupported(TemporalField field)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public boolean isValidMonthDay(MonthDay monthDay) 指定的月份和日期是否有效
public int length() 年份长度(天数)
public Year minus( long amountToSubtract, TemporalUnit unit)
public Year minus(TemporalAmount amountToSubtract) 减去时间量
public Year minusYears(long yearsToSubtract) 减少年份
public static Year now() 获取当前年份
public static Year now(Clock clock) 使用指定时钟获取当前年份
public static Year now(ZoneId zone) 使用指定时区获取当前年份
public static Year of(int isoYear) 创建指定年份的Year对象
public static Year parse(CharSequence text) 解析文本字符串为Year对象
public static Year parse( CharSequence text, DateTimeFormatter formatter) 使用 DateTimeFormatter 解析文本字符串创建 LocalDate 对象
public Year plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public Year plus(TemporalAmount amountToAdd) 加上时间量
public Year plusYears(long yearsToAdd) 加上年份
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public String toString()
public long until( Temporal endExclusive, TemporalUnit unit) 计算当前 Instant 到另一个 Temporal 对象之间的时间量
public Year with(TemporalAdjuster adjuster) 使用TemporalAdjuster进行调整
public Year with(TemporalField field, long newValue) 设置指定字段的值
|
完全实现的类。 |
java.time 请参阅自定义项
YearMonth 年月
|
public Temporal adjustInto(Temporal temporal)
public LocalDate atDay(int dayOfMonth) 获取指定月份中的某一天的LocalDate
public LocalDate atEndOfMonth() 获取月末的LocalDate
public int compareTo(YearMonth other) 与另一个YearMonth对象比较
public boolean equals(Object obj)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static YearMonth from( TemporalAccessor temporal)
public int get(TemporalField field)
public long getLong(TemporalField field)
public Month getMonth() 获取月份
public int getMonthValue() 获取月份值 (1-12)
public int getYear() 获取年份
public int hashCode()
public boolean isAfter(YearMonth other) 是否晚于另一个YearMonth对象
public boolean isBefore(YearMonth other) 是否早于另一个YearMonth对象
public boolean isLeapYear() 判断是否是闰年
public boolean isSupported(TemporalField field)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public boolean isValidDay(int dayOfMonth) 指定的日期是否有效
public int lengthOfMonth() 获取月份的天数
public int lengthOfYear() 获取年份的天数
public YearMonth minus( long amountToSubtract, TemporalUnit unit)
public YearMonth minus( TemporalAmount amountToSubtract) 从 Instant 中减去指定的时间量
public YearMonth minusMonths(long monthsToSubtract) 减去月份数
public YearMonth minusYears(long yearsToSubtract) 减少年份
public static YearMonth now() 获取当前年月
public static YearMonth now(Clock clock) 使用指定时钟获取当前年月
public static YearMonth now(ZoneId zone) 使用指定时区获取当前年月
public static YearMonth of(int year, int month) 创建指定年月
public static YearMonth of(int year, Month month) 创建指定年月
public static YearMonth parse(CharSequence text) 解析文本字符串为YearMonth对象
public static YearMonth parse( CharSequence text, DateTimeFormatter formatter) 使用 DateTimeFormatter 解析文本字符串创建 LocalDate 对象
public YearMonth plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public YearMonth plus(TemporalAmount amountToAdd) 加上时间量
public YearMonth plusMonths(long monthsToAdd) 加上月份数
public YearMonth plusYears(long yearsToAdd) 加上年份
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public String toString()
public long until( Temporal endExclusive, TemporalUnit unit) 计算当前 Instant 到另一个 Temporal 对象之间的时间量
public YearMonth with(TemporalAdjuster adjuster) 使用TemporalAdjuster进行调整
public YearMonth with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
public YearMonth withMonth(int month) 设置月份
public YearMonth withYear(int year) 设置年份
|
完全实现的类。 |
java.time 请参阅自定义项
ZoneId 时区ID
|
public static final java.util.Map SHORT_IDS 时区ID简写映射
public boolean equals(Object obj)
public static ZoneId from(TemporalAccessor temporal) 从TemporalAccessor创建ZoneId对象
public static java.util.Set getAvailableZoneIds() 获取所有可用时区ID
public String getDisplayName( TextStyle style, java.util.Locale locale)
public abstract String getId() 获取时区ID
public abstract ZoneRules getRules() 获取时区规则
public int hashCode()
public ZoneId normalized() 标准化时区ID
public static ZoneId of(String zoneId) 创建指定时区的ZoneId对象
public static ZoneId of( String zoneId, java.util.Map aliasMap) 使用别名映射创建ZoneId对象
public static ZoneId ofOffset( String prefix, ZoneOffset offset) 创建指定偏移量的ZoneId对象
public static ZoneId systemDefault() 获取系统默认时区
public String toString()
|
完全实现的类。 |
java.time 请参阅自定义项
ZoneOffset 时区偏移量
|
public static final ZoneOffset MAX 最大时区偏移量
public static final ZoneOffset MIN 最小时区偏移量
public static final ZoneOffset UTC UTC时区偏移量
public Temporal adjustInto(Temporal temporal)
public int compareTo(ZoneOffset other) 与另一个ZoneOffset对象比较
public boolean equals(Object obj)
public static ZoneOffset from( TemporalAccessor temporal)
public int get(TemporalField field)
public String getId() 获取时区偏移量ID
public long getLong(TemporalField field)
public ZoneRules getRules() 获取时区规则
public int getTotalSeconds() 获取总秒数
public int hashCode()
public boolean isSupported(TemporalField field)
public static ZoneOffset of(String offsetId) 创建指定ID的ZoneOffset对象
public static ZoneOffset ofHours(int hours) 创建指定小时数的ZoneOffset对象
public static ZoneOffset ofHoursMinutes( int hours, int minutes) 创建指定小时和分钟数的ZoneOffset对象
public static ZoneOffset ofHoursMinutesSeconds( int hours, int minutes, int seconds) 创建指定小时、分钟和秒数的ZoneOffset对象
public static ZoneOffset ofTotalSeconds( int totalSeconds) 创建指定总秒数的ZoneOffset对象
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public String toString()
|
完全实现的类。 |
java.time 请参阅自定义项
ZonedDateTime 带时区的日期时间
|
public boolean equals(Object obj)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static ZonedDateTime from( TemporalAccessor temporal)
public int get(TemporalField field)
public int getDayOfMonth() 获取月份中的天数
public DayOfWeek getDayOfWeek() 获取星期几
public int getDayOfYear() 获取一年中的天数
public int getHour() 获取小时
public long getLong(TemporalField field)
public int getMinute() 获取分钟
public Month getMonth() 获取月份
public int getMonthValue() 获取月份值 (1-12)
public int getNano()
public ZoneOffset getOffset() 获取 ZoneOffset
public int getSecond() 获取秒
public int getYear() 获取年份
public ZoneId getZone() 获取时区
public int hashCode()
public boolean isSupported(TemporalField field)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public ZonedDateTime minus( long amountToSubtract, TemporalUnit unit)
public ZonedDateTime minus( TemporalAmount amountToSubtract) 从 Instant 中减去指定的时间量
public ZonedDateTime minusDays(long days) 减去天数
public ZonedDateTime minusHours(long hours) 减去小时数
public ZonedDateTime minusMinutes(long minutes) 减去分钟数
public ZonedDateTime minusMonths(long months) 减去月份
public ZonedDateTime minusNanos(long nanos) 减去纳秒
public ZonedDateTime minusSeconds(long seconds) 减去秒数
public ZonedDateTime minusWeeks(long weeks) 减去周数
public ZonedDateTime minusYears(long years) 减去年数
public static ZonedDateTime now() 获取当前带时区的日期时间
public static ZonedDateTime now(Clock clock) 使用指定时钟获取当前带时区的日期时间
public static ZonedDateTime now(ZoneId zone) 使用指定时区获取当前带时区的日期时间
public static ZonedDateTime of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneId zone) 创建指定时区的ZonedDateTime对象
public static ZonedDateTime of( LocalDate date, LocalTime time, ZoneId zone) 创建指定日期、时间和时区的ZonedDateTime对象
public static ZonedDateTime of( LocalDateTime localDateTime, ZoneId zone) 创建指定日期时间和时区的ZonedDateTime对象
public static ZonedDateTime ofInstant( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public static ZonedDateTime ofInstant( LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) 创建指定时区的ZonedDateTime对象
public static ZonedDateTime ofLocal( LocalDateTime localDateTime, ZoneId zone, ZoneOffset preferredOffset)
public static ZonedDateTime ofStrict( LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) 创建指定时区的ZonedDateTime对象
public static ZonedDateTime parse(CharSequence text) 解析文本字符串为ZonedDateTime对象
public static ZonedDateTime parse( CharSequence text, DateTimeFormatter formatter) 使用 DateTimeFormatter 解析文本字符串创建 LocalDate 对象
public ZonedDateTime plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public ZonedDateTime plus( TemporalAmount amountToAdd) 为 LocalDateTime 添加指定的时间量
public ZonedDateTime plusDays(long days) 加上天数
public ZonedDateTime plusHours(long hours) 加上小时数
public ZonedDateTime plusMinutes(long minutes) 加上分钟数
public ZonedDateTime plusMonths(long months) 加上月份
public ZonedDateTime plusNanos(long nanos) 加上纳秒
public ZonedDateTime plusSeconds(long seconds) 加上秒数
public ZonedDateTime plusWeeks(long weeks) 加上周数
public ZonedDateTime plusYears(long years) 加上年数
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public LocalDate toLocalDate() 获取 LocalDateTime 的 LocalDate 部分
public LocalDateTime toLocalDateTime() 转换为 LocalDateTime 对象
public LocalTime toLocalTime() 获取 LocalDateTime 的 LocalTime 部分
public OffsetDateTime toOffsetDateTime() 转换为OffsetDateTime对象
public String toString()
public ZonedDateTime truncatedTo(TemporalUnit unit) 截断到指定单位
public long until( Temporal endExclusive, TemporalUnit unit) 计算当前 Instant 到另一个 Temporal 对象之间的时间量
public ZonedDateTime with(TemporalAdjuster adjuster) 使用TemporalAdjuster进行调整
public ZonedDateTime with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
public ZonedDateTime withDayOfMonth(int dayOfMonth) 设置月份中的天数
public ZonedDateTime withDayOfYear(int dayOfYear) 设置一年中的天数
public ZonedDateTime withEarlierOffsetAtOverlap() 在重叠时选择较早的偏移量
public ZonedDateTime withFixedOffsetZone() 设置为固定偏移量时区
public ZonedDateTime withHour(int hour) 设置小时
public ZonedDateTime withLaterOffsetAtOverlap() 在重叠时选择较晚的偏移量
public ZonedDateTime withMinute(int minute) 设置分钟
public ZonedDateTime withMonth(int month) 设置月份
public ZonedDateTime withNano(int nanoOfSecond) 设置纳秒
public ZonedDateTime withSecond(int second) 设置秒
public ZonedDateTime withYear(int year) 设置年份
public ZonedDateTime withZoneSameInstant( ZoneId zone) 保持瞬间不变,更改时区
public ZonedDateTime withZoneSameLocal(ZoneId zone) 保持本地时间不变,更改时区
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
AbstractChronology 抽象时间系统
|
protected AbstractChronology()
public int compareTo(Chronology other) 与另一个时间系统比较
public boolean equals(Object obj)
public int hashCode()
public ChronoLocalDate resolveDate( java.util.Map fieldValues, ResolverStyle resolverStyle) 解析日期
public String toString()
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
ChronoLocalDate 时间系统中的日期
|
public Temporal adjustInto(Temporal temporal)
public ChronoLocalDateTime atTime( LocalTime localTime) 组合时间
public int compareTo(ChronoLocalDate other) 比较两个 LocalDate 对象
public abstract boolean equals(Object p0)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static ChronoLocalDate from( TemporalAccessor temporal)
public abstract Chronology getChronology() 获取时间系统
public Era getEra() 获取纪元
public abstract int hashCode()
public boolean isAfter(ChronoLocalDate other) 判断当前 LocalDate 是否在另一个 ChronoLocalDate 之后
public boolean isBefore(ChronoLocalDate other) 判断当前 LocalDate 是否在另一个 ChronoLocalDate 之前
public boolean isEqual(ChronoLocalDate other) 判断当前 LocalDate 是否与另一个 ChronoLocalDate 相等
public boolean isLeapYear() 判断是否是闰年
public boolean isSupported(TemporalField field)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public abstract int lengthOfMonth() 获取月份长度
public int lengthOfYear() 获取年份的天数
public ChronoLocalDate minus( long amountToSubtract, TemporalUnit unit)
public ChronoLocalDate minus(TemporalAmount amount)
public ChronoLocalDate plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public ChronoLocalDate plus(TemporalAmount amount)
public Object query(TemporalQuery query)
public static java.util.Comparator timeLineOrder() 获取时间线顺序比较器
public long toEpochDay() 将 LocalDate 转换为自纪元以来的天数
public abstract String toString()
public abstract long until( Temporal p0, TemporalUnit p1)
public abstract ChronoPeriod until( ChronoLocalDate p0)
public ChronoLocalDate with( TemporalAdjuster adjuster) 使用 TemporalAdjuster 进行调整
public ChronoLocalDate with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
ChronoLocalDateTime
|
public Temporal adjustInto(Temporal temporal)
public abstract ChronoZonedDateTime atZone( ZoneId p0)
public int compareTo(ChronoLocalDateTime other) 比较两个 LocalDateTime 对象
public abstract boolean equals(Object p0)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static ChronoLocalDateTime from( TemporalAccessor temporal)
public Chronology getChronology()
public abstract int hashCode()
public boolean isAfter(ChronoLocalDateTime other) 判断当前 LocalDateTime 是否在另一个 ChronoLocalDateTime 之后
public boolean isBefore(ChronoLocalDateTime other) 判断当前 LocalDateTime 是否在另一个 ChronoLocalDateTime 之前
public boolean isEqual(ChronoLocalDateTime other) 判断当前 LocalDateTime 是否与另一个 ChronoLocalDateTime 相等
public abstract boolean isSupported( TemporalField p0)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public ChronoLocalDateTime minus( long amountToSubtract, TemporalUnit unit)
public ChronoLocalDateTime minus( TemporalAmount amount)
public abstract ChronoLocalDateTime plus( long p0, TemporalUnit p1)
public ChronoLocalDateTime plus( TemporalAmount amount)
public Object query(TemporalQuery query)
public static java.util.Comparator timeLineOrder() 获取时间线顺序比较器
public long toEpochSecond(ZoneOffset offset)
public Instant toInstant(ZoneOffset offset)
public abstract ChronoLocalDate toLocalDate()
public abstract LocalTime toLocalTime()
public abstract String toString()
public ChronoLocalDateTime with( TemporalAdjuster adjuster) 使用 TemporalAdjuster 进行调整
public abstract ChronoLocalDateTime with( TemporalField p0, long p1)
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
ChronoPeriod
|
public abstract Temporal addTo(Temporal p0)
public static ChronoPeriod between( ChronoLocalDate startDateInclusive, ChronoLocalDate endDateExclusive)
public abstract boolean equals(Object p0)
public abstract long get(TemporalUnit p0)
public abstract Chronology getChronology() 获取时间系统
public abstract java.util.List getUnits()
public abstract int hashCode()
public boolean isNegative()
public boolean isZero()
public abstract ChronoPeriod minus( TemporalAmount p0)
public abstract ChronoPeriod multipliedBy(int p0)
public ChronoPeriod negated()
public abstract ChronoPeriod normalized()
public abstract ChronoPeriod plus(TemporalAmount p0)
public abstract Temporal subtractFrom(Temporal p0)
public abstract String toString()
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
ChronoZonedDateTime
|
public int compareTo(ChronoZonedDateTime other)
public abstract boolean equals(Object p0)
public String format(DateTimeFormatter formatter) 使用 DateTimeFormatter 格式化 LocalDate
public static ChronoZonedDateTime from( TemporalAccessor temporal)
public int get(TemporalField field)
public Chronology getChronology()
public long getLong(TemporalField field)
public abstract ZoneOffset getOffset()
public abstract ZoneId getZone()
public abstract int hashCode()
public boolean isAfter(ChronoZonedDateTime other)
public boolean isBefore(ChronoZonedDateTime other)
public boolean isEqual(ChronoZonedDateTime other)
public abstract boolean isSupported( TemporalField p0)
public boolean isSupported(TemporalUnit unit) 判断 Instant 是否支持指定的单位
public ChronoZonedDateTime minus( long amountToSubtract, TemporalUnit unit)
public ChronoZonedDateTime minus( TemporalAmount amount)
public abstract ChronoZonedDateTime plus( long p0, TemporalUnit p1)
public ChronoZonedDateTime plus( TemporalAmount amount)
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
public static java.util.Comparator timeLineOrder() 获取时间线顺序比较器
public long toEpochSecond() 转换为自纪元以来的秒数
public Instant toInstant() 转换为 Instant 对象
public ChronoLocalDate toLocalDate()
public abstract ChronoLocalDateTime toLocalDateTime()
public LocalTime toLocalTime() 获取 LocalDateTime 的 LocalTime 部分
public abstract String toString()
public ChronoZonedDateTime with( TemporalAdjuster adjuster) 使用 TemporalAdjuster 进行调整
public abstract ChronoZonedDateTime with( TemporalField p0, long p1)
public abstract ChronoZonedDateTime withEarlierOffsetAtOverlap()
public abstract ChronoZonedDateTime withLaterOffsetAtOverlap()
public abstract ChronoZonedDateTime withZoneSameInstant( ZoneId p0)
public abstract ChronoZonedDateTime withZoneSameLocal( ZoneId p0)
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
Chronology
|
public abstract int compareTo(Chronology p0)
public abstract ChronoLocalDate date( int p0, int p1, int p2)
public ChronoLocalDate date( Era era, int yearOfEra, int month, int dayOfMonth)
public abstract ChronoLocalDate date( TemporalAccessor p0)
public abstract ChronoLocalDate dateEpochDay( long p0)
public ChronoLocalDate dateNow()
public ChronoLocalDate dateNow(Clock clock)
public ChronoLocalDate dateNow(ZoneId zone)
public abstract ChronoLocalDate dateYearDay( int p0, int p1)
public ChronoLocalDate dateYearDay( Era era, int yearOfEra, int dayOfYear)
public long epochSecond( int prolepticYear, int month, int dayOfMonth, int hour, int minute, int second, ZoneOffset zoneOffset)23
public long epochSecond( Era era, int yearOfEra, int month, int dayOfMonth, int hour, int minute, int second, ZoneOffset zoneOffset)23
public abstract boolean equals(Object p0)
public abstract Era eraOf(int p0)
public abstract java.util.List eras()
public static Chronology from( TemporalAccessor temporal)
public static java.util.Set getAvailableChronologies()
public abstract String getCalendarType()
public String getDisplayName( TextStyle style, java.util.Locale locale)
public abstract String getId() 获取时区ID
public abstract int hashCode()
public abstract boolean isLeapYear(long p0)
public ChronoLocalDateTime localDateTime( TemporalAccessor temporal)
public static Chronology of(String id)
public static Chronology ofLocale( java.util.Locale locale)
public ChronoPeriod period( int years, int months, int days) 创建指定年、月、日的时间段
public abstract int prolepticYear(Era p0, int p1)
public abstract ValueRange range(ChronoField p0)
public abstract ChronoLocalDate resolveDate( java.util.Map p0, ResolverStyle p1)
public abstract String toString()
public ChronoZonedDateTime zonedDateTime( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public ChronoZonedDateTime zonedDateTime( TemporalAccessor temporal)
|
2 Android T中不存在(编译时可能无法解析)。 3 所有minSDK级别均不支持。 |
java.time.chrono 时间系统
请参阅自定义项
Era
|
public Temporal adjustInto(Temporal temporal)
public int get(TemporalField field)
public String getDisplayName( TextStyle style, java.util.Locale locale)
public long getLong(TemporalField field)
public abstract int getValue()
public boolean isSupported(TemporalField field)
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
HijrahChronology
|
public static final HijrahChronology INSTANCE
public HijrahDate date( int prolepticYear, int month, int dayOfMonth)
public HijrahDate date( Era era, int yearOfEra, int month, int dayOfMonth)
public HijrahDate date(TemporalAccessor temporal)
public HijrahDate dateEpochDay(long epochDay)
public HijrahDate dateNow()
public HijrahDate dateNow(Clock clock)
public HijrahDate dateNow(ZoneId zone)
public HijrahDate dateYearDay( int prolepticYear, int dayOfYear)
public HijrahDate dateYearDay( Era era, int yearOfEra, int dayOfYear)
public HijrahEra eraOf(int eraValue)
public java.util.List eras()
public String getCalendarType()
public String getId() 获取时区偏移量ID
public boolean isLeapYear(long prolepticYear)
public ChronoLocalDateTime localDateTime( TemporalAccessor temporal)
public int prolepticYear(Era era, int yearOfEra)
public ValueRange range(ChronoField field)
public HijrahDate resolveDate( java.util.Map fieldValues, ResolverStyle resolverStyle) 解析日期
public ChronoZonedDateTime zonedDateTime( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public ChronoZonedDateTime zonedDateTime( TemporalAccessor temporal)
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
HijrahDate
|
public final ChronoLocalDateTime atTime( LocalTime localTime) 组合时间
public boolean equals(Object obj)
public static HijrahDate from( TemporalAccessor temporal)
public HijrahChronology getChronology()
public HijrahEra getEra()
public long getLong(TemporalField field)
public int hashCode()
public boolean isLeapYear() 判断是否是闰年
public int lengthOfMonth() 获取月份的天数
public int lengthOfYear() 获取年份的天数
public HijrahDate minus( long amountToSubtract, TemporalUnit unit)
public HijrahDate minus(TemporalAmount amount)
public static HijrahDate now()
public static HijrahDate now(Clock clock)
public static HijrahDate now(ZoneId zone)
public static HijrahDate of( int prolepticYear, int month, int dayOfMonth)
public HijrahDate plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public HijrahDate plus(TemporalAmount amount)
public ValueRange range(TemporalField field)
public long toEpochDay() 将 LocalDate 转换为自纪元以来的天数
public ChronoPeriod until(ChronoLocalDate endDate)
public HijrahDate with(TemporalAdjuster adjuster)
public HijrahDate with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
public HijrahDate withVariant( HijrahChronology chronology)
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
HijrahEra
|
public static final HijrahEra AH
public String getDisplayName( TextStyle style, java.util.Locale locale)
public int getValue()
public static HijrahEra of(int hijrahEra)
public ValueRange range(TemporalField field)
public static HijrahEra valueOf(String name)
public static HijrahEra[] values()
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
IsoChronology
|
public static final IsoChronology INSTANCE
public LocalDate date( int prolepticYear, int month, int dayOfMonth)
public LocalDate date( Era era, int yearOfEra, int month, int dayOfMonth)
public LocalDate date(TemporalAccessor temporal)
public LocalDate dateEpochDay(long epochDay)
public LocalDate dateNow()
public LocalDate dateNow(Clock clock)
public LocalDate dateNow(ZoneId zone)
public LocalDate dateYearDay( int prolepticYear, int dayOfYear)
public LocalDate dateYearDay( Era era, int yearOfEra, int dayOfYear)
public long epochSecond( int prolepticYear, int month, int dayOfMonth, int hour, int minute, int second, ZoneOffset zoneOffset)23
public IsoEra eraOf(int eraValue)
public java.util.List eras()
public String getCalendarType()
public String getId() 获取时区偏移量ID
public boolean isLeapYear(long prolepticYear)
public LocalDateTime localDateTime( TemporalAccessor temporal)
public Period period( int years, int months, int days) 创建指定年、月、日的时间段
public int prolepticYear(Era era, int yearOfEra)
public ValueRange range(ChronoField field)
public LocalDate resolveDate( java.util.Map fieldValues, ResolverStyle resolverStyle) 解析日期
public ZonedDateTime zonedDateTime( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public ZonedDateTime zonedDateTime( TemporalAccessor temporal)
|
2 Android T中不存在(编译时可能无法解析)。 3 所有minSDK级别均不支持。 |
java.time.chrono 时间系统
请参阅自定义项
IsoEra
|
public static final IsoEra BCE
public static final IsoEra CE
public int getValue()
public static IsoEra of(int isoEra)
public static IsoEra valueOf(String name)
public static IsoEra[] values()
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
JapaneseChronology
|
public static final JapaneseChronology INSTANCE
public JapaneseDate date( int prolepticYear, int month, int dayOfMonth)
public JapaneseDate date( Era era, int yearOfEra, int month, int dayOfMonth)
public JapaneseDate date(TemporalAccessor temporal)
public JapaneseDate dateEpochDay(long epochDay)
public JapaneseDate dateNow()
public JapaneseDate dateNow(Clock clock)
public JapaneseDate dateNow(ZoneId zone)
public JapaneseDate dateYearDay( int prolepticYear, int dayOfYear)
public JapaneseDate dateYearDay( Era era, int yearOfEra, int dayOfYear)
public JapaneseEra eraOf(int eraValue)
public java.util.List eras()
public String getCalendarType()
public String getId() 获取时区偏移量ID
public boolean isLeapYear(long prolepticYear)
public ChronoLocalDateTime localDateTime( TemporalAccessor temporal)
public int prolepticYear(Era era, int yearOfEra)
public ValueRange range(ChronoField field)
public JapaneseDate resolveDate( java.util.Map fieldValues, ResolverStyle resolverStyle) 解析日期
public ChronoZonedDateTime zonedDateTime( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public ChronoZonedDateTime zonedDateTime( TemporalAccessor temporal)
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
JapaneseDate
|
public final ChronoLocalDateTime atTime( LocalTime localTime) 组合时间
public boolean equals(Object obj)
public static JapaneseDate from( TemporalAccessor temporal)
public JapaneseChronology getChronology()
public JapaneseEra getEra()
public long getLong(TemporalField field)
public int hashCode()
public boolean isSupported(TemporalField field)
public int lengthOfMonth() 获取月份的天数
public int lengthOfYear() 获取年份的天数
public JapaneseDate minus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public JapaneseDate minus(TemporalAmount amount)
public static JapaneseDate now()
public static JapaneseDate now(Clock clock)
public static JapaneseDate now(ZoneId zone)
public static JapaneseDate of( int prolepticYear, int month, int dayOfMonth)
public static JapaneseDate of( JapaneseEra era, int yearOfEra, int month, int dayOfMonth)
public JapaneseDate plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public JapaneseDate plus(TemporalAmount amount)
public ValueRange range(TemporalField field)
public long toEpochDay() 将 LocalDate 转换为自纪元以来的天数
public ChronoPeriod until(ChronoLocalDate endDate)
public JapaneseDate with(TemporalAdjuster adjuster)
public JapaneseDate with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
JapaneseEra
|
public static final JapaneseEra HEISEI
public static final JapaneseEra MEIJI
public static final JapaneseEra REIWA3
public static final JapaneseEra SHOWA
public static final JapaneseEra TAISHO
public String getDisplayName( TextStyle style, java.util.Locale locale)
public int getValue()
public static JapaneseEra of(int japaneseEra)
public ValueRange range(TemporalField field)
public String toString()
public static JapaneseEra valueOf( String japaneseEra)
public static JapaneseEra[] values()
|
完全实现的类。 3 所有minSDK级别均不支持。 |
java.time.chrono 时间系统
请参阅自定义项
MinguoChronology
|
public static final MinguoChronology INSTANCE
public MinguoDate date( int prolepticYear, int month, int dayOfMonth)
public MinguoDate date( Era era, int yearOfEra, int month, int dayOfMonth)
public MinguoDate date(TemporalAccessor temporal)
public MinguoDate dateEpochDay(long epochDay)
public MinguoDate dateNow()
public MinguoDate dateNow(Clock clock)
public MinguoDate dateNow(ZoneId zone)
public MinguoDate dateYearDay( int prolepticYear, int dayOfYear)
public MinguoDate dateYearDay( Era era, int yearOfEra, int dayOfYear)
public MinguoEra eraOf(int eraValue)
public java.util.List eras()
public String getCalendarType()
public String getId() 获取时区偏移量ID
public boolean isLeapYear(long prolepticYear)
public ChronoLocalDateTime localDateTime( TemporalAccessor temporal)
public int prolepticYear(Era era, int yearOfEra)
public ValueRange range(ChronoField field)
public MinguoDate resolveDate( java.util.Map fieldValues, ResolverStyle resolverStyle) 解析日期
public ChronoZonedDateTime zonedDateTime( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public ChronoZonedDateTime zonedDateTime( TemporalAccessor temporal)
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
MinguoDate
|
public final ChronoLocalDateTime atTime( LocalTime localTime) 组合时间
public boolean equals(Object obj)
public static MinguoDate from( TemporalAccessor temporal)
public MinguoChronology getChronology()
public MinguoEra getEra()
public long getLong(TemporalField field)
public int hashCode()
public int lengthOfMonth() 获取月份的天数
public MinguoDate minus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public MinguoDate minus(TemporalAmount amount)
public static MinguoDate now()
public static MinguoDate now(Clock clock)
public static MinguoDate now(ZoneId zone)
public static MinguoDate of( int prolepticYear, int month, int dayOfMonth)
public MinguoDate plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public MinguoDate plus(TemporalAmount amount)
public ValueRange range(TemporalField field)
public long toEpochDay() 将 LocalDate 转换为自纪元以来的天数
public ChronoPeriod until(ChronoLocalDate endDate)
public MinguoDate with(TemporalAdjuster adjuster)
public MinguoDate with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
MinguoEra
|
public static final MinguoEra BEFORE_ROC
public static final MinguoEra ROC
public String getDisplayName( TextStyle style, java.util.Locale locale)
public int getValue()
public static MinguoEra of(int minguoEra)
public static MinguoEra valueOf(String name)
public static MinguoEra[] values()
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
ThaiBuddhistChronology
|
public static final ThaiBuddhistChronology INSTANCE
public ThaiBuddhistDate date( int prolepticYear, int month, int dayOfMonth)
public ThaiBuddhistDate date( Era era, int yearOfEra, int month, int dayOfMonth)
public ThaiBuddhistDate date( TemporalAccessor temporal)
public ThaiBuddhistDate dateEpochDay(long epochDay)
public ThaiBuddhistDate dateNow()
public ThaiBuddhistDate dateNow(Clock clock)
public ThaiBuddhistDate dateNow(ZoneId zone)
public ThaiBuddhistDate dateYearDay( int prolepticYear, int dayOfYear)
public ThaiBuddhistDate dateYearDay( Era era, int yearOfEra, int dayOfYear)
public ThaiBuddhistEra eraOf(int eraValue)
public java.util.List eras()
public String getCalendarType()
public String getId() 获取时区偏移量ID
public boolean isLeapYear(long prolepticYear)
public ChronoLocalDateTime localDateTime( TemporalAccessor temporal)
public int prolepticYear(Era era, int yearOfEra)
public ValueRange range(ChronoField field)
public ThaiBuddhistDate resolveDate( java.util.Map fieldValues, ResolverStyle resolverStyle) 解析日期
public ChronoZonedDateTime zonedDateTime( Instant instant, ZoneId zone) 使用 Instant 和 ZoneId 创建 LocalDateTime 对象
public ChronoZonedDateTime zonedDateTime( TemporalAccessor temporal)
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
ThaiBuddhistDate
|
public final ChronoLocalDateTime atTime( LocalTime localTime) 组合时间
public boolean equals(Object obj)
public static ThaiBuddhistDate from( TemporalAccessor temporal)
public ThaiBuddhistChronology getChronology()
public ThaiBuddhistEra getEra()
public long getLong(TemporalField field)
public int hashCode()
public int lengthOfMonth() 获取月份的天数
public ThaiBuddhistDate minus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public ThaiBuddhistDate minus(TemporalAmount amount)
public static ThaiBuddhistDate now()
public static ThaiBuddhistDate now(Clock clock)
public static ThaiBuddhistDate now(ZoneId zone)
public static ThaiBuddhistDate of( int prolepticYear, int month, int dayOfMonth)
public ThaiBuddhistDate plus( long amountToAdd, TemporalUnit unit) 为 Duration 添加指定单位的时间量
public ThaiBuddhistDate plus(TemporalAmount amount)
public ValueRange range(TemporalField field)
public long toEpochDay() 将 LocalDate 转换为自纪元以来的天数
public ChronoPeriod until(ChronoLocalDate endDate)
public ThaiBuddhistDate with( TemporalAdjuster adjuster) 使用 TemporalAdjuster 进行调整
public ThaiBuddhistDate with( TemporalField field, long newValue) 设置 Instant 的指定字段的值
|
完全实现的类。 |
java.time.chrono 时间系统
请参阅自定义项
ThaiBuddhistEra
|
public static final ThaiBuddhistEra BE
public static final ThaiBuddhistEra BEFORE_BE
public String getDisplayName( TextStyle style, java.util.Locale locale)
public int getValue()
public static ThaiBuddhistEra of( int thaiBuddhistEra)
public static ThaiBuddhistEra valueOf(String name)
public static ThaiBuddhistEra[] values()
|
完全实现的类。 |
java.time.format 请参阅自定义项
DateTimeFormatter
|
public static final DateTimeFormatter BASIC_ISO_DATE
public static final DateTimeFormatter ISO_DATE
public static final DateTimeFormatter ISO_DATE_TIME
public static final DateTimeFormatter ISO_INSTANT
public static final DateTimeFormatter ISO_LOCAL_DATE
public static final DateTimeFormatter ISO_LOCAL_DATE_TIME
public static final DateTimeFormatter ISO_LOCAL_TIME
public static final DateTimeFormatter ISO_OFFSET_DATE
public static final DateTimeFormatter ISO_OFFSET_DATE_TIME
public static final DateTimeFormatter ISO_OFFSET_TIME
public static final DateTimeFormatter ISO_ORDINAL_DATE
public static final DateTimeFormatter ISO_TIME
public static final DateTimeFormatter ISO_WEEK_DATE
public static final DateTimeFormatter ISO_ZONED_DATE_TIME
public static final DateTimeFormatter RFC_1123_DATE_TIME
public String format(TemporalAccessor temporal)
public void formatTo( TemporalAccessor temporal, Appendable appendable)
public Chronology getChronology()
public DecimalStyle getDecimalStyle()
public java.util.Locale getLocale()
public java.util.Set getResolverFields()
public ResolverStyle getResolverStyle()
public ZoneId getZone() 获取时区
public static DateTimeFormatter ofLocalizedDate( FormatStyle dateStyle)
public static DateTimeFormatter ofLocalizedDateTime( FormatStyle dateTimeStyle)
public static DateTimeFormatter ofLocalizedDateTime( FormatStyle dateStyle, FormatStyle timeStyle)
public static DateTimeFormatter ofLocalizedTime( FormatStyle timeStyle)
public static DateTimeFormatter ofPattern( String pattern)
public static DateTimeFormatter ofPattern( String pattern, java.util.Locale locale)
public Object parse( CharSequence text, TemporalQuery query)
public TemporalAccessor parse(CharSequence text)
public TemporalAccessor parse( CharSequence text, java.text.ParsePosition position)
public TemporalAccessor parseBest( CharSequence text, TemporalQuery[] queries)
public TemporalAccessor parseUnresolved( CharSequence text, java.text.ParsePosition position)
public static final TemporalQuery parsedExcessDays()
public static final TemporalQuery parsedLeapSecond()
public java.text.Format toFormat()
public java.text.Format toFormat( TemporalQuery parseQuery)
public String toString()
public DateTimeFormatter withChronology( Chronology chrono)
public DateTimeFormatter withDecimalStyle( DecimalStyle decimalStyle)
public DateTimeFormatter withLocale( java.util.Locale locale)
public DateTimeFormatter withResolverFields( java.util.Set resolverFields)
public DateTimeFormatter withResolverFields( TemporalField[] resolverFields)
public DateTimeFormatter withResolverStyle( ResolverStyle resolverStyle)
public DateTimeFormatter withZone(ZoneId zone)
|
完全实现的类。 |
java.time.format 请参阅自定义项
DateTimeFormatterBuilder
|
public DateTimeFormatterBuilder()
public DateTimeFormatterBuilder append( DateTimeFormatter formatter)
public DateTimeFormatterBuilder appendChronologyId()
public DateTimeFormatterBuilder appendChronologyText( TextStyle textStyle)
public DateTimeFormatterBuilder appendFraction( TemporalField field, int minWidth, int maxWidth, boolean decimalPoint)
public DateTimeFormatterBuilder appendGenericZoneText( TextStyle textStyle)23
public DateTimeFormatterBuilder appendGenericZoneText( TextStyle textStyle, java.util.Set preferredZones)23
public DateTimeFormatterBuilder appendInstant()
public DateTimeFormatterBuilder appendInstant( int fractionalDigits)
public DateTimeFormatterBuilder appendLiteral( char literal)
public DateTimeFormatterBuilder appendLiteral( String literal)
public DateTimeFormatterBuilder appendLocalized( FormatStyle dateStyle, FormatStyle timeStyle)
public DateTimeFormatterBuilder appendLocalizedOffset( TextStyle style)
public DateTimeFormatterBuilder appendOffset( String pattern, String noOffsetText)
public DateTimeFormatterBuilder appendOffsetId()
public DateTimeFormatterBuilder appendOptional( DateTimeFormatter formatter)
public DateTimeFormatterBuilder appendPattern( String pattern)
public DateTimeFormatterBuilder appendText( TemporalField field)
public DateTimeFormatterBuilder appendText( TemporalField field, TextStyle textStyle)
public DateTimeFormatterBuilder appendText( TemporalField field, java.util.Map textLookup)
public DateTimeFormatterBuilder appendValue( TemporalField field)
public DateTimeFormatterBuilder appendValue( TemporalField field, int width)
public DateTimeFormatterBuilder appendValue( TemporalField field, int minWidth, int maxWidth, SignStyle signStyle)
public DateTimeFormatterBuilder appendValueReduced( TemporalField field, int width, int maxWidth, int baseValue)
public DateTimeFormatterBuilder appendValueReduced( TemporalField field, int width, int maxWidth, ChronoLocalDate baseDate)
public DateTimeFormatterBuilder appendZoneId()
public DateTimeFormatterBuilder appendZoneOrOffsetId()
public DateTimeFormatterBuilder appendZoneRegionId()
public DateTimeFormatterBuilder appendZoneText( TextStyle textStyle)
public DateTimeFormatterBuilder appendZoneText( TextStyle textStyle, java.util.Set preferredZones)
public static String getLocalizedDateTimePattern( FormatStyle dateStyle, FormatStyle timeStyle, Chronology chrono, java.util.Locale locale)
public DateTimeFormatterBuilder optionalEnd()
public DateTimeFormatterBuilder optionalStart()
public DateTimeFormatterBuilder padNext( int padWidth)
public DateTimeFormatterBuilder padNext( int padWidth, char padChar)
public DateTimeFormatterBuilder parseCaseInsensitive()
public DateTimeFormatterBuilder parseCaseSensitive()
public DateTimeFormatterBuilder parseDefaulting( TemporalField field, long value)
public DateTimeFormatterBuilder parseLenient()
public DateTimeFormatterBuilder parseStrict()
public DateTimeFormatter toFormatter()
public DateTimeFormatter toFormatter( java.util.Locale locale)
|
2 Android T中不存在(编译时可能无法解析)。 3 所有minSDK级别均不支持。 |
java.time.format 请参阅自定义项
DateTimeParseException
|
public DateTimeParseException( String message, CharSequence parsedData, int errorIndex)
public DateTimeParseException( String message, CharSequence parsedData, int errorIndex, Throwable cause)
public int getErrorIndex()
public String getParsedString()
|
完全实现的类。 |
java.time.format 请参阅自定义项
DecimalStyle
|
public static final DecimalStyle STANDARD
public boolean equals(Object obj)
public static java.util.Set getAvailableLocales()
public char getDecimalSeparator()
public char getNegativeSign()
public char getPositiveSign()
public char getZeroDigit()
public int hashCode()
public static DecimalStyle of( java.util.Locale locale)
public static DecimalStyle ofDefaultLocale()
public String toString()
public DecimalStyle withDecimalSeparator( char decimalSeparator)
public DecimalStyle withNegativeSign( char negativeSign)
public DecimalStyle withPositiveSign( char positiveSign)
public DecimalStyle withZeroDigit(char zeroDigit)
|
完全实现的类。 |
java.time.format 请参阅自定义项
FormatStyle
|
public static final FormatStyle FULL
public static final FormatStyle LONG
public static final FormatStyle MEDIUM
public static final FormatStyle SHORT
public static FormatStyle valueOf(String name)
public static FormatStyle[] values()
|
完全实现的类。 |
java.time.format 请参阅自定义项
ResolverStyle
|
public static final ResolverStyle LENIENT
public static final ResolverStyle SMART
public static final ResolverStyle STRICT
public static ResolverStyle valueOf(String name)
public static ResolverStyle[] values()
|
完全实现的类。 |
java.time.format 请参阅自定义项
SignStyle
|
public static final SignStyle ALWAYS
public static final SignStyle EXCEEDS_PAD
public static final SignStyle NEVER
public static final SignStyle NORMAL
public static final SignStyle NOT_NEGATIVE
public static SignStyle valueOf(String name)
public static SignStyle[] values()
|
完全实现的类。 |
java.time.format 请参阅自定义项
TextStyle
|
public static final TextStyle FULL
public static final TextStyle FULL_STANDALONE
public static final TextStyle NARROW
public static final TextStyle NARROW_STANDALONE
public static final TextStyle SHORT
public static final TextStyle SHORT_STANDALONE
public TextStyle asNormal()
public TextStyle asStandalone()
public boolean isStandalone()
public static TextStyle valueOf(String name)
public static TextStyle[] values()
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
ChronoField
|
public static final ChronoField ALIGNED_DAY_OF_WEEK_IN_MONTH
public static final ChronoField ALIGNED_DAY_OF_WEEK_IN_YEAR
public static final ChronoField ALIGNED_WEEK_OF_MONTH
public static final ChronoField ALIGNED_WEEK_OF_YEAR
public static final ChronoField AMPM_OF_DAY
public static final ChronoField CLOCK_HOUR_OF_AMPM
public static final ChronoField CLOCK_HOUR_OF_DAY
public static final ChronoField DAY_OF_MONTH
public static final ChronoField DAY_OF_WEEK
public static final ChronoField DAY_OF_YEAR
public static final ChronoField EPOCH_DAY
public static final ChronoField ERA
public static final ChronoField HOUR_OF_AMPM
public static final ChronoField HOUR_OF_DAY
public static final ChronoField INSTANT_SECONDS
public static final ChronoField MICRO_OF_DAY
public static final ChronoField MICRO_OF_SECOND
public static final ChronoField MILLI_OF_DAY
public static final ChronoField MILLI_OF_SECOND
public static final ChronoField MINUTE_OF_DAY
public static final ChronoField MINUTE_OF_HOUR
public static final ChronoField MONTH_OF_YEAR
public static final ChronoField NANO_OF_DAY
public static final ChronoField NANO_OF_SECOND
public static final ChronoField OFFSET_SECONDS
public static final ChronoField PROLEPTIC_MONTH
public static final ChronoField SECOND_OF_DAY
public static final ChronoField SECOND_OF_MINUTE
public static final ChronoField YEAR
public static final ChronoField YEAR_OF_ERA
public Temporal adjustInto( Temporal temporal, long newValue)
public int checkValidIntValue(long value)
public long checkValidValue(long value)
public TemporalUnit getBaseUnit()
public String getDisplayName( java.util.Locale locale)
public long getFrom(TemporalAccessor temporal)
public TemporalUnit getRangeUnit()
public boolean isDateBased()
public boolean isSupportedBy( TemporalAccessor temporal)
public boolean isTimeBased()
public ValueRange range()
public ValueRange rangeRefinedBy( TemporalAccessor temporal)
public String toString()
public static ChronoField valueOf(String name)
public static ChronoField[] values()
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
ChronoUnit
|
public static final ChronoUnit CENTURIES
public static final ChronoUnit DAYS
public static final ChronoUnit DECADES
public static final ChronoUnit ERAS
public static final ChronoUnit FOREVER
public static final ChronoUnit HALF_DAYS
public static final ChronoUnit HOURS
public static final ChronoUnit MICROS
public static final ChronoUnit MILLENNIA
public static final ChronoUnit MILLIS
public static final ChronoUnit MINUTES
public static final ChronoUnit MONTHS
public static final ChronoUnit NANOS
public static final ChronoUnit SECONDS
public static final ChronoUnit WEEKS
public static final ChronoUnit YEARS
public Temporal addTo( Temporal temporal, long amount)
public long between( Temporal temporal1Inclusive, Temporal temporal2Exclusive)
public Duration getDuration()
public boolean isDateBased()
public boolean isDurationEstimated()
public boolean isSupportedBy(Temporal temporal)
public boolean isTimeBased()
public String toString()
public static ChronoUnit valueOf(String name)
public static ChronoUnit[] values()
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
IsoFields
|
public static final TemporalField DAY_OF_QUARTER
public static final TemporalField QUARTER_OF_YEAR
public static final TemporalUnit QUARTER_YEARS
public static final TemporalField WEEK_BASED_YEAR
public static final TemporalUnit WEEK_BASED_YEARS
public static final TemporalField WEEK_OF_WEEK_BASED_YEAR
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
JulianFields
|
public static final TemporalField JULIAN_DAY
public static final TemporalField MODIFIED_JULIAN_DAY
public static final TemporalField RATA_DIE
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
Temporal
|
public abstract boolean isSupported(TemporalUnit p0)
public Temporal minus( long amountToSubtract, TemporalUnit unit)
public Temporal minus(TemporalAmount amount)
public abstract Temporal plus( long p0, TemporalUnit p1)
public Temporal plus(TemporalAmount amount)
public abstract long until( Temporal p0, TemporalUnit p1)
public Temporal with(TemporalAdjuster adjuster)
public abstract Temporal with( TemporalField p0, long p1)
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
TemporalAccessor
|
public int get(TemporalField field)
public abstract long getLong(TemporalField p0)
public abstract boolean isSupported( TemporalField p0)
public Object query(TemporalQuery query)
public ValueRange range(TemporalField field)
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
TemporalAdjuster
|
public abstract Temporal adjustInto(Temporal p0)
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
TemporalAdjusters
|
public static TemporalAdjuster dayOfWeekInMonth( int ordinal, DayOfWeek dayOfWeek)
public static TemporalAdjuster firstDayOfMonth()
public static TemporalAdjuster firstDayOfNextMonth()
public static TemporalAdjuster firstDayOfNextYear()
public static TemporalAdjuster firstDayOfYear()
public static TemporalAdjuster firstInMonth( DayOfWeek dayOfWeek)
public static TemporalAdjuster lastDayOfMonth()
public static TemporalAdjuster lastDayOfYear()
public static TemporalAdjuster lastInMonth( DayOfWeek dayOfWeek)
public static TemporalAdjuster next( DayOfWeek dayOfWeek)
public static TemporalAdjuster nextOrSame( DayOfWeek dayOfWeek)
public static TemporalAdjuster ofDateAdjuster( UnaryOperator dateBasedAdjuster)
public static TemporalAdjuster previous( DayOfWeek dayOfWeek)
public static TemporalAdjuster previousOrSame( DayOfWeek dayOfWeek)
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
TemporalAmount
|
public abstract Temporal addTo(Temporal p0)
public abstract long get(TemporalUnit p0)
public abstract java.util.List getUnits()
public abstract Temporal subtractFrom(Temporal p0)
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
TemporalField
|
public abstract Temporal adjustInto( Temporal p0, long p1)
public abstract TemporalUnit getBaseUnit()
public String getDisplayName( java.util.Locale locale)
public abstract long getFrom(TemporalAccessor p0)
public abstract TemporalUnit getRangeUnit()
public abstract boolean isDateBased()
public abstract boolean isSupportedBy( TemporalAccessor p0)
public abstract boolean isTimeBased()
public abstract ValueRange range()
public abstract ValueRange rangeRefinedBy( TemporalAccessor p0)
public TemporalAccessor resolve( java.util.Map fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) 解析日期
public abstract String toString()
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
TemporalQueries
|
public static TemporalQuery chronology()
public static TemporalQuery localDate()
public static TemporalQuery localTime()
public static TemporalQuery offset()
public static TemporalQuery precision()
public static TemporalQuery zone()
public static TemporalQuery zoneId()
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
TemporalQuery
|
public abstract Object queryFrom( TemporalAccessor p0)
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
TemporalUnit
|
public abstract Temporal addTo(Temporal p0, long p1)
public abstract long between( Temporal p0, Temporal p1)
public abstract Duration getDuration()
public abstract boolean isDateBased()
public abstract boolean isDurationEstimated()
public boolean isSupportedBy(Temporal temporal)
public abstract boolean isTimeBased()
public abstract String toString()
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
UnsupportedTemporalTypeException
|
public UnsupportedTemporalTypeException( String message)
public UnsupportedTemporalTypeException( String message, Throwable cause)
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
ValueRange
|
public int checkValidIntValue( long value, TemporalField field)
public long checkValidValue( long value, TemporalField field)
public boolean equals(Object obj)
public long getLargestMinimum()
public long getMaximum()
public long getMinimum()
public long getSmallestMaximum()
public int hashCode()
public boolean isFixed()
public boolean isIntValue()
public boolean isValidIntValue(long value)
public boolean isValidValue(long value)
public static ValueRange of(long min, long max)
public static ValueRange of( long min, long maxSmallest, long maxLargest)
public static ValueRange of( long minSmallest, long minLargest, long maxSmallest, long maxLargest)
public String toString()
|
完全实现的类。 |
java.time.temporal 请参阅自定义项
WeekFields
|
public static final WeekFields ISO
public static final WeekFields SUNDAY_START
public static final TemporalUnit WEEK_BASED_YEARS
public TemporalField dayOfWeek()
public boolean equals(Object object)
public DayOfWeek getFirstDayOfWeek()
public int getMinimalDaysInFirstWeek()
public int hashCode()
public static WeekFields of( DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek)
public static WeekFields of(java.util.Locale locale)
public String toString()
public TemporalField weekBasedYear()
public TemporalField weekOfMonth()
public TemporalField weekOfWeekBasedYear()
public TemporalField weekOfYear()
|
完全实现的类。 |
java.time.zone 请参阅自定义项
时区偏移转换
|
public int compareTo( ZoneOffsetTransition transition)
public boolean equals(Object other)
public LocalDateTime getDateTimeAfter()
public LocalDateTime getDateTimeBefore()
public Duration getDuration()
public Instant getInstant()
public ZoneOffset getOffsetAfter()
public ZoneOffset getOffsetBefore()
public int hashCode()
public boolean isGap()
public boolean isOverlap()
public boolean isValidOffset(ZoneOffset offset)
public static ZoneOffsetTransition of( LocalDateTime transition, ZoneOffset offsetBefore, ZoneOffset offsetAfter)
public long toEpochSecond() 转换为自纪元以来的秒数
public String toString()
|
完全实现的类。 |
java.time.zone 请参阅自定义项
时区偏移转换规则。 时间定义
|
public static final ZoneOffsetTransitionRule.TimeDefinition STANDARD
public static final ZoneOffsetTransitionRule.TimeDefinition UTC
public static final ZoneOffsetTransitionRule.TimeDefinition WALL
public LocalDateTime createDateTime( LocalDateTime dateTime, ZoneOffset standardOffset, ZoneOffset wallOffset)
public static ZoneOffsetTransitionRule.TimeDefinition valueOf( String name)
public static ZoneOffsetTransitionRule.TimeDefinition[] values()
|
完全实现的类。 |
java.time.zone 请参阅自定义项
时区偏移转换规则
|
public ZoneOffsetTransition createTransition( int year)
public boolean equals(Object otherRule)
public int getDayOfMonthIndicator()
public DayOfWeek getDayOfWeek() 获取星期几
public LocalTime getLocalTime()
public Month getMonth() 获取月份
public ZoneOffset getOffsetAfter()
public ZoneOffset getOffsetBefore()
public ZoneOffset getStandardOffset()
public ZoneOffsetTransitionRule.TimeDefinition getTimeDefinition()
public int hashCode()
public boolean isMidnightEndOfDay()
public static ZoneOffsetTransitionRule of( Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneOffsetTransitionRule.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter)
public String toString()
|
完全实现的类。 |
java.time.zone 请参阅自定义项
时区规则
|
public boolean equals(Object otherRules)
public Duration getDaylightSavings(Instant instant)
public ZoneOffset getOffset(Instant instant)
public ZoneOffset getOffset( LocalDateTime localDateTime)
public ZoneOffset getStandardOffset(Instant instant)
public ZoneOffsetTransition getTransition( LocalDateTime localDateTime)
public java.util.List getTransitionRules()
public java.util.List getTransitions()
public java.util.List getValidOffsets( LocalDateTime localDateTime)
public int hashCode()
public boolean isDaylightSavings(Instant instant)
public boolean isFixedOffset()
public boolean isValidOffset( LocalDateTime localDateTime, ZoneOffset offset)
public ZoneOffsetTransition nextTransition( Instant instant)
public static ZoneRules of(ZoneOffset offset)
public static ZoneRules of( ZoneOffset baseStandardOffset, ZoneOffset baseWallOffset, java.util.List standardOffsetTransitionList, java.util.List transitionList, java.util.List lastRules)
public ZoneOffsetTransition previousTransition( Instant instant)
public String toString()
|
完全实现的类。 |
java.time.zone 请参阅自定义项
时区规则异常
|
public ZoneRulesException(String message)
public ZoneRulesException( String message, Throwable cause)
|
完全实现的类。 |
java.util
数组
|
public static Spliterator.OfDouble spliterator( double[] p0)
public static Spliterator.OfDouble spliterator( double[] p0, int p1, int p2)
public static Spliterator.OfInt spliterator( int[] p0)
public static Spliterator.OfInt spliterator( int[] p0, int p1, int p2)
public static Spliterator.OfLong spliterator( long[] p0)
public static Spliterator.OfLong spliterator( long[] p0, int p1, int p2)
public static Spliterator spliterator(Object[] p0)
public static Spliterator spliterator( Object[] p0, int p1, int p2)
public static DoubleStream stream(double[] p0)
public static DoubleStream stream( double[] p0, int p1, int p2)
public static IntStream stream(int[] p0)
public static IntStream stream( int[] p0, int p1, int p2)
public static LongStream stream(long[] p0)
public static LongStream stream( long[] p0, int p1, int p2)
public static Stream stream(Object[] p0)
public static Stream stream( Object[] p0, int p1, int p2)
|
现有类中的附加方法。 |
java.util
日历
|
public final java.time.Instant toInstant()
|
现有类中的附加方法。 |
java.util
集合
|
public Stream parallelStream()1
public boolean removeIf(Predicate filter)
public Spliterator spliterator()
public Stream stream()
public Object[] toArray( IntFunction generator)3
|
现有类中的附加方法。 1 仅在API级别为21或更高的设备上支持。 3 所有minSDK级别均不支持。 |
java.util
集合
|
public static Map synchronizedMap(Map p0)
public static SortedMap synchronizedSortedMap( SortedMap p0)
|
现有类中的附加方法。 |
java.util
比较器
|
public static Comparator comparing( Function keyExtractor)
public static Comparator comparing( Function keyExtractor, Comparator keyComparator)
public static Comparator comparingDouble( ToDoubleFunction keyExtractor)
public static Comparator comparingInt( ToIntFunction keyExtractor)
public static Comparator comparingLong( ToLongFunction keyExtractor)
public static Comparator naturalOrder()
public static Comparator nullsFirst( Comparator comparator)
public static Comparator nullsLast( Comparator comparator)
public static Comparator reverseOrder()
public Comparator reversed()
public Comparator thenComparing(Comparator other)
public Comparator thenComparing( Function keyExtractor)
public Comparator thenComparing( Function keyExtractor, Comparator keyComparator)
public Comparator thenComparingDouble( ToDoubleFunction keyExtractor)
public Comparator thenComparingInt( ToIntFunction keyExtractor)
public Comparator thenComparingLong( ToLongFunction keyExtractor)
|
现有类中的附加方法。 |
java.util
日期
|
public static Date from(java.time.Instant p0)
public java.time.Instant toInstant()
|
现有类中的附加方法。 |
java.util
双精度数统计摘要
|
public DoubleSummaryStatistics()
public DoubleSummaryStatistics( long count, double min, double max, double sum)23
public void accept(double value)
public void combine(DoubleSummaryStatistics other)
public final double getAverage()
public final long getCount()
public final double getMax()
public final double getMin()
public final double getSum()
public String toString()
|
2 Android T中不存在(编译时可能无法解析)。 3 所有minSDK级别均不支持。 |
java.util
格里高利历
|
public static GregorianCalendar from( java.time.ZonedDateTime p0)
public java.time.ZonedDateTime toZonedDateTime()
|
现有类中的附加方法。 |
java.util
整数统计摘要
|
public IntSummaryStatistics()
public IntSummaryStatistics( long count, int min, int max, long sum)3
public void accept(int value)
public void combine(IntSummaryStatistics other)
public final double getAverage()
public final long getCount()
public final int getMax()
public final int getMin()
public final long getSum()
public String toString()
|
3 所有minSDK级别均不支持。 |
java.util
迭代器
|
public void forEachRemaining(Consumer action)
public void remove()
|
现有类中的附加方法。 |
java.util
列表
|
public static List copyOf(Collection coll)
public static List of()
public static List of(Object e1)
public static List of(Object e1, Object e2)
public static List of( Object e1, Object e2, Object e3)
public static List of( Object e1, Object e2, Object e3, Object e4)
public static List of( Object e1, Object e2, Object e3, Object e4, Object e5)
public static List of( Object e1, Object e2, Object e3, Object e4, Object e5, Object e6)
public static List of( Object e1, Object e2, Object e3, Object e4, Object e5, Object e6, Object e7)
public static List of( Object e1, Object e2, Object e3, Object e4, Object e5, Object e6, Object e7, Object e8)
public static List of( Object e1, Object e2, Object e3, Object e4, Object e5, Object e6, Object e7, Object e8, Object e9)
public static List of( Object e1, Object e2, Object e3, Object e4, Object e5, Object e6, Object e7, Object e8, Object e9, Object e10)
public static List of(Object[] elements)
public void replaceAll(UnaryOperator operator)
public void sort(Comparator c)
public Spliterator spliterator()
|
现有类中的附加方法。 |
java.util
长整数统计摘要
|
public LongSummaryStatistics()
public LongSummaryStatistics( long count, long min, long max, long sum)3
public void accept(int value)
public void accept(long value)
public void combine(LongSummaryStatistics other)
public final double getAverage()
public final long getCount()
public final long getMax()
public final long getMin()
public final long getSum()
public String toString()
|
3 所有minSDK级别均不支持。 |
java.util
映射。 条目
|
public static Comparator comparingByKey()
public static Comparator comparingByKey( Comparator cmp)
public static Comparator comparingByValue()
public static Comparator comparingByValue( Comparator cmp)
|
现有类中的附加方法。 |
java.util
映射
|
public Object compute( Object key, BiFunction remappingFunction)
public Object computeIfAbsent( Object key, Function mappingFunction)
public Object computeIfPresent( Object key, BiFunction remappingFunction)
public static Map copyOf(Map map)
public static Map.Entry entry(Object k, Object v)
public void forEach(BiConsumer action)
public Object getOrDefault( Object key, Object defaultValue)
public Object merge( Object key, Object value, BiFunction remappingFunction)
public static Map of()
public static Map of(Object k1, Object v1)
public static Map of( Object k1, Object v1, Object k2, Object v2)
public static Map of( Object k1, Object v1, Object k2, Object v2, Object k3, Object v3)
public static Map of( Object k1, Object v1, Object k2, Object v2, Object k3, Object v3, Object k4, Object v4)
public static Map of( Object k1, Object v1, Object k2, Object v2, Object k3, Object v3, Object k4, Object v4, Object k5, Object v5)
public static Map of( Object k1, Object v1, Object k2, Object v2, Object k3, Object v3, Object k4, Object v4, Object k5, Object v5, Object k6, Object v6)
public static Map of( Object k1, Object v1, Object k2, Object v2, Object k3, Object v3, Object k4, Object v4, Object k5, Object v5, Object k6, Object v6, Object k7, Object v7)
public static Map of( Object k1, Object v1, Object k2, Object v2, Object k3, Object v3, Object k4, Object v4, Object k5, Object v5, Object k6, Object v6, Object k7, Object v7, Object k8, Object v8)
public static Map of( Object k1, Object v1, Object k2, Object v2, Object k3, Object v3, Object k4, Object v4, Object k5, Object v5, Object k6, Object v6, Object k7, Object v7, Object k8, Object v8, Object k9, Object v9)
public static Map of( Object k1, Object v1, Object k2, Object v2, Object k3, Object v3, Object k4, Object v4, Object k5, Object v5, Object k6, Object v6, Object k7, Object v7, Object k8, Object v8, Object k9, Object v9, Object k10, Object v10)
public static Map ofEntries(Map.Entry[] entries)
public Object putIfAbsent(Object key, Object value)
public boolean remove(Object key, Object value)
public Object replace(Object key, Object value)
public boolean replace( Object key, Object oldValue, Object newValue)
public void replaceAll(BiFunction function)
|
现有类中的附加方法。 |
java.util
对象
|
public static int checkFromIndexSize( int fromIndex, int size, int length)
public static int checkFromToIndex( int fromIndex, int toIndex, int length)
public static int checkIndex(int index, int length)
public static int compare( Object a, Object b, Comparator c)
public static boolean deepEquals(Object a, Object b)
public static boolean equals(Object a, Object b)
public static int hash(Object[] values)
public static int hashCode(Object o)
public static boolean isNull(Object obj)
public static boolean nonNull(Object obj)
public static Object requireNonNull(Object obj)
public static Object requireNonNull( Object obj, String message)
public static Object requireNonNull( Object obj, Supplier messageSupplier)
public static Object requireNonNullElse( Object obj, Object defaultObj)
public static Object requireNonNullElseGet( Object obj, Supplier supplier)
public static String toString(Object o)
public static String toString( 对象 o,字符串 nullDefault)
|
完全实现的类。 |
java.util
Optional(可选值)
|
public static Optional empty() // 创建一个空的 Optional
public boolean equals(Object obj)
public Optional filter(Predicate predicate) // 过滤 Optional 值,仅当谓词为真时才返回 Optional
public Optional flatMap(Function mapper) // 将 Optional 应用于函数,并返回一个新的 Optional
public Object get() // 获取 Optional 中的值,如果为空则抛出异常
public int hashCode()
public void ifPresent(Consumer action) // 如果存在值,则执行给定的操作
public void ifPresentOrElse( Consumer action, Runnable emptyAction) // 如果存在值,则执行给定的操作;否则,执行空操作
public boolean isEmpty() // 判断 Optional 是否为空
public boolean isPresent() // 判断 Optional 是否存在值
public Optional map(Function mapper) // 将 Optional 应用于函数,并返回一个新的 Optional
public static Optional of(Object value) // 创建一个包含给定值的 Optional,如果值为 null 则抛出异常
public static Optional ofNullable(Object value) // 创建一个包含给定值的 Optional,如果值为 null 则返回一个空的 Optional
public Optional or(Supplier supplier) // 如果存在值,则返回当前 Optional;否则,使用提供的 Supplier 创建一个新的 Optional
public Object orElse(Object other) // 如果存在值,则返回当前 Optional 的值;否则,返回其他值
public Object orElseGet(Supplier supplier) // 如果存在值,则返回当前 Optional 的值;否则,使用提供的 Supplier 创建一个值
public Object orElseThrow() // 如果存在值,则返回当前 Optional 的值;否则,抛出异常
public Object orElseThrow( Supplier exceptionSupplier) // 如果存在值,则返回当前 Optional 的值;否则,使用提供的 Supplier 创建一个异常并抛出
public Stream stream()
public String toString()
|
完全实现的类。 |
java.util
OptionalDouble(可选双精度浮点数)
|
public static OptionalDouble empty() // 创建一个空的 OptionalDouble
public boolean equals(Object obj)
public double getAsDouble() // 获取 OptionalDouble 中的值,如果为空则抛出异常
public int hashCode()
public void ifPresent(DoubleConsumer action) // 如果存在值,则执行给定的操作
public void ifPresentOrElse( DoubleConsumer action, Runnable emptyAction) // 如果存在值,则执行给定的操作;否则,执行空操作
public boolean isEmpty() // 判断 Optional 是否为空
public boolean isPresent() // 判断 Optional 是否存在值
public static OptionalDouble of(double value) // 创建一个包含给定值的 OptionalDouble
public double orElse(double other) // 如果存在值,则返回当前 OptionalDouble 的值;否则,返回其他值
public double orElseGet(DoubleSupplier supplier) // 如果存在值,则返回当前 OptionalDouble 的值;否则,使用提供的 Supplier 创建一个值
public double orElseThrow() // 如果存在值,则返回当前 OptionalDouble 的值;否则,抛出异常
public double orElseThrow( Supplier exceptionSupplier) // 如果存在值,则返回当前 Optional 的值;否则,使用提供的 Supplier 创建一个异常并抛出
public DoubleStream stream() // 返回一个包含 OptionalDouble 值的 DoubleStream
public String toString()
|
完全实现的类。 |
java.util
OptionalInt(可选整数)
|
public static OptionalInt empty() // 创建一个空的 OptionalInt
public boolean equals(Object obj)
public int getAsInt() // 获取 OptionalInt 中的值,如果为空则抛出异常
public int hashCode()
public void ifPresent(IntConsumer action) // 如果存在值,则执行给定的操作
public void ifPresentOrElse( IntConsumer action, Runnable emptyAction) // 如果存在值,则执行给定的操作;否则,执行空操作
public boolean isEmpty() // 判断 Optional 是否为空
public boolean isPresent() // 判断 Optional 是否存在值
public static OptionalInt of(int value) // 创建一个包含给定值的 OptionalInt
public int orElse(int other) // 如果存在值,则返回当前 OptionalInt 的值;否则,返回其他值
public int orElseGet(IntSupplier supplier) // 如果存在值,则返回当前 OptionalInt 的值;否则,使用提供的 Supplier 创建一个值
public int orElseThrow() // 如果存在值,则返回当前 OptionalInt 的值;否则,抛出异常
public int orElseThrow(Supplier exceptionSupplier) // 如果存在值,则返回当前 OptionalInt 的值;否则,使用提供的 Supplier 创建一个异常并抛出
public IntStream stream() // 返回一个包含 OptionalInt 值的 IntStream
public String toString()
|
完全实现的类。 |
java.util
OptionalLong(可选长整数)
|
public static OptionalLong empty() // 创建一个空的 OptionalLong
public boolean equals(Object obj)
public long getAsLong() // 获取 OptionalLong 中的值,如果为空则抛出异常
public int hashCode()
public void ifPresent(LongConsumer action) // 如果存在值,则执行给定的操作
public void ifPresentOrElse( LongConsumer action, Runnable emptyAction) // 如果存在值,则执行给定的操作;否则,执行空操作
public boolean isEmpty() // 判断 Optional 是否为空
public boolean isPresent() // 判断 Optional 是否存在值
public static OptionalLong of(long value) // 创建一个包含给定值的 OptionalLong
public long orElse(long other) // 如果存在值,则返回当前 OptionalLong 的值;否则,返回其他值
public long orElseGet(LongSupplier supplier) // 如果存在值,则返回当前 OptionalLong 的值;否则,使用提供的 Supplier 创建一个值
public long orElseThrow() // 如果存在值,则返回当前 OptionalLong 的值;否则,抛出异常
public long orElseThrow(Supplier exceptionSupplier) // 如果存在值,则返回当前 OptionalLong 的值;否则,使用提供的 Supplier 创建一个异常并抛出
public LongStream stream() // 返回一个包含 OptionalLong 值的 LongStream
public String toString()
|
完全实现的类。 |
java.util
原始迭代器。 OfDouble
|
public void forEachRemaining(Consumer action)
public void forEachRemaining(DoubleConsumer action) // 对剩余元素执行给定的操作
public Double next() // 返回下一个元素
public abstract double nextDouble() // 返回下一个双精度浮点数
|
完全实现的类。 |
java.util
原始迭代器。 OfInt
|
public void forEachRemaining(Consumer action)
public void forEachRemaining(IntConsumer action) // 对剩余元素执行给定的操作
public Integer next() // 返回下一个元素
public abstract int nextInt() // 返回下一个整数
|
完全实现的类。 |
java.util
原始迭代器。 OfLong
|
public void forEachRemaining(Consumer action)
public void forEachRemaining(LongConsumer action) // 对剩余元素执行给定的操作
public Long next() // 返回下一个元素
public abstract long nextLong() // 返回下一个长整数
|
完全实现的类。 |
java.util
原始迭代器
|
public abstract void forEachRemaining(Object p0) // 对剩余元素执行给定的操作
|
完全实现的类。 |
java.util
Set(集合)
|
public static Set copyOf(Collection coll) // 创建一个集合的副本
public static Set of() // 创建一个空的集合
public static Set of(Object e1) // 创建一个包含一个元素的集合
public static Set of(Object e1, Object e2) // 创建一个包含两个元素的集合
public static Set of( Object e1, Object e2, Object e3)
public static Set of( Object e1, Object e2, Object e3, Object e4)
public static Set of( Object e1, Object e2, Object e3, Object e4, Object e5)
public static Set of( Object e1, Object e2, Object e3, Object e4, Object e5, Object e6)
public static Set of( Object e1, Object e2, Object e3, Object e4, Object e5, Object e6, Object e7)
public static Set of( Object e1, Object e2, Object e3, Object e4, Object e5, Object e6, Object e7, Object e8)
public static Set of( Object e1, Object e2, Object e3, Object e4, Object e5, Object e6, Object e7, Object e8, Object e9)
public static Set of( Object e1, Object e2, Object e3, Object e4, Object e5, Object e6, Object e7, Object e8, Object e9, Object e10)
public static Set of(Object[] elements) // 创建一个包含给定数组元素的集合
public Spliterator spliterator()
|
现有类中的附加方法。 |
java.util
SortedSet(有序集合)
|
public Spliterator spliterator()
|
现有类中的附加方法。 |
java.util
Spliterator(分隔迭代器)。 OfDouble
|
public void forEachRemaining(Consumer action)
public void forEachRemaining(DoubleConsumer action) // 对剩余元素执行给定的操作
public boolean tryAdvance(Consumer action) // 尝试对下一个元素执行给定的操作,并返回是否成功
public abstract boolean tryAdvance( DoubleConsumer p0) // 尝试对下一个双精度浮点数元素执行给定的操作,并返回是否成功
public abstract Spliterator.OfDouble trySplit() // 尝试分割迭代器
|
完全实现的类。 |
java.util
Spliterator(分隔迭代器)。 OfInt
|
public void forEachRemaining(Consumer action)
public void forEachRemaining(IntConsumer action) // 对剩余元素执行给定的操作
public boolean tryAdvance(Consumer action) // 尝试对下一个元素执行给定的操作,并返回是否成功
public abstract boolean tryAdvance(IntConsumer p0) // 尝试对下一个整数元素执行给定的操作,并返回是否成功
public abstract Spliterator.OfInt trySplit() // 尝试分割迭代器
|
完全实现的类。 |
java.util
Spliterator(分隔迭代器)。 OfLong
|
public void forEachRemaining(Consumer action)
public void forEachRemaining(LongConsumer action) // 对剩余元素执行给定的操作
public boolean tryAdvance(Consumer action) // 尝试对下一个元素执行给定的操作,并返回是否成功
public abstract boolean tryAdvance(LongConsumer p0) // 尝试对下一个长整数元素执行给定的操作,并返回是否成功
public abstract Spliterator.OfLong trySplit() // 尝试分割迭代器
|
完全实现的类。 |
java.util
Spliterator(分隔迭代器)。 OfPrimitive(原始类型)
|
public void forEachRemaining(Object action) // 对剩余元素执行给定的操作
public abstract boolean tryAdvance(Object p0) // 尝试对下一个元素执行给定的操作,并返回是否成功
public abstract Spliterator.OfPrimitive trySplit() // 尝试分割迭代器
|
完全实现的类。 |
java.util
Spliterator(分隔迭代器)
|
public static final int CONCURRENT // 并发特性
public static final int DISTINCT // 去重特性
public static final int IMMUTABLE // 不可变特性
public static final int NONNULL // 非空特性
public static final int ORDERED // 有序特性
public static final int SIZED // 已知大小特性
public static final int SORTED // 已排序特性
public static final int SUBSIZED // 子分隔迭代器已知大小特性
public abstract int characteristics() // 获取分隔迭代器的特性
public abstract long estimateSize() // 获取分隔迭代器元素数量的估计值
public void forEachRemaining(Consumer action)
public Comparator getComparator() // 获取分隔迭代器的比较器
public long getExactSizeIfKnown() // 获取分隔迭代器元素的精确数量,如果已知
public boolean hasCharacteristics( int characteristics) // 判断分隔迭代器是否具有指定的特性
public abstract boolean tryAdvance(Consumer p0) // 尝试对下一个元素执行给定的操作,并返回是否成功
public abstract Spliterator trySplit() // 尝试分割迭代器
|
完全实现的类。 |
java.util
Spliterators。 AbstractDoubleSpliterator
|
protected Spliterators.AbstractDoubleSpliterator( long est, int additionalCharacteristics) // 构造函数
public int characteristics() // 获取分隔迭代器的特性
public long estimateSize() // 获取分隔迭代器元素数量的估计值
public Spliterator.OfDouble trySplit() // 尝试分割迭代器
|
完全实现的类。 |
java.util
Spliterators。 AbstractIntSpliterator
|
protected Spliterators.AbstractIntSpliterator( long est, int additionalCharacteristics) // 构造函数
public int characteristics() // 获取分隔迭代器的特性
public long estimateSize() // 获取分隔迭代器元素数量的估计值
public Spliterator.OfInt trySplit() // 尝试分割迭代器
|
完全实现的类。 |
java.util
Spliterators。 AbstractLongSpliterator
|
protected Spliterators.AbstractLongSpliterator( long est, int additionalCharacteristics) // 构造函数
public int characteristics() // 获取分隔迭代器的特性
public long estimateSize() // 获取分隔迭代器元素数量的估计值
public Spliterator.OfLong trySplit() // 尝试分割迭代器
|
完全实现的类。 |
java.util
Spliterators。 AbstractSpliterator
|
protected Spliterators.AbstractSpliterator( long est, int additionalCharacteristics) // 构造函数
public int characteristics() // 获取分隔迭代器的特性
public long estimateSize() // 获取分隔迭代器元素数量的估计值
public Spliterator trySplit() // 尝试分割迭代器
|
完全实现的类。 |
java.util
Spliterators
|
public static Spliterator.OfDouble emptyDoubleSpliterator() // 创建一个空的双精度浮点数Spliterator
public static Spliterator.OfInt emptyIntSpliterator() // 创建一个空的整数Spliterator
public static Spliterator.OfLong emptyLongSpliterator() // 创建一个空的整数Spliterator
public static Spliterator emptySpliterator() // 创建一个空的Spliterator
public static Iterator iterator( Spliterator spliterator) // 从Spliterator创建迭代器
public static PrimitiveIterator.OfDouble iterator( Spliterator.OfDouble spliterator) // 从双精度浮点数Spliterator创建迭代器
public static PrimitiveIterator.OfInt iterator( Spliterator.OfInt spliterator) // 从整数Spliterator创建迭代器
public static PrimitiveIterator.OfLong iterator( Spliterator.OfLong spliterator) // 从长整数Spliterator创建迭代器
public static Spliterator.OfDouble spliterator( PrimitiveIterator.OfDouble iterator, long size, int characteristics) // 构造函数
public static Spliterator.OfDouble spliterator( double[] array, int additionalCharacteristics) // 构造函数
public static Spliterator.OfDouble spliterator( double[] array, int fromIndex, int toIndex, int additionalCharacteristics) // 构造函数
public static Spliterator.OfInt spliterator( PrimitiveIterator.OfInt iterator, long size, int characteristics) // 构造函数
public static Spliterator.OfInt spliterator( int[] array, int additionalCharacteristics) // 构造函数
public static Spliterator.OfInt spliterator( int[] array, int fromIndex, int toIndex, int additionalCharacteristics) // 构造函数
public static Spliterator.OfLong spliterator( PrimitiveIterator.OfLong iterator, long size, int characteristics) // 构造函数
public static Spliterator.OfLong spliterator( long[] array, int additionalCharacteristics) // 构造函数
public static Spliterator.OfLong spliterator( long[] array, int fromIndex, int toIndex, int additionalCharacteristics) // 构造函数
public static Spliterator spliterator( Collection c, int characteristics) // 构造函数
public static Spliterator spliterator( Iterator iterator, long size, int characteristics) // 构造函数
public static Spliterator spliterator( Object[] array, int additionalCharacteristics) // 构造函数
public static Spliterator spliterator( Object[] array, int fromIndex, int toIndex, int additionalCharacteristics) // 构造函数
public static Spliterator.OfDouble spliteratorUnknownSize( PrimitiveIterator.OfDouble iterator, int characteristics) // 构造函数
public static Spliterator.OfInt spliteratorUnknownSize( PrimitiveIterator.OfInt iterator, int characteristics) // 构造函数
public static Spliterator.OfLong spliteratorUnknownSize( PrimitiveIterator.OfLong iterator, int characteristics) // 构造函数
public static Spliterator spliteratorUnknownSize( Iterator iterator, int characteristics) // 构造函数
|
完全实现的类。 |
java.util
StringJoiner(字符串连接器)
|
public StringJoiner(CharSequence delimiter) // 构造函数
public StringJoiner( CharSequence delimiter, CharSequence prefix, CharSequence suffix) // 构造函数
public StringJoiner add(CharSequence newElement) // 添加新的元素
public int length() 年份长度(天数)
public StringJoiner merge(StringJoiner other) // 合并另一个StringJoiner
public StringJoiner setEmptyValue( CharSequence emptyValue) // 设置空值
public String toString()
|
完全实现的类。 |
java.util
TimeZone(时区)
|
public static TimeZone getTimeZone(String p0) // 获取指定名称的时区
public static TimeZone getTimeZone( java.time.ZoneId p0) // 获取指定ZoneId的时区
public java.time.ZoneId toZoneId() // 将TimeZone转换为ZoneId
|
现有类中的附加方法。 |
java.util.concurrent
ConcurrentHashMap。 KeySetView
|
public boolean add(Object e) // 添加元素
public boolean addAll(Collection c) // 添加所有元素
public boolean contains(Object o) // 是否包含元素
public boolean equals(Object o) // 是否相等
public void forEach(Consumer action)
public Object getMappedValue() // 获取映射值
public int hashCode()
public Iterator iterator() // 获取迭代器
public boolean remove(Object o) // 删除元素
public Spliterator spliterator()
|
Android T 中存在的某些方法 (8 个) 不受支持。 |
java.util.concurrent
ConcurrentHashMap
|
public ConcurrentHashMap() // 构造函数
public ConcurrentHashMap(int initialCapacity) // 构造函数
public ConcurrentHashMap( int initialCapacity, float loadFactor) // 构造函数
public ConcurrentHashMap( int initialCapacity, float loadFactor, int concurrencyLevel) // 构造函数
public ConcurrentHashMap(Map m) // 构造函数
public void clear() // 清空
public Object compute( Object key, BiFunction remappingFunction)
public Object computeIfAbsent( Object key, Function mappingFunction)
public Object computeIfPresent( Object key, BiFunction remappingFunction)
public boolean contains(Object value) // 是否包含值
public boolean containsKey(Object key) // 是否包含键
public boolean containsValue(Object value) // 是否包含值
public Enumeration elements() // 获取元素枚举
public Set entrySet() // 获取条目集合
public boolean equals(Object o) // 是否相等
public void forEach( long parallelismThreshold, BiConsumer action) // 对每个元素执行操作
public void forEach( long parallelismThreshold, BiFunction transformer, Consumer action) // 对每个元素执行操作
public void forEach(BiConsumer action)
public void forEachEntry( long parallelismThreshold, Consumer action) // 对每个条目执行操作
public void forEachEntry( long parallelismThreshold, Function transformer, Consumer action) // 对每个元素执行操作
public void forEachKey( long parallelismThreshold, Consumer action) // 对每个条目执行操作
public void forEachKey( long parallelismThreshold, Function transformer, Consumer action) // 对每个元素执行操作
public void forEachValue( long parallelismThreshold, Consumer action) // 对每个条目执行操作
public void forEachValue( long parallelismThreshold, Function transformer, Consumer action) // 对每个元素执行操作
public Object get(Object key) // 获取指定键的值
public Object getOrDefault( Object key, Object defaultValue)
public int hashCode()
public boolean isEmpty() // 判断 Optional 是否为空
public Set keySet() // 获取键集合
public ConcurrentHashMap.KeySetView keySet( Object mappedValue) // 获取键集合
public Enumeration keys() // 获取键枚举
public long mappingCount() // 获取映射数量
public Object merge( Object key, Object value, BiFunction remappingFunction)
public static ConcurrentHashMap.KeySetView newKeySet() // 创建新的键集合
public static ConcurrentHashMap.KeySetView newKeySet( int initialCapacity) // 创建新的键集合
public Object put(Object key, Object value) // 添加键值对
public void putAll(Map m) // 添加所有键值对
public Object putIfAbsent(Object key, Object value)
public Object reduce( long parallelismThreshold, BiFunction transformer, BiFunction reducer) // 规约操作
public Object reduceEntries( long parallelismThreshold, Function transformer, BiFunction reducer) // 规约操作
public Map.Entry reduceEntries( long parallelismThreshold, BiFunction reducer) // 规约操作
public double reduceEntriesToDouble( long parallelismThreshold, ToDoubleFunction transformer, double basis, DoubleBinaryOperator reducer) // 规约操作
public int reduceEntriesToInt( long parallelismThreshold, ToIntFunction transformer, int basis, IntBinaryOperator reducer) // 规约操作
public long reduceEntriesToLong( long parallelismThreshold, ToLongFunction transformer, long basis, LongBinaryOperator reducer) // 规约操作
public Object reduceKeys( long parallelismThreshold, BiFunction reducer) // 规约操作
public Object reduceKeys( long parallelismThreshold, Function transformer, BiFunction reducer) // 规约操作
public double reduceKeysToDouble( long parallelismThreshold, ToDoubleFunction transformer, double basis, DoubleBinaryOperator reducer) // 规约操作
public int reduceKeysToInt( long parallelismThreshold, ToIntFunction transformer, int basis, IntBinaryOperator reducer) // 规约操作
public long reduceKeysToLong( long parallelismThreshold, ToLongFunction transformer, long basis, LongBinaryOperator reducer) // 规约操作
public double reduceToDouble( long parallelismThreshold, ToDoubleBiFunction transformer, double basis, DoubleBinaryOperator reducer) // 规约操作
public int reduceToInt( long parallelismThreshold, ToIntBiFunction transformer, int basis, IntBinaryOperator reducer) // 规约操作
public long reduceToLong( long parallelismThreshold, ToLongBiFunction transformer, long basis, LongBinaryOperator reducer) // 规约操作
public Object reduceValues( long parallelismThreshold, BiFunction reducer) // 规约操作
public Object reduceValues( long parallelismThreshold, Function transformer, BiFunction reducer) // 规约操作
public double reduceValuesToDouble( long parallelismThreshold, ToDoubleFunction transformer, double basis, DoubleBinaryOperator reducer) // 规约操作
public int reduceValuesToInt( long parallelismThreshold, ToIntFunction transformer, int basis, IntBinaryOperator reducer) // 规约操作
public long reduceValuesToLong( long parallelismThreshold, ToLongFunction transformer, long basis, LongBinaryOperator reducer) // 规约操作
public Object remove(Object key) // 删除指定键的值
public boolean remove(Object key, Object value)
public Object replace(Object key, Object value)
public boolean replace( Object key, Object oldValue, Object newValue)
public void replaceAll(BiFunction function)
public Object search( long parallelismThreshold, BiFunction searchFunction) // 搜索操作
public Object searchEntries( long parallelismThreshold, Function searchFunction) // 搜索操作
public Object searchKeys( long parallelismThreshold, Function searchFunction) // 搜索操作
public Object searchValues( long parallelismThreshold, Function searchFunction) // 搜索操作
public int size() // 获取大小
public String toString()
public Collection values() // 获取值集合
|
完全实现的类。 |
java.util.concurrent
ConcurrentMap(并发映射)
|
public Object compute( Object key, BiFunction remappingFunction)
public Object computeIfAbsent( Object key, Function mappingFunction)
public Object computeIfPresent( Object key, BiFunction remappingFunction)
public void forEach(BiConsumer action)
public Object getOrDefault( Object key, Object defaultValue)
public Object merge( Object key, Object value, BiFunction remappingFunction)
public void replaceAll(BiFunction function)
|
现有类中的附加方法。 |
java.util.concurrent
Flow。 Publisher(发布者)
|
public abstract void subscribe(Flow.Subscriber p0) // 订阅
|
完全实现的类。 |
java.util.concurrent
Flow。 Subscriber(订阅者)
|
public abstract void onComplete() // 完成
public abstract void onError(Throwable p0) // 错误
public abstract void onNext(Object p0) // 下一个
public abstract void onSubscribe( Flow.Subscription p0) // 订阅
|
完全实现的类。 |
java.util.concurrent
Flow。 Subscription(订阅)
|
public abstract void cancel()
public abstract void request(long p0) // 请求
|
完全实现的类。 |
java.util.concurrent
Flow
|
public static int defaultBufferSize() // 获取默认缓冲区大小
|
完全实现的类。 |
java.util.concurrent
ThreadLocalRandom(线程局部随机数)
|
public static ThreadLocalRandom current() // 获取当前线程的ThreadLocalRandom
public DoubleStream doubles() // 获取双精度浮点数流
public DoubleStream doubles( double randomNumberOrigin, double randomNumberBound) // 获取双精度浮点数流
public DoubleStream doubles(long streamSize) // 获取双精度浮点数流
public DoubleStream doubles( long streamSize, double randomNumberOrigin, double randomNumberBound) // 获取双精度浮点数流
public IntStream ints() // 获取整数流
public IntStream ints( int randomNumberOrigin, int randomNumberBound) // 获取整数流
public IntStream ints(long streamSize) // 获取整数流
public IntStream ints( long streamSize, int randomNumberOrigin, int randomNumberBound) // 获取整数流
public LongStream longs() // 获取长整数流
public LongStream longs(long streamSize)
public LongStream longs( long randomNumberOrigin, long randomNumberBound)
public LongStream longs( long streamSize, long randomNumberOrigin, long randomNumberBound)
protected int next(int bits)
public boolean nextBoolean()
public double nextDouble()
public double nextDouble(double bound)
public double nextDouble( double origin, double bound)
public float nextFloat()
public double nextGaussian()
public int nextInt()
public int nextInt(int bound)
public int nextInt(int origin, int bound)
public long nextLong()
public long nextLong(long bound)
public long nextLong(long origin, long bound)
public void setSeed(long seed)
|
完全实现的类。 |
java.util.concurrent
TimeUnit
|
public long convert(java.time.Duration p0)
public static TimeUnit of( java.time.temporal.ChronoUnit p0)
public java.time.temporal.ChronoUnit toChronoUnit()
|
现有类中的附加方法。 |
java.util. concurrent.atomic
AtomicInteger
|
public final int accumulateAndGet( int p0, IntBinaryOperator p1)
public final int getAndAccumulate( int p0, IntBinaryOperator p1)
public final int getAndUpdate(IntUnaryOperator p0)
public final int updateAndGet(IntUnaryOperator p0)
|
现有类中的附加方法。 |
java.util. concurrent.atomic
AtomicLong
|
public final long accumulateAndGet( long p0, LongBinaryOperator p1)
public final long getAndAccumulate( long p0, LongBinaryOperator p1)
public final long getAndUpdate(LongUnaryOperator p0)
public final long updateAndGet(LongUnaryOperator p0)
|
现有类中的附加方法。 |
java.util. concurrent.atomic
AtomicReference
|
public final Object accumulateAndGet( Object p0, BinaryOperator p1)
public final Object getAndAccumulate( Object p0, BinaryOperator p1)
public final Object getAndUpdate(UnaryOperator p0)
public final Object updateAndGet(UnaryOperator p0)
|
现有类中的附加方法。 |
java.util.function
BiConsumer
|
public abstract void accept(Object p0, Object p1)
public BiConsumer andThen(BiConsumer after)
|
完全实现的类。 |
java.util.function
BiFunction
|
public BiFunction andThen(Function after)
public abstract Object apply(Object p0, Object p1)
|
完全实现的类。 |
java.util.function
BiPredicate
|
public BiPredicate and(BiPredicate other)
public BiPredicate negate()
public BiPredicate or(BiPredicate other)
public abstract boolean test(Object p0, Object p1)
|
完全实现的类。 |
java.util.function
BinaryOperator
|
public static BinaryOperator maxBy( Comparator comparator)
public static BinaryOperator minBy( Comparator comparator)
|
完全实现的类。 |
java.util.function
BooleanSupplier
|
public abstract boolean getAsBoolean()
|
完全实现的类。 |
java.util.function
Consumer
|
public abstract void accept(Object p0)
public Consumer andThen(Consumer after)
|
完全实现的类。 |
java.util.function
DoubleBinaryOperator
|
public abstract double applyAsDouble( double p0, double p1)
|
完全实现的类。 |
java.util.function
DoubleConsumer
|
public abstract void accept(double p0)
public DoubleConsumer andThen(DoubleConsumer after)
|
完全实现的类。 |
java.util.function
DoubleFunction
|
public abstract Object apply(double p0)
|
完全实现的类。 |
java.util.function
DoublePredicate
|
public DoublePredicate and(DoublePredicate other)
public DoublePredicate negate()
public DoublePredicate or(DoublePredicate other)
public abstract boolean test(double p0)
|
完全实现的类。 |
java.util.function
DoubleSupplier
|
public abstract double getAsDouble()
|
完全实现的类。 |
java.util.function
DoubleToIntFunction
|
public abstract int applyAsInt(double p0)
|
完全实现的类。 |
java.util.function
DoubleToLongFunction
|
public abstract long applyAsLong(double p0)
|
完全实现的类。 |
java.util.function
DoubleUnaryOperator
|
public DoubleUnaryOperator andThen( DoubleUnaryOperator after)
public abstract double applyAsDouble(double p0)
public DoubleUnaryOperator compose( DoubleUnaryOperator before)
public static DoubleUnaryOperator identity()
|
完全实现的类。 |
java.util.function
Function
|
public Function andThen(Function after)
public abstract Object apply(Object p0)
public Function compose(Function before)
public static Function identity()
|
完全实现的类。 |
java.util.function
IntBinaryOperator
|
public abstract int applyAsInt(int p0, int p1)
|
完全实现的类。 |
java.util.function
IntConsumer
|
public abstract void accept(int p0)
public IntConsumer andThen(IntConsumer after)
|
完全实现的类。 |
java.util.function
IntFunction
|
public abstract Object apply(int p0)
|
完全实现的类。 |
java.util.function
IntPredicate
|
public IntPredicate and(IntPredicate other)
public IntPredicate negate()
public IntPredicate or(IntPredicate other)
public abstract boolean test(int p0)
|
完全实现的类。 |
java.util.function
IntSupplier
|
public abstract int getAsInt()
|
完全实现的类。 |
java.util.function
IntToDoubleFunction
|
public abstract double applyAsDouble(int p0)
|
完全实现的类。 |
java.util.function
IntToLongFunction
|
public abstract long applyAsLong(int p0)
|
完全实现的类。 |
java.util.function
IntUnaryOperator
|
public IntUnaryOperator andThen( IntUnaryOperator after)
public abstract int applyAsInt(int p0)
public IntUnaryOperator compose( IntUnaryOperator before)
public static IntUnaryOperator identity()
|
完全实现的类。 |
java.util.function
LongBinaryOperator
|
public abstract long applyAsLong(long p0, long p1)
|
完全实现的类。 |
java.util.function
LongConsumer
|
public abstract void accept(long p0)
public LongConsumer andThen(LongConsumer after)
|
完全实现的类。 |
java.util.function
LongFunction
|
public abstract Object apply(long p0)
|
完全实现的类。 |
java.util.function
LongPredicate
|
public LongPredicate and(LongPredicate other)
public LongPredicate negate()
public LongPredicate or(LongPredicate other)
public abstract boolean test(long p0)
|
完全实现的类。 |
java.util.function
LongSupplier
|
public abstract long getAsLong()
|
完全实现的类。 |
java.util.function
LongToDoubleFunction
|
public abstract double applyAsDouble(long p0)
|
完全实现的类。 |
java.util.function
LongToIntFunction
|
public abstract int applyAsInt(long p0)
|
完全实现的类。 |
java.util.function
LongUnaryOperator
|
public LongUnaryOperator andThen( LongUnaryOperator after)
public abstract long applyAsLong(long p0)
public LongUnaryOperator compose( LongUnaryOperator before)
public static LongUnaryOperator identity()
|
完全实现的类。 |
java.util.function
ObjDoubleConsumer
|
public abstract void accept(Object p0, double p1)
|
完全实现的类。 |
java.util.function
ObjIntConsumer
|
public abstract void accept(Object p0, int p1)
|
完全实现的类。 |
java.util.function
ObjLongConsumer
|
public abstract void accept(Object p0, long p1)
|
完全实现的类。 |
java.util.function
Predicate
|
public Predicate and(Predicate other)
public static Predicate isEqual(Object targetRef)
public Predicate negate()
public static Predicate not(Predicate target)
public Predicate or(Predicate other)
public abstract boolean test(Object p0)
|
完全实现的类。 |
java.util.function
Supplier
|
public abstract Object get()
|
完全实现的类。 |
java.util.function
ToDoubleBiFunction
|
public abstract double applyAsDouble( Object p0, Object p1)
|
完全实现的类。 |
java.util.function
ToDoubleFunction
|
public abstract double applyAsDouble(Object p0)
|
完全实现的类。 |
java.util.function
ToIntBiFunction
|
public abstract int applyAsInt(Object p0, Object p1)
|
完全实现的类。 |
java.util.function
ToIntFunction
|
public abstract int applyAsInt(Object p0)
|
完全实现的类。 |
java.util.function
ToLongBiFunction
|
public abstract long applyAsLong( Object p0, Object p1)
|
完全实现的类。 |
java.util.function
ToLongFunction
|
public abstract long applyAsLong(Object p0)
|
完全实现的类。 |
java.util.function
UnaryOperator
|
public static UnaryOperator identity()
|
完全实现的类。 |
java.util.stream
BaseStream
|
public abstract void close()
public abstract boolean isParallel()
public abstract Iterator iterator()
public abstract BaseStream onClose(Runnable p0)
public abstract BaseStream parallel()1
public abstract BaseStream sequential()
public abstract Spliterator spliterator()
public abstract BaseStream unordered()
|
1 仅在API级别为21或更高的设备上支持。 |
java.util.stream
Collector. Characteristics
|
public static final Collector.Characteristics CONCURRENT
public static final Collector.Characteristics IDENTITY_FINISH
public static final Collector.Characteristics UNORDERED
public static Collector.Characteristics valueOf( String name)
public static Collector.Characteristics[] values()
|
完全实现的类。 |
java.util.stream
Collector
|
public abstract BiConsumer accumulator()
public abstract Set characteristics()
public abstract BinaryOperator combiner()
public abstract Function finisher()
public static Collector of( Supplier supplier, BiConsumer accumulator, BinaryOperator combiner, Function finisher, Collector.Characteristics[] characteristics)
public static Collector of( Supplier supplier, BiConsumer accumulator, BinaryOperator combiner, Collector.Characteristics[] characteristics)
public abstract Supplier supplier()
|
完全实现的类。 |
java.util.stream
Collectors
|
public static Collector averagingDouble( ToDoubleFunction mapper)
public static Collector averagingInt( ToIntFunction mapper)
public static Collector averagingLong( ToLongFunction mapper)
public static Collector collectingAndThen( Collector downstream, Function finisher)
public static Collector counting()
public static Collector filtering( Predicate predicate, Collector downstream)
public static Collector flatMapping( Function mapper, Collector downstream)
public static Collector groupingBy( Function classifier)
public static Collector groupingBy( Function classifier, Supplier mapFactory, Collector downstream)
public static Collector groupingBy( Function classifier, Collector downstream)
public static Collector groupingByConcurrent( Function classifier)
public static Collector groupingByConcurrent( Function classifier, Supplier mapFactory, Collector downstream)
public static Collector groupingByConcurrent( Function classifier, Collector downstream)
public static Collector joining()
public static Collector joining( CharSequence delimiter)
public static Collector joining( CharSequence delimiter, CharSequence prefix, CharSequence suffix) // 构造函数
public static Collector mapping( Function mapper, Collector downstream)
public static Collector maxBy(Comparator comparator)
public static Collector minBy(Comparator comparator)
public static Collector partitioningBy( Predicate predicate)
public static Collector partitioningBy( Predicate predicate, Collector downstream)
public static Collector reducing( Object identity, BinaryOperator op)
public static Collector reducing( Object identity, Function mapper, BinaryOperator op)
public static Collector reducing(BinaryOperator op)
public static Collector summarizingDouble( ToDoubleFunction mapper)
public static Collector summarizingInt( ToIntFunction mapper)
public static Collector summarizingLong( ToLongFunction mapper)
public static Collector summingDouble( ToDoubleFunction mapper)
public static Collector summingInt( ToIntFunction mapper)
public static Collector summingLong( ToLongFunction mapper)
public static Collector toCollection( Supplier collectionFactory)
public static Collector toConcurrentMap( Function keyMapper, Function valueMapper)
public static Collector toConcurrentMap( Function keyMapper, Function valueMapper, BinaryOperator mergeFunction)
public static Collector toConcurrentMap( Function keyMapper, Function valueMapper, BinaryOperator mergeFunction, Supplier mapFactory)
public static Collector toList()
public static Collector toMap( Function keyMapper, Function valueMapper)
public static Collector toMap( Function keyMapper, Function valueMapper, BinaryOperator mergeFunction)
public static Collector toMap( Function keyMapper, Function valueMapper, BinaryOperator mergeFunction, Supplier mapFactory)
public static Collector toSet()
public static Collector toUnmodifiableList()
public static Collector toUnmodifiableMap( Function keyMapper, Function valueMapper)
public static Collector toUnmodifiableMap( Function keyMapper, Function valueMapper, BinaryOperator mergeFunction)
public static Collector toUnmodifiableSet()
|
完全实现的类。 |
java.util.stream
DoubleStream. Builder
|
public abstract void accept(double p0)
public DoubleStream.Builder add(double t)
public abstract DoubleStream build()
|
完全实现的类。 |
java.util.stream
DoubleStream
|
public abstract boolean allMatch(DoublePredicate p0)
public abstract boolean anyMatch(DoublePredicate p0)
public abstract OptionalDouble average()
public abstract Stream boxed()
public static DoubleStream.Builder builder()
public abstract Object collect( Supplier p0, ObjDoubleConsumer p1, BiConsumer p2)
public static DoubleStream concat( DoubleStream a, DoubleStream b)
public abstract long count()
public abstract DoubleStream distinct()
public DoubleStream dropWhile( DoublePredicate predicate)23
public static DoubleStream empty()
public abstract DoubleStream filter( DoublePredicate p0)
public abstract OptionalDouble findAny()
public abstract OptionalDouble findFirst()
public abstract DoubleStream flatMap( DoubleFunction p0)
public abstract void forEach(DoubleConsumer p0)
public abstract void forEachOrdered( DoubleConsumer p0) // 尝试对下一个双精度浮点数元素执行给定的操作,并返回是否成功
public static DoubleStream generate( DoubleSupplier s)
public static DoubleStream iterate( double seed, DoublePredicate hasNext, DoubleUnaryOperator next)2
public static DoubleStream iterate( double seed, DoubleUnaryOperator f)
public abstract PrimitiveIterator.OfDouble iterator()
public abstract DoubleStream limit(long p0)
public abstract DoubleStream map( DoubleUnaryOperator p0)
public abstract IntStream mapToInt( DoubleToIntFunction p0)
public abstract LongStream mapToLong( DoubleToLongFunction p0)
public abstract Stream mapToObj(DoubleFunction p0)
public abstract OptionalDouble max()
public abstract OptionalDouble min()
public abstract boolean noneMatch( DoublePredicate p0)
public static DoubleStream of(double t)
public static DoubleStream of(double[] values)
public abstract DoubleStream parallel()1
public abstract DoubleStream peek(DoubleConsumer p0)
public abstract double reduce( double p0, DoubleBinaryOperator p1)
public abstract OptionalDouble reduce( DoubleBinaryOperator p0)
public abstract DoubleStream sequential()
public abstract DoubleStream skip(long p0)
public abstract DoubleStream sorted()
public abstract Spliterator.OfDouble spliterator()
public abstract double sum()
public abstract DoubleSummaryStatistics summaryStatistics()
public DoubleStream takeWhile( DoublePredicate predicate)23
public abstract double[] toArray()
|
1 仅在API级别为21或更高的设备上支持。 2 Android T中不存在(编译时可能无法解析)。 3 所有minSDK级别均不支持。 |
java.util.stream
IntStream. Builder
|
public abstract void accept(int p0)
public IntStream.Builder add(int t)
public abstract IntStream build()
|
完全实现的类。 |
java.util.stream
IntStream
|
public abstract boolean allMatch(IntPredicate p0)
public abstract boolean anyMatch(IntPredicate p0)
public abstract DoubleStream asDoubleStream()
public abstract LongStream asLongStream()
public abstract OptionalDouble average()
public abstract Stream boxed()
public static IntStream.Builder builder()
public abstract Object collect( Supplier p0, ObjIntConsumer p1, BiConsumer p2)
public static IntStream concat( IntStream a, IntStream b)
public abstract long count()
public abstract IntStream distinct()
public IntStream dropWhile( IntPredicate predicate)23
public static IntStream empty()
public abstract IntStream filter(IntPredicate p0)
public abstract OptionalInt findAny()
public abstract OptionalInt findFirst()
public abstract IntStream flatMap(IntFunction p0)
public abstract void forEach(IntConsumer p0)
public abstract void forEachOrdered(IntConsumer p0)
public static IntStream generate(IntSupplier s)
public static IntStream iterate( int seed, IntPredicate hasNext, IntUnaryOperator next)2
public static IntStream iterate( int seed, IntUnaryOperator f)
public abstract PrimitiveIterator.OfInt iterator()
public abstract IntStream limit(long p0)
public abstract IntStream map(IntUnaryOperator p0)
public abstract DoubleStream mapToDouble( IntToDoubleFunction p0)
public abstract LongStream mapToLong( IntToLongFunction p0)
public abstract Stream mapToObj(IntFunction p0)
public abstract OptionalInt max()
public abstract OptionalInt min()
public abstract boolean noneMatch(IntPredicate p0)
public static IntStream of(int t)
public static IntStream of(int[] values)
public abstract IntStream parallel()1
public abstract IntStream peek(IntConsumer p0)
public static IntStream range( int startInclusive, int endExclusive)
public static IntStream rangeClosed( int startInclusive, int endInclusive)
public abstract int reduce( int p0, IntBinaryOperator p1)
public abstract OptionalInt reduce( IntBinaryOperator p0)
public abstract IntStream sequential()
public abstract IntStream skip(long p0)
public abstract IntStream sorted()
public abstract Spliterator.OfInt spliterator()
public abstract int sum()
public abstract IntSummaryStatistics summaryStatistics()
public IntStream takeWhile( IntPredicate predicate)23
public abstract int[] toArray()
|
1 仅在API级别为21或更高的设备上支持。 2 Android T中不存在(编译时可能无法解析)。 3 所有minSDK级别均不支持。 |
java.util.stream
LongStream. Builder
|
public abstract void accept(long p0)
public LongStream.Builder add(long t)
public abstract LongStream build()
|
完全实现的类。 |
java.util.stream
LongStream
|
public abstract boolean allMatch(LongPredicate p0)
public abstract boolean anyMatch(LongPredicate p0)
public abstract DoubleStream asDoubleStream()
public abstract OptionalDouble average()
public abstract Stream boxed()
public static LongStream.Builder builder()
public abstract Object collect( Supplier p0, ObjLongConsumer p1, BiConsumer p2)
public static LongStream concat( LongStream a, LongStream b)
public abstract long count()
public abstract LongStream distinct()
public LongStream dropWhile( LongPredicate predicate)23
public static LongStream empty()
public abstract LongStream filter(LongPredicate p0)
public abstract OptionalLong findAny()
public abstract OptionalLong findFirst()
public abstract LongStream flatMap(LongFunction p0)
public abstract void forEach(LongConsumer p0)
public abstract void forEachOrdered(LongConsumer p0)
public static LongStream generate(LongSupplier s)
public static LongStream iterate( long seed, LongPredicate hasNext, LongUnaryOperator next)2
public static LongStream iterate( long seed, LongUnaryOperator f)
public abstract PrimitiveIterator.OfLong iterator()
public abstract LongStream limit(long p0)
public abstract LongStream map(LongUnaryOperator p0)
public abstract DoubleStream mapToDouble( LongToDoubleFunction p0)
public abstract IntStream mapToInt( LongToIntFunction p0)
public abstract Stream mapToObj(LongFunction p0)
public abstract OptionalLong max()
public abstract OptionalLong min()
public abstract boolean noneMatch(LongPredicate p0)
public static LongStream of(long t)
public static LongStream of(long[] values)
public abstract LongStream parallel()1
public abstract LongStream peek(LongConsumer p0)
public static LongStream range( long startInclusive, long endExclusive)
public static LongStream rangeClosed( long startInclusive, long endInclusive)
public abstract long reduce( long p0, LongBinaryOperator p1)
public abstract OptionalLong reduce( LongBinaryOperator p0)
public abstract LongStream sequential()
public abstract LongStream skip(long p0)
public abstract LongStream sorted()
public abstract Spliterator.OfLong spliterator()
public abstract long sum()
public abstract LongSummaryStatistics summaryStatistics()
public LongStream takeWhile( LongPredicate predicate)23
public abstract long[] toArray()
|
1 仅在API级别为21或更高的设备上支持。 2 Android T中不存在(编译时可能无法解析)。 3 所有minSDK级别均不支持。 |
java.util.stream
Stream. Builder
|
public abstract void accept(Object p0)
public Stream.Builder add(Object t)
public abstract Stream build()
|
完全实现的类。 |
java.util.stream
Stream
|
public abstract boolean allMatch(Predicate p0)
public abstract boolean anyMatch(Predicate p0)
public static Stream.Builder builder()
public abstract Object collect( Supplier p0, BiConsumer p1, BiConsumer p2)
public abstract Object collect(Collector p0)
public static Stream concat(Stream a, Stream b)
public abstract long count()
public abstract Stream distinct()
public Stream dropWhile( Predicate predicate)23
public static Stream empty()
public abstract Stream filter(Predicate p0)
public abstract Optional findAny()
public abstract Optional findFirst()
public abstract Stream flatMap(Function p0)
public abstract DoubleStream flatMapToDouble( Function p0)
public abstract IntStream flatMapToInt(Function p0)
public abstract LongStream flatMapToLong( Function p0)
public abstract void forEach(Consumer p0)
public abstract void forEachOrdered(Consumer p0)
public static Stream generate(Supplier s)
public static Stream iterate( Object seed, Predicate hasNext, UnaryOperator next)2
public static Stream iterate( Object seed, UnaryOperator f)
public abstract Stream limit(long p0)
public abstract Stream map(Function p0)
public abstract DoubleStream mapToDouble( ToDoubleFunction p0)
public abstract IntStream mapToInt(ToIntFunction p0)
public abstract LongStream mapToLong( ToLongFunction p0)
public abstract Optional max(Comparator p0)
public abstract Optional min(Comparator p0)
public abstract boolean noneMatch(Predicate p0)
public static Stream of(Object t)
public static Stream of(Object[] values)
public static Stream ofNullable( Object t)2
public abstract Stream peek(Consumer p0)
public abstract Object reduce( Object p0, BiFunction p1, BinaryOperator p2)
public abstract Object reduce( Object p0, BinaryOperator p1)
public abstract Optional reduce(BinaryOperator p0)
public abstract Stream skip(long p0)
public abstract Stream sorted()
public abstract Stream sorted(Comparator p0)
public Stream takeWhile( Predicate predicate)23
public abstract Object[] toArray()
public abstract Object[] toArray(IntFunction p0)
|
2 Android T中不存在(编译时可能无法解析)。 3 所有minSDK级别均不支持。 |
java.util.stream
StreamSupport
|
public static DoubleStream doubleStream( Spliterator.OfDouble spliterator, boolean parallel)
public static DoubleStream doubleStream( Supplier supplier, int characteristics, boolean parallel)
public static IntStream intStream( Spliterator.OfInt spliterator, boolean parallel)
public static IntStream intStream( Supplier supplier, int characteristics, boolean parallel)
public static LongStream longStream( Spliterator.OfLong spliterator, boolean parallel)
public static LongStream longStream( Supplier supplier, int characteristics, boolean parallel)
public static Stream stream( Spliterator spliterator, boolean parallel)
public static Stream stream( Supplier supplier, int characteristics, boolean parallel)
|
完全实现的类。 |