Package | Description |
---|---|
java.io |
Provides for system input and output through data streams and the file system.
|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.lang.annotation |
Provides library support for the Java programming language annotation facility.
|
java.lang.ref |
Provides reference-object classes, which support a limited degree of
interaction with the garbage collector.
|
java.net |
Provides exceptions related to socket connections.
|
java.nio |
Defines buffers, which are containers for data.
|
java.nio.channels |
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files.
|
java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
java.nio.file.attribute |
Interfaces and classes providing access to file and file system attributes.
|
java.security |
Provides the classes and interfaces for the security framework.
|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
classes.
|
java.util.logging |
Provides the classes and interfaces of the CLDC platform's core logging facilities.
|
Modifier and Type | Class and Description |
---|---|
class |
BufferedReader
Reads text from a character-input stream, buffering characters so as to
provide for the efficient reading of characters, arrays, and lines.
|
class |
BufferedWriter
Writes text to a character-output stream, buffering characters so as to
provide for the efficient writing of single characters, arrays, and strings.
|
class |
ByteArrayInputStream
A
ByteArrayInputStream contains
an internal buffer that contains bytes that
may be read from the stream. |
class |
ByteArrayOutputStream
This class implements an output stream in which the data is
written into a byte array.
|
class |
DataInputStream
A data input stream lets an application read primitive Java data
types from an underlying input stream in a machine-independent
way.
|
class |
DataOutputStream
A data output stream lets an application write primitive Java data
types to an output stream in a portable way.
|
class |
EOFException
Signals that an end of file or end of stream has been reached
unexpectedly during input.
|
class |
FilePermission
This class represents access to a file or directory.
|
class |
InputStream
This abstract class is the superclass of all classes representing
an input stream of bytes.
|
class |
InputStreamReader
An InputStreamReader is a bridge from byte streams to character streams: It
reads bytes and decodes them into characters using a specified
charset . |
class |
InterruptedIOException
Signals that an I/O operation has been interrupted.
|
class |
IOException
Signals that an I/O exception of some sort has occurred.
|
class |
OutputStream
This abstract class is the superclass of all classes representing
an output stream of bytes.
|
class |
OutputStreamWriter
An OutputStreamWriter is a bridge from character streams to byte streams:
Characters written to it are encoded into bytes using a specified
charset . |
class |
PrintStream
A
PrintStream adds functionality to another output stream,
namely the ability to print representations of various data values
conveniently. |
class |
Reader
Abstract class for reading character streams.
|
class |
UnsupportedEncodingException
The Character Encoding is not supported.
|
class |
UTFDataFormatException
Signals that a malformed string in
modified UTF-8
format has been read in a data
input stream or by any class that implements the data input
interface.
|
class |
Writer
Abstract class for writing to character streams.
|
Modifier and Type | Field and Description |
---|---|
protected Object |
Writer.lock
The object used to synchronize operations on this stream.
|
protected Object |
Reader.lock
The object used to synchronize operations on this stream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FilePermission.equals(Object obj)
Checks two FilePermission objects for equality.
|
PrintStream |
PrintStream.format(String format,
Object... args)
Writes a formatted string to this output stream using the specified
format string and arguments.
|
void |
PrintStream.print(Object obj)
Prints an object.
|
PrintStream |
PrintStream.printf(String format,
Object... args)
A convenience method to write a formatted string to this output stream
using the specified format string and arguments.
|
void |
PrintStream.println(Object x)
Prints an Object and then terminate the line.
|
Constructor and Description |
---|
Reader(Object lock)
Creates a new character-stream reader whose critical sections will
synchronize on the given object.
|
Writer(Object lock)
Creates a new character-stream writer whose critical sections will
synchronize on the given object.
|
Modifier and Type | Class and Description |
---|---|
class |
ArithmeticException
Thrown when an exceptional arithmetic condition has occurred.
|
class |
ArrayIndexOutOfBoundsException
Thrown to indicate that an array has been accessed with an
illegal index.
|
class |
ArrayStoreException
Thrown to indicate that an attempt has been made to store the
wrong type of object into an array of objects.
|
class |
AssertionError
Thrown to indicate that an assertion has failed.
|
class |
Boolean
The Boolean class wraps a value of the primitive type
boolean in an object. |
class |
Byte
The
Byte class wraps a value of primitive type byte
in an object. |
class |
Character
The
Character class wraps a value of the primitive
type char in an object. |
class |
Class<T>
Instances of the class
Class represent classes and
interfaces in a running Java application. |
class |
ClassCastException
Thrown to indicate that the code has attempted to cast an object
to a subclass of which it is not an instance.
|
class |
ClassFormatError
Thrown when the Java Virtual Machine attempts to read a class
file and determines that the file is malformed or otherwise cannot
be interpreted as a class file.
|
class |
ClassNotFoundException
Thrown when an application tries to load in a class through its
string name using:
The
forName method in class Class . |
class |
CloneNotSupportedException
Thrown to indicate that the
clone method in class
Object has been called to clone an object, but that
the object's class does not implement the Cloneable
interface. |
class |
Double
The
Double class wraps a value of the primitive type
double in an object. |
class |
Enum<E extends Enum<E>>
This is the common base class of all Java language enumeration types.
|
class |
Error
An
Error is a subclass of Throwable
that indicates serious problems that a reasonable application
should not try to catch. |
class |
Exception
The class
Exception and its subclasses are a form of
Throwable that indicates conditions that a reasonable
application might want to catch. |
class |
Float
The
Float class wraps a value of primitive type
float in an object. |
class |
IllegalAccessException
An IllegalAccessException is thrown when an application tries
to create an instance (other than an array),
set or get a field, or invoke a method, but the currently
executing method does not have access to the definition of
the specified class, field, method or constructor.
|
class |
IllegalArgumentException
Thrown to indicate that a method has been passed an illegal or
inappropriate argument.
|
class |
IllegalMonitorStateException
Thrown to indicate that a thread has attempted to wait on an
object's monitor or to notify other threads waiting on an object's
monitor without owning the specified monitor.
|
class |
IllegalStateException
Signals that a method has been invoked at an illegal or
inappropriate time.
|
class |
IllegalThreadStateException
Thrown to indicate that a thread is not in an appropriate state
for the requested operation.
|
class |
IncompatibleClassChangeError
Thrown when an incompatible class change has occurred to some class
definition.
|
class |
IndexOutOfBoundsException
Thrown to indicate that an index of some sort (such as to an array, to a
string, or to a vector) is out of range.
|
class |
InstantiationException
Thrown when an application tries to create an instance of a class
using the
newInstance method in class
Class , but the specified class object cannot be
instantiated. |
class |
Integer
The
Integer class wraps a value of the primitive type
int in an object. |
class |
InterruptedException
Thrown when a thread is waiting, sleeping, or otherwise occupied,
and the thread is interrupted, either before or during the activity.
|
class |
LinkageError
Subclasses of
LinkageError indicate that a class has
some dependency on another class; however, the latter class has
incompatibly changed after the compilation of the former class. |
class |
Long
The
Long class wraps a value of the primitive type long in an object. |
class |
Math
The class
Math contains methods for performing basic
numeric operations such as the elementary exponential, logarithm,
square root, and trigonometric functions. |
class |
NegativeArraySizeException
Thrown if an application tries to create an array with negative size.
|
class |
NoClassDefFoundError
Thrown if the Java Virtual Machine
tries to load in the definition of a class (as part of a normal method call
or as part of creating a new instance using the
new expression)
and no definition of the class could be found. |
class |
NoSuchFieldError
Thrown if an application tries to access or modify a specified
field of an object, and that object no longer has that field.
|
class |
NullPointerException
Thrown when an application attempts to use
null in a
case where an object is required. |
class |
Number
The abstract class
Number is the superclass of
Byte , Double , Float ,
Integer , Long , and Short . |
class |
NumberFormatException
Thrown to indicate that the application has attempted to convert
a string to one of the numeric types, but that the string does not
have the appropriate format.
|
class |
OutOfMemoryError
Thrown when the Java Virtual Machine cannot allocate an object
because it is out of memory, and no more memory could be made
available by the garbage collector.
|
class |
Runtime
Every Java application has a single instance of class
Runtime that allows the application to interface with
the environment in which the application is running. |
class |
RuntimeException
RuntimeException is the superclass of those
exceptions that can be thrown during the normal operation of the
Java Virtual Machine. |
class |
RuntimePermission
This class is for runtime permissions.
|
class |
SecurityException
Thrown by the security manager to indicate a security violation.
|
class |
SecurityManager
The security manager is a class that allows
applications to implement a security policy.
|
class |
Short
The
Short class wraps a value of primitive type short in an object. |
class |
String
The
String class represents character strings. |
class |
StringBuffer
A thread-safe, mutable sequence of characters.
|
class |
StringBuilder
A mutable sequence of characters.
|
class |
StringIndexOutOfBoundsException
Thrown by
String methods to indicate that an index
is either negative or greater than the size of the string. |
class |
System
The
System class contains several useful class fields
and methods. |
class |
Thread
A thread is a thread of execution in a program.
|
class |
Throwable
The
Throwable class is the superclass of all errors and
exceptions in the Java language. |
class |
UnsupportedClassVersionError
Thrown when the Java Virtual Machine attempts to read a class
file and determines that the major and minor version numbers
in the file are not supported.
|
class |
UnsupportedOperationException
Thrown to indicate that the requested operation is not supported.
|
class |
VirtualMachineError
Thrown to indicate that the Java Virtual Machine is broken or has
run out of resources necessary for it to continue operating.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
Object.clone()
Creates and returns a copy of this object.
|
protected Object |
Enum.clone()
Throws CloneNotSupportedException.
|
Modifier and Type | Method and Description |
---|---|
StringBuilder |
StringBuilder.append(Object obj) |
StringBuffer |
StringBuffer.append(Object obj) |
static void |
System.arraycopy(Object src,
int srcPos,
Object dest,
int destPos,
int length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
T |
Class.cast(Object obj)
Casts an object to the class or interface represented
by this
Class object. |
boolean |
String.equals(Object anObject)
Compares this string to the specified object.
|
boolean |
Short.equals(Object obj)
Compares this object to the specified object.
|
boolean |
Object.equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
boolean |
Long.equals(Object obj)
Compares this object to the specified object.
|
boolean |
Integer.equals(Object obj)
Compares this object to the specified object.
|
boolean |
Float.equals(Object obj)
Compares this object against the specified object.
|
boolean |
Enum.equals(Object other)
Returns true if the specified object is equal to this
enum constant.
|
boolean |
Double.equals(Object obj)
Compares this object against the specified object.
|
boolean |
Character.equals(Object obj)
Compares this object against the specified object.
|
boolean |
Byte.equals(Object obj)
Compares this object to the specified object.
|
boolean |
Boolean.equals(Object obj)
Returns
true if and only if the argument is not
null and is a Boolean object that
represents the same boolean value as this object. |
static String |
String.format(String format,
Object... args)
Returns a formatted string using the specified format string and
arguments.
|
static boolean |
Thread.holdsLock(Object obj)
Returns true if and only if the current thread holds the
monitor lock on the specified object.
|
static int |
System.identityHashCode(Object x)
Returns the same hash code for the given object as
would be returned by the default method hashCode(),
whether or not the given object's class overrides
hashCode().
|
StringBuilder |
StringBuilder.insert(int offset,
Object obj) |
StringBuffer |
StringBuffer.insert(int offset,
Object obj) |
boolean |
Class.isInstance(Object obj)
Determines if the specified
Object is assignment-compatible
with the object represented by this Class . |
static String |
String.valueOf(Object obj)
Returns the string representation of the
Object argument. |
Constructor and Description |
---|
AssertionError(Object detailMessage)
Constructs an AssertionError with its detail message derived
from the specified object, which is converted to a string as
defined in section 15.18.1.1 of
The Java™ Language Specification.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Annotation.equals(Object obj)
Returns true if the specified object represents an annotation
that is logically equivalent to this one.
|
Modifier and Type | Class and Description |
---|---|
class |
Reference<T>
Abstract base class for reference objects.
|
class |
ReferenceQueue<T>
Reference queues, to which registered reference objects are appended by the
garbage collector after the appropriate reachability changes are detected.
|
class |
WeakReference<T>
Weak reference objects, which do not prevent their referents from being
made finalizable, finalized, and then reclaimed.
|
Modifier and Type | Class and Description |
---|---|
class |
BindException
Signals that an error occurred while attempting to bind a
socket to a local address and port.
|
class |
ConnectException
Signals that an error occurred while attempting to connect a
socket to a remote address and port.
|
class |
NoRouteToHostException
Signals that an error occurred while attempting to connect a
socket to a remote address and port.
|
class |
PortUnreachableException
Signals that an ICMP Port Unreachable message has been
received on a connected datagram.
|
class |
SocketException
Thrown to indicate that there is an error creating or accessing a Socket.
|
class |
UnknownHostException
Thrown to indicate that the IP address of a host could not be determined.
|
Modifier and Type | Class and Description |
---|---|
class |
Buffer
A container for data of a specific primitive type.
|
class |
BufferOverflowException
Unchecked exception thrown when a relative put operation reaches
the target buffer's limit.
|
class |
BufferUnderflowException
Unchecked exception thrown when a relative get operation reaches
the source buffer's limit.
|
class |
ByteBuffer
A byte buffer.
|
class |
ByteOrder
A typesafe enumeration for byte orders.
|
class |
FloatBuffer
A float buffer.
|
class |
IntBuffer
An int buffer.
|
class |
ShortBuffer
A short buffer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ShortBuffer.equals(Object ob)
Tells whether or not this buffer is equal to another object.
|
boolean |
IntBuffer.equals(Object ob)
Tells whether or not this buffer is equal to another object.
|
boolean |
FloatBuffer.equals(Object ob)
Tells whether or not this buffer is equal to another object.
|
boolean |
ByteBuffer.equals(Object ob)
Tells whether or not this buffer is equal to another object.
|
Modifier and Type | Class and Description |
---|---|
class |
AsynchronousCloseException
Checked exception received by a thread when another thread closes the
channel or the part of the channel upon which it is blocked in an I/O
operation.
|
class |
Channels
Utility methods for channels and streams.
|
class |
ClosedByInterruptException
Checked exception received by a thread when another thread interrupts it
while it is blocked in an I/O operation upon a channel.
|
class |
ClosedChannelException
Checked exception thrown when an attempt is made to invoke or complete an
I/O operation upon channel that is closed, or at least closed to that
operation.
|
class |
FileChannel
A channel for reading, writing, mapping, and manipulating a file.
|
class |
IllegalBlockingModeException
Unchecked exception thrown when a blocking-mode-specific operation
is invoked upon a channel in the incorrect blocking mode.
|
class |
NonReadableChannelException
Unchecked exception thrown when an attempt is made to read
from a channel that was not originally opened for reading.
|
class |
NonWritableChannelException
Unchecked exception thrown when an attempt is made to write
to a channel that was not originally opened for writing.
|
Modifier and Type | Class and Description |
---|---|
class |
AtomicMoveNotSupportedException
Checked exception thrown when a file cannot be moved as an atomic file system
operation.
|
class |
ClosedFileSystemException
Unchecked exception thrown when an attempt is made to invoke an operation on
a file and the file system is closed.
|
class |
DirectoryIteratorException
Runtime exception thrown if an I/O error is encountered when iterating over
the entries in a directory.
|
class |
DirectoryNotEmptyException
Checked exception thrown when a file system operation fails because a
directory is not empty.
|
class |
FileAlreadyExistsException
Checked exception thrown when an attempt is made to create a file or
directory and a file of that name already exists.
|
class |
Files
This class consists exclusively of static methods that operate on files,
directories, or other types of files.
|
class |
FileStore
Storage for files.
|
class |
FileSystem
Provides an interface to a file system and is the factory for objects to
access files and other objects in the file system.
|
class |
FileSystemException
Thrown when a file system operation fails on one or two files.
|
class |
FileSystems
Factory methods for file systems.
|
class |
InvalidPathException
Unchecked exception thrown when path string cannot be converted into a
Path because the path string contains invalid characters, or
the path string is invalid for other file system specific reasons. |
class |
NoSuchFileException
Checked exception thrown when an attempt is made to access a file that does
not exist.
|
class |
NotDirectoryException
Checked exception thrown when a file system operation, intended for a
directory, fails because the file is not a directory.
|
class |
Paths
This class consists exclusively of static methods that return a
Path
by converting a path string. |
class |
ReadOnlyFileSystemException
Unchecked exception thrown when an attempt is made to update an object
associated with a
read-only FileSystem . |
Modifier and Type | Method and Description |
---|---|
static Object |
Files.getAttribute(Path path,
String attribute,
LinkOption... options)
Reads the value of a file attribute.
|
abstract Object |
FileStore.getAttribute(String attribute)
Reads the value of a file store attribute.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Path.equals(Object other)
Tests this path for equality with the given object.
|
static Path |
Files.setAttribute(Path path,
String attribute,
Object value,
LinkOption... options)
Sets the value of a file attribute.
|
Modifier and Type | Class and Description |
---|---|
class |
FileTime
Represents the value of a file's time stamp attribute.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FileTime.equals(Object obj)
Tests this
FileTime for equality with the given object. |
Modifier and Type | Class and Description |
---|---|
class |
AccessControlException
This exception is thrown by the AccessController to indicate
that a requested access (to a critical system resource such as the
file system or the network) is denied.
|
class |
AccessController
The AccessController class is used for access control operations
and decisions.
|
class |
BasicPermission
The BasicPermission class extends the Permission class, and
can be used as the base class for permissions that want to
follow the same naming convention as BasicPermission.
|
class |
Permission
Abstract class for representing access to a system resource.
|
class |
PermissionCollection
Abstract class representing a collection of Permission objects.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Permission.equals(Object obj)
Checks two Permission objects for equality.
|
boolean |
BasicPermission.equals(Object obj)
Checks two BasicPermission objects for equality.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCollection<E>
This class provides a skeletal implementation of the Collection
interface, to minimize the effort required to implement this interface.
|
class |
AbstractList<E>
This class provides a skeletal implementation of the
List
interface to minimize the effort required to implement this interface
backed by a "random access" data store (such as an array). |
class |
AbstractMap<K,V>
This class provides a skeletal implementation of the Map
interface, to minimize the effort required to implement this interface.
|
class |
AbstractQueue<E>
This class provides skeletal implementations of some
Queue
operations. |
class |
AbstractSequentialList<E>
This class provides a skeletal implementation of the List
interface to minimize the effort required to implement this interface
backed by a "sequential access" data store (such as a linked list).
|
class |
AbstractSet<E>
This class provides a skeletal implementation of the Set
interface to minimize the effort required to implement this
interface.
|
class |
ArrayDeque<E>
Resizable-array implementation of the
Deque interface. |
class |
ArrayList<E>
Resizable-array implementation of the List interface.
|
class |
Arrays
This class contains various methods for manipulating arrays (such as
sorting and searching).
|
class |
Calendar
The
Calendar class is an abstract class that provides methods
for converting between a specific instant in time and a set of calendar fields such as YEAR , MONTH ,
DAY_OF_MONTH , HOUR , and so on, and for
manipulating the calendar fields, such as getting the date of the next
week. |
class |
Collections
This class consists exclusively of static methods that operate on or return
collections.
|
class |
ConcurrentModificationException
This exception may be thrown by methods that have detected concurrent
modification of an object when such modification is not permissible.
|
class |
Date
The class
Date represents a specific instant
in time, with millisecond precision. |
class |
EmptyStackException
Thrown by methods in the
Stack class to indicate
that the stack is empty. |
class |
EventObject
The root class from which all event state objects shall be derived.
|
class |
Formatter
An interpreter for printf-style format strings.
|
class |
HashMap<K,V>
Hash table based implementation of the Map interface.
|
class |
HashSet<E>
This class implements the Set interface, backed by a hash table
(actually a HashMap instance).
|
class |
Hashtable<K,V>
This class implements a hashtable, which maps keys to values.
|
class |
LinkedHashMap<K,V>
Hash table and linked list implementation of the Map interface,
with predictable iteration order.
|
class |
LinkedHashSet<E>
Hash table and linked list implementation of the Set interface,
with predictable iteration order.
|
class |
LinkedList<E>
Doubly-linked list implementation of the
List and Deque
interfaces. |
class |
NoSuchElementException
Thrown by various accessor methods to indicate that the element being requested
does not exist.
|
class |
Objects
This class consists of
static utility methods for operating
on objects. |
class |
Properties
The
Properties class represents a persistent set of
properties. |
class |
PropertyPermission
This class is for property permissions.
|
class |
Random
An instance of this class is used to generate a stream of
pseudorandom numbers.
|
class |
ServiceConfigurationError
Error thrown when something goes wrong while loading a service provider.
|
class |
ServiceLoader<S>
A simple service-provider loading facility.
|
class |
Stack<E>
The
Stack class represents a last-in-first-out
(LIFO) stack of objects. |
class |
StringTokenizer
The string tokenizer class allows an application to break a
string into tokens.
|
class |
Timer
A facility for threads to schedule tasks for future execution in a
background thread.
|
class |
TimerTask
A task that can be scheduled for one-time or repeated execution by a Timer.
|
class |
TimeZone
TimeZone represents a time zone offset, and also figures out daylight
savings. |
class |
Vector<E>
The
Vector class implements a growable array of
objects. |
class |
WeakHashMap<K,V>
Hash table based implementation of the Map interface, with
weak keys.
|
Modifier and Type | Field and Description |
---|---|
protected Object[] |
Vector.elementData
The array buffer into which the components of the vector are
stored.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Object & Comparable<? super T>> |
Collections.max(Collection<? extends T> coll)
Returns the maximum element of the given collection, according to the
natural ordering of its elements.
|
static <T extends Object & Comparable<? super T>> |
Collections.min(Collection<? extends T> coll)
Returns the minimum element of the given collection, according to the
natural ordering of its elements.
|
Modifier and Type | Method and Description |
---|---|
Object |
Vector.clone()
Returns a clone of this vector.
|
Object |
TimeZone.clone()
Creates a copy of this
TimeZone . |
Object |
LinkedList.clone()
Returns a shallow copy of this
LinkedList . |
Object |
Hashtable.clone()
Creates a shallow copy of this hashtable.
|
Object |
HashSet.clone()
Returns a shallow copy of this HashSet instance: the elements
themselves are not cloned.
|
Object |
HashMap.clone()
Returns a shallow copy of this HashMap instance: the keys and
values themselves are not cloned.
|
Object |
Date.clone()
Return a copy of this object.
|
Object |
Calendar.clone()
Creates and returns a copy of this object.
|
Object |
ArrayList.clone()
Returns a shallow copy of this ArrayList instance.
|
protected Object |
AbstractMap.clone()
Returns a shallow copy of this AbstractMap instance: the keys
and values themselves are not cloned.
|
static <T> T[] |
Arrays.copyOf(T[] original,
int newLength)
Copies the specified array, truncating or padding with nulls (if necessary)
so the copy has the specified length.
|
static <T,U> T[] |
Arrays.copyOf(U[] original,
int newLength,
Class<? extends T[]> newType)
Copies the specified array, truncating or padding with nulls (if necessary)
so the copy has the specified length.
|
Object |
EventObject.getSource()
The object on which the Event initially occurred.
|
Object |
StringTokenizer.nextElement()
Returns the same value as the
nextToken method,
except that its declared return value is Object rather than
String . |
Object |
Properties.setProperty(String key,
String value)
Calls the Hashtable method
put . |
Object[] |
Vector.toArray()
Returns an array containing all of the elements in this Vector
in the correct order.
|
Object[] |
Set.toArray()
Returns an array containing all of the elements in this set.
|
Object[] |
List.toArray()
Returns an array containing all of the elements in this list in proper
sequence (from first to last element).
|
Object[] |
LinkedList.toArray()
Returns an array containing all of the elements in this list
in proper sequence (from first to last element).
|
Object[] |
Collection.toArray()
Returns an array containing all of the elements in this collection.
|
Object[] |
ArrayList.toArray()
Returns an array containing all of the elements in this list
in proper sequence (from first to last element).
|
Object[] |
ArrayDeque.toArray()
Returns an array containing all of the elements in this deque
in proper sequence (from first to last element).
|
Object[] |
AbstractCollection.toArray()
Returns an array containing all of the elements in this collection.
|
<T> T[] |
Vector.toArray(T[] a)
Returns an array containing all of the elements in this Vector in the
correct order; the runtime type of the returned array is that of the
specified array.
|
<T> T[] |
Set.toArray(T[] a)
Returns an array containing all of the elements in this set; the
runtime type of the returned array is that of the specified array.
|
<T> T[] |
List.toArray(T[] a)
Returns an array containing all of the elements in this list in
proper sequence (from first to last element); the runtime type of
the returned array is that of the specified array.
|
<T> T[] |
LinkedList.toArray(T[] a)
Returns an array containing all of the elements in this list in
proper sequence (from first to last element); the runtime type of
the returned array is that of the specified array.
|
<T> T[] |
Collection.toArray(T[] a)
Returns an array containing all of the elements in this collection;
the runtime type of the returned array is that of the specified array.
|
<T> T[] |
ArrayList.toArray(T[] a)
Returns an array containing all of the elements in this list in proper
sequence (from first to last element); the runtime type of the returned
array is that of the specified array.
|
<T> T[] |
ArrayDeque.toArray(T[] a)
Returns an array containing all of the elements in this deque in
proper sequence (from first to last element); the runtime type of the
returned array is that of the specified array.
|
<T> T[] |
AbstractCollection.toArray(T[] a)
Returns an array containing all of the elements in this collection;
the runtime type of the returned array is that of the specified array.
|
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
Collections.addAll(Collection<? super T> c,
T... elements)
Adds all of the specified elements to the specified collection.
|
boolean |
Calendar.after(Object when)
Returns whether this
Calendar represents a time
after the time represented by the specified
Object . |
static <T> List<T> |
Arrays.asList(T... a)
Returns a fixed-size list backed by the specified array.
|
boolean |
Calendar.before(Object when)
Returns whether this
Calendar represents a time
before the time represented by the specified
Object . |
static int |
Arrays.binarySearch(Object[] a,
int fromIndex,
int toIndex,
Object key)
Searches a range of
the specified array for the specified object using the binary
search algorithm.
|
static int |
Arrays.binarySearch(Object[] a,
int fromIndex,
int toIndex,
Object key)
Searches a range of
the specified array for the specified object using the binary
search algorithm.
|
static int |
Arrays.binarySearch(Object[] a,
Object key)
Searches the specified array for the specified object using the binary
search algorithm.
|
static int |
Arrays.binarySearch(Object[] a,
Object key)
Searches the specified array for the specified object using the binary
search algorithm.
|
static <T> int |
Arrays.binarySearch(T[] a,
int fromIndex,
int toIndex,
T key,
Comparator<? super T> c)
Searches a range of
the specified array for the specified object using the binary
search algorithm.
|
static <T> int |
Arrays.binarySearch(T[] a,
T key,
Comparator<? super T> c)
Searches the specified array for the specified object using the binary
search algorithm.
|
boolean |
Vector.contains(Object o)
Returns
true if this vector contains the specified element. |
boolean |
Set.contains(Object o)
Returns true if this set contains the specified element.
|
boolean |
List.contains(Object o)
Returns true if this list contains the specified element.
|
boolean |
LinkedList.contains(Object o)
Returns
true if this list contains the specified element. |
boolean |
Hashtable.contains(Object value)
Tests if some key maps into the specified value in this hashtable.
|
boolean |
HashSet.contains(Object o)
Returns true if this set contains the specified element.
|
boolean |
Deque.contains(Object o)
Returns
true if this deque contains the specified element. |
boolean |
Collection.contains(Object o)
Returns true if this collection contains the specified element.
|
boolean |
ArrayList.contains(Object o)
Returns true if this list contains the specified element.
|
boolean |
ArrayDeque.contains(Object o)
Returns
true if this deque contains the specified element. |
boolean |
AbstractCollection.contains(Object o)
Returns true if this collection contains the specified element.
|
boolean |
WeakHashMap.containsKey(Object key)
Returns true if this map contains a mapping for the
specified key.
|
boolean |
Map.containsKey(Object key)
Returns true if this map contains a mapping for the specified
key.
|
boolean |
Hashtable.containsKey(Object key)
Tests if the specified object is a key in this hashtable.
|
boolean |
HashMap.containsKey(Object key)
Returns true if this map contains a mapping for the
specified key.
|
boolean |
AbstractMap.containsKey(Object key)
Returns true if this map contains a mapping for the specified
key.
|
boolean |
WeakHashMap.containsValue(Object value)
Returns true if this map maps one or more keys to the
specified value.
|
boolean |
Map.containsValue(Object value)
Returns true if this map maps one or more keys to the
specified value.
|
boolean |
LinkedHashMap.containsValue(Object value)
Returns true if this map maps one or more keys to the
specified value.
|
boolean |
Hashtable.containsValue(Object value)
Returns true if this hashtable maps one or more keys to this value.
|
boolean |
HashMap.containsValue(Object value)
Returns true if this map maps one or more keys to the
specified value.
|
boolean |
AbstractMap.containsValue(Object value)
Returns true if this map maps one or more keys to the
specified value.
|
void |
Vector.copyInto(Object[] anArray)
Copies the components of this vector into the specified array.
|
static <T> T[] |
Arrays.copyOf(T[] original,
int newLength)
Copies the specified array, truncating or padding with nulls (if necessary)
so the copy has the specified length.
|
static <T,U> T[] |
Arrays.copyOf(U[] original,
int newLength,
Class<? extends T[]> newType)
Copies the specified array, truncating or padding with nulls (if necessary)
so the copy has the specified length.
|
boolean |
Vector.equals(Object o)
Compares the specified Object with this Vector for equality.
|
boolean |
Set.equals(Object o)
Compares the specified object with this set for equality.
|
boolean |
PropertyPermission.equals(Object obj)
Checks two PropertyPermission objects for equality.
|
boolean |
Map.equals(Object o)
Compares the specified object with this map for equality.
|
boolean |
Map.Entry.equals(Object o)
Compares the specified object with this entry for equality.
|
boolean |
List.equals(Object o)
Compares the specified object with this list for equality.
|
boolean |
Hashtable.equals(Object o)
Compares the specified Object with this Map for equality,
as per the definition in the Map interface.
|
boolean |
Date.equals(Object obj)
Compares two dates for equality.
|
boolean |
Comparator.equals(Object obj)
Indicates whether some other object is "equal to" this
comparator.
|
boolean |
Collection.equals(Object o)
Compares the specified object with this collection for equality.
|
boolean |
Calendar.equals(Object obj)
Compares this
Calendar to the specified
Object . |
boolean |
AbstractSet.equals(Object o)
Compares the specified object with this set for equality.
|
boolean |
AbstractMap.equals(Object o)
Compares the specified object with this map for equality.
|
boolean |
AbstractList.equals(Object o)
Compares the specified object with this list for equality.
|
static boolean |
Arrays.equals(Object[] a,
Object[] a2)
Returns true if the two specified arrays of Objects are
equal to one another.
|
static boolean |
Arrays.equals(Object[] a,
Object[] a2)
Returns true if the two specified arrays of Objects are
equal to one another.
|
static boolean |
Objects.equals(Object a,
Object b)
Returns
true if the arguments are equal to each other
and false otherwise. |
static void |
Arrays.fill(Object[] a,
Object val)
Assigns the specified Object reference to each element of the specified
array of Objects.
|
static void |
Arrays.fill(Object[] a,
Object val)
Assigns the specified Object reference to each element of the specified
array of Objects.
|
Formatter |
Formatter.format(String format,
Object... args)
Writes a formatted string to this object's destination using the
specified format string and arguments.
|
static int |
Collections.frequency(Collection<?> c,
Object o)
Returns the number of elements in the specified collection equal to the
specified object.
|
V |
WeakHashMap.get(Object key)
Returns the value to which the specified key is mapped,
or
null if this map contains no mapping for the key. |
V |
Map.get(Object key)
Returns the value to which the specified key is mapped,
or
null if this map contains no mapping for the key. |
V |
LinkedHashMap.get(Object key)
Returns the value to which the specified key is mapped,
or
null if this map contains no mapping for the key. |
V |
Hashtable.get(Object key)
Returns the value to which the specified key is mapped,
or
null if this map contains no mapping for the key. |
V |
HashMap.get(Object key)
Returns the value to which the specified key is mapped,
or
null if this map contains no mapping for the key. |
V |
AbstractMap.get(Object key)
Returns the value to which the specified key is mapped,
or
null if this map contains no mapping for the key. |
static int |
Objects.hashCode(Object o)
Returns the hash code of a non-
null argument and 0 for
a null argument. |
int |
Vector.indexOf(Object o)
Returns the index of the first occurrence of the specified element
in this vector, or -1 if this vector does not contain the element.
|
int |
List.indexOf(Object o)
Returns the index of the first occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
int |
LinkedList.indexOf(Object o)
Returns the index of the first occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
int |
ArrayList.indexOf(Object o)
Returns the index of the first occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
int |
AbstractList.indexOf(Object o)
Returns the index of the first occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
int |
Vector.indexOf(Object o,
int index)
Returns the index of the first occurrence of the specified element in
this vector, searching forwards from
index , or returns -1 if
the element is not found. |
int |
Vector.lastIndexOf(Object o)
Returns the index of the last occurrence of the specified element
in this vector, or -1 if this vector does not contain the element.
|
int |
List.lastIndexOf(Object o)
Returns the index of the last occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
int |
LinkedList.lastIndexOf(Object o)
Returns the index of the last occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
int |
ArrayList.lastIndexOf(Object o)
Returns the index of the last occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
int |
AbstractList.lastIndexOf(Object o)
Returns the index of the last occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
int |
Vector.lastIndexOf(Object o,
int index)
Returns the index of the last occurrence of the specified element in
this vector, searching backwards from
index , or returns -1 if
the element is not found. |
V |
WeakHashMap.remove(Object key)
Removes the mapping for a key from this weak hash map if it is present.
|
boolean |
Vector.remove(Object o)
Removes the first occurrence of the specified element in this Vector
If the Vector does not contain the element, it is unchanged.
|
boolean |
Set.remove(Object o)
Removes the specified element from this set if it is present
(optional operation).
|
V |
Map.remove(Object key)
Removes the mapping for a key from this map if it is present
(optional operation).
|
boolean |
List.remove(Object o)
Removes the first occurrence of the specified element from this list,
if it is present (optional operation).
|
boolean |
LinkedList.remove(Object o)
Removes the first occurrence of the specified element from this list,
if it is present.
|
V |
Hashtable.remove(Object key)
Removes the key (and its corresponding value) from this
hashtable.
|
boolean |
HashSet.remove(Object o)
Removes the specified element from this set if it is present.
|
V |
HashMap.remove(Object key)
Removes the mapping for the specified key from this map if present.
|
boolean |
Deque.remove(Object o)
Removes the first occurrence of the specified element from this deque.
|
boolean |
Collection.remove(Object o)
Removes a single instance of the specified element from this
collection, if it is present (optional operation).
|
boolean |
ArrayList.remove(Object o)
Removes the first occurrence of the specified element from this list,
if it is present.
|
boolean |
ArrayDeque.remove(Object o)
Removes a single instance of the specified element from this deque.
|
V |
AbstractMap.remove(Object key)
Removes the mapping for a key from this map if it is present
(optional operation).
|
boolean |
AbstractCollection.remove(Object o)
Removes a single instance of the specified element from this
collection, if it is present (optional operation).
|
boolean |
Vector.removeElement(Object obj)
Removes the first (lowest-indexed) occurrence of the argument
from this vector.
|
boolean |
LinkedList.removeFirstOccurrence(Object o)
Removes the first occurrence of the specified element in this
list (when traversing the list from head to tail).
|
boolean |
Deque.removeFirstOccurrence(Object o)
Removes the first occurrence of the specified element from this deque.
|
boolean |
ArrayDeque.removeFirstOccurrence(Object o)
Removes the first occurrence of the specified element in this
deque (when traversing the deque from head to tail).
|
boolean |
LinkedList.removeLastOccurrence(Object o)
Removes the last occurrence of the specified element in this
list (when traversing the list from head to tail).
|
boolean |
Deque.removeLastOccurrence(Object o)
Removes the last occurrence of the specified element from this deque.
|
boolean |
ArrayDeque.removeLastOccurrence(Object o)
Removes the last occurrence of the specified element in this
deque (when traversing the deque from head to tail).
|
int |
Stack.search(Object o)
Returns the 1-based position where an object is on this stack.
|
static void |
Arrays.sort(Object[] a)
Sorts the specified array of objects into ascending order, according
to the natural ordering of its elements.
|
static void |
Arrays.sort(Object[] a,
int fromIndex,
int toIndex)
Sorts the specified range of the specified array of objects into
ascending order, according to the
natural ordering of its
elements.
|
static <T> void |
Arrays.sort(T[] a,
Comparator<? super T> c)
Sorts the specified array of objects according to the order induced by
the specified comparator.
|
static <T> void |
Arrays.sort(T[] a,
int fromIndex,
int toIndex,
Comparator<? super T> c)
Sorts the specified range of the specified array of objects according
to the order induced by the specified comparator.
|
<T> T[] |
Vector.toArray(T[] a)
Returns an array containing all of the elements in this Vector in the
correct order; the runtime type of the returned array is that of the
specified array.
|
<T> T[] |
Set.toArray(T[] a)
Returns an array containing all of the elements in this set; the
runtime type of the returned array is that of the specified array.
|
<T> T[] |
List.toArray(T[] a)
Returns an array containing all of the elements in this list in
proper sequence (from first to last element); the runtime type of
the returned array is that of the specified array.
|
<T> T[] |
LinkedList.toArray(T[] a)
Returns an array containing all of the elements in this list in
proper sequence (from first to last element); the runtime type of
the returned array is that of the specified array.
|
<T> T[] |
Collection.toArray(T[] a)
Returns an array containing all of the elements in this collection;
the runtime type of the returned array is that of the specified array.
|
<T> T[] |
ArrayList.toArray(T[] a)
Returns an array containing all of the elements in this list in proper
sequence (from first to last element); the runtime type of the returned
array is that of the specified array.
|
<T> T[] |
ArrayDeque.toArray(T[] a)
Returns an array containing all of the elements in this deque in
proper sequence (from first to last element); the runtime type of the
returned array is that of the specified array.
|
<T> T[] |
AbstractCollection.toArray(T[] a)
Returns an array containing all of the elements in this collection;
the runtime type of the returned array is that of the specified array.
|
static String |
Objects.toString(Object o)
Returns the result of calling
toString for a non-null argument and "null" for a null argument. |
static String |
Objects.toString(Object o,
String nullDefault)
Returns the result of calling
toString on the first
argument if the first argument is not null and returns
the second argument otherwise. |
Constructor and Description |
---|
EventObject(Object source)
Constructs a prototypical Event.
|
Modifier and Type | Class and Description |
---|---|
class |
ConsoleHandler
This Handler publishes log records to System.err.
|
class |
Handler
A Handler object takes log messages from a Logger and
exports them.
|
class |
Level
The Level class defines a set of standard logging levels that can be used to
control logging output.
|
class |
Logger
A Logger object is used to log messages for a specific
system or application component.
|
class |
LoggingPermission
The permission which the SecurityManager will check when code
that is running with a SecurityManager calls one of the logging
control methods (such as Logger.setLevel).
|
class |
LogManager
There is a single global LogManager object that is used to
maintain a set of shared state about Loggers and log services.
|
class |
LogRecord
LogRecord objects are used to pass logging requests between
the logging framework and individual log Handlers.
|
class |
SimpleFormatter
Print a brief summary of the
LogRecord in a human readable
format. |
class |
StreamHandler
Stream based logging Handler.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
LogRecord.getParameters()
Get the parameters to the log message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Level.equals(Object ox)
Compare two objects for value equality.
|
void |
Logger.log(Level level,
String msg,
Object param1)
Log a message, with one object parameter.
|
void |
Logger.log(Level level,
String msg,
Object[] params)
Log a message, with an array of object arguments.
|
void |
Logger.logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object param1)
Log a message, specifying source class and method,
with a single object parameter to the log message.
|
void |
Logger.logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object[] params)
Log a message, specifying source class and method,
with an array of object arguments.
|
void |
LogRecord.setParameters(Object[] parameters)
Set the parameters to the log message.
|
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.