|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
ListenableFuture
that adds support for
the AbstractCheckedFuture.checkedGet()
and AbstractCheckedFuture.checkedGet(long, TimeUnit)
methods.AbstractCheckedFuture
that wraps a delegate.
AbstractExecutionThreadService.startUp()
, AbstractExecutionThreadService.run()
and
AbstractExecutionThreadService.shutDown()
methods.Future
interface.ListenableFuture
.AbstractService.doStart()
and
AbstractService.doStop()
requests, responding to them with AbstractService.notifyStarted()
and AbstractService.notifyStopped()
callbacks.service
.
other
.
char
matcher that matches any character present in the
given character sequence.
true
if this matcher matches the given character.
Arrays.asList(Object[])
.
Arrays.asList(Object[])
.
Arrays.asList(Object[])
.
Arrays.asList(Object[])
.
Arrays.asList(Object[])
.
Arrays.asList(Object[])
.
Arrays.asList(Object[])
.
Arrays.asList(Object[])
.
Appendable
target.
boolean
primitives, that are not
already found in either Boolean
or Arrays
.DataInput
for reading from in-memory byte arrays; its
methods offer identical functionality but do not throw IOException
.DataOutput
for writing to in-memory byte arrays; its
methods offer identical functionality but do not throw IOException
.byte
primitives, that are not
already found in either Byte
or Arrays
, and interpret
bytes as neither signed nor unsigned.char
value.
int
value.
long
value.
short
value.
Callable
interface.ListenableFuture
that wraps another
ListenableFuture
.
ListenableFuture
that wraps another
ListenableFuture
.
char
value, just as
Predicate
does for any Object
.char
value, used by CharMatcher.precomputed()
.char
primitives, that are not
already found in either Character
or Arrays
.Charset
instances, which are guaranteed to be supported by all Java platform
implementations.char
value that is equal to value
, if possible.
int
value that is equal to value
, if possible.
short
value that is equal to value
, if possible.
byte
value that is equal to value
, if possible.
byte
value that, when treated as unsigned, is equal to
value
, if possible.
CheckedFuture
is an extension of Future
that includes
versions of the get
methods that can throw a checked exception and
allows listeners to be attached to the future.Future.get()
that will translate
InterruptedException
, CancellationException
and
ExecutionException
into application-specific exceptions.
Future.get(long, TimeUnit)
that will
translate InterruptedException
, CancellationException
and
ExecutionException
into application-specific exceptions.
Closeable
, with control over whether an
IOException
may be thrown.
Closeable
objects.close(closeable, true)
, but with no
IOException in the signature.
boolean
values in the standard way
(false
is considered less than true
).
char
values.
double
values.
float
values using Float.compare(float, float)
.
int
values.
long
values.
short
values.
byte
values.
byte
values, treating them as unsigned
values between 0 and 255 inclusive.
ListenableFuture
that wraps another
ListenableFuture
.
Future
that wraps another Future
.
true
if target
is present as an element anywhere in
array
.
true
if target
is present as an element anywhere in
array
.
true
if target
is present as an element anywhere in
array
.
true
if target
is present as an element anywhere in
array
.
true
if target
is present as an element anywhere in
array
.
true
if target
is present as an element anywhere in
array
.
true
if target
is present as an element anywhere in
array
.
true
if target
is present as an element anywhere in
array
.
Readable
and Appendable
objects from the
given factories, copies all characters between the two, and closes
them.
Readable
object from the supplier, copies all characters
to the Appendable
object, and closes the input.
Readable
and Appendable
objects.
InputStream
supplied by a
factory.
OutputStream
supplied by
a factory.
Readable
and
Closeable
object supplied by a factory, using the given
character set.
Appendable
&
Closeable
object supplied by a factory, using the given
character set.
InputStream
that counts the number of bytes read.ValueFuture
in the default state.
java.io.tmpdir
system
property), and returns its name.
ThreadFactory
, making all new threads daemon threads.ThreadFactory
which creates daemon threads.
ThreadFactory
, making all new threads daemon threads.
type
as defined by JLS --- 0
for numbers, false
for boolean
and '\0'
for char
.
AbstractService.start()
to initiate service startup.
double
primitives, that are not
already found in either Double
or Arrays
.array
, but
guaranteed to be of a specified minimum length.
array
, but
guaranteed to be of a specified minimum length.
array
, but
guaranteed to be of a specified minimum length.
array
, but
guaranteed to be of a specified minimum length.
array
, but
guaranteed to be of a specified minimum length.
array
, but
guaranteed to be of a specified minimum length.
array
, but
guaranteed to be of a specified minimum length.
array
, but
guaranteed to be of a specified minimum length.
Runnable
, Executor
) pairs that guarantees
that every Runnable
that is added using the add method will be
executed in its associated Executor
after ExecutionList.run()
is called.Executor
that will be used to run this service.
Executor
that will be used to run this service.
Executor
, ExecutorService
, and ThreadFactory
.OutputStream
that starts buffering to a byte array, but
switches to file buffering once the data reaches a configurable size.InputSupplier
returned
by FileBackedOutputStream.getSupplier()
is finalized.
float
primitives, that are not
already found in either Float
or Arrays
.Flushable
, with control over whether an
IOException
may be thrown.
Flushable
objects.flush(flushable, true)
, but with no
IOException
in the signature.
Character
-based predicate, but which operates on primitive char
instances instead.
Future
which forwards all its method calls to another future.Service
that forwards all method calls to another service.char
value whose big-endian representation is
stored in the first 2 bytes of bytes
; equivalent to ByteBuffer.wrap(bytes).getChar()
.
int
value whose big-endian representation is stored in
the first 4 bytes of bytes
; equivalent to ByteBuffer.wrap(bytes).getInt()
.
long
value whose big-endian representation is
stored in the first 8 bytes of bytes
; equivalent to ByteBuffer.wrap(bytes).getLong()
.
short
value whose big-endian representation is
stored in the first ? bytes of bytes
; equivalent to ByteBuffer.wrap(bytes).getShort()
.
Future
interface.Throwable
cause chain as a list.
URL
pointing to resourceName
if the resource is
found in the class path.
URL
pointing to resourceName
that is relative to
contextClass
, if the resource is found in the class path.
throwable
.
toString()
, followed by the full, recursive
stack trace of throwable
.
value
; equal to the result of invoking
((Boolean) value).hashCode()
.
value
; equal to the result of invoking
((Byte) value).hashCode()
.
value
; equal to the result of invoking
((Character) value).hashCode()
.
value
; equal to the result of invoking
((Double) value).hashCode()
.
value
; equal to the result of invoking
((Float) value).hashCode()
.
value
; equal to the result of invoking
((Integer) value).hashCode()
.
value
; equal to the result of invoking
((Long) value).hashCode()
.
value
; equal to the result of invoking
((Short) value).hashCode()
.
CheckedFuture
which has its value set immediately upon
construction.
CheckedFuture
which has an exception set immediately
upon construction.
ListenableFuture
which has an exception set immediately
upon construction.
ListenableFuture
which has its value set immediately upon
construction.
-1
if no matching character is present.
-1
if no character matches after
that position.
target
in
array
.
target
within array
, or -1
if there is no such occurrence.
target
in
array
.
target
within array
, or -1
if there is no such occurrence.
target
in
array
.
target
within array
, or -1
if there is no such occurrence.
target
in
array
.
target
within array
, or -1
if there is no such occurrence.
target
in
array
.
target
within array
, or -1
if there is no such occurrence.
target
in
array
.
target
within array
, or -1
if there is no such occurrence.
target
in
array
.
target
within array
, or -1
if there is no such occurrence.
target
in
array
.
target
within array
, or -1
if there is no such occurrence.
char
matcher that matches any character in a given range
(both endpoints are inclusive).
int
primitives, that are not
already found in either Integer
or Arrays
.char
matcher that matches only one specified character.
char
matcher that matches any character except the one
specified.
true
if this service is running
.
true
if type
is one of the nine
primitive-wrapper types, such as Integer
.
Java's definition
.
Character.isISOControl(char)
.
Java's definition
.
Java's definition
.
Java's definition
.
Java's definition
.
Java's definition
; it is usually preferable
to use CharMatcher.WHITESPACE
.
InputStream
suppliers into a single supplier.
ByteStreams.join(Iterable)
.
Reader
suppliers into a single supplier.
CharStreams.join(Iterable)
.
boolean
values separated
by separator
.
char
values separated
by separator
.
double
values, converted
to strings as specified by Double.toString(double)
, and separated
by separator
.
float
values, converted
to strings as specified by Float.toString(float)
, and separated by
separator
.
int
values separated
by separator
.
long
values separated
by separator
.
short
values separated
by separator
.
byte
values separated
by separator
.
byte
values separated by
separator
.
-1
if no matching character is present.
target
in
array
.
target
in
array
.
target
in
array
.
target
in
array
.
target
in
array
.
target
in
array
.
target
in
array
.
target
in
array
.
readLines
methods.Readable
object.
FutureTask
that also implements the ListenableFuture
interface.ListenableFutureTask
that will upon running, execute the
given Callable
.
ListenableFutureTask
that will upon running, execute the
given Runnable
, and arrange that get
will return the
given result on successful completion.
long
primitives, that are not
already found in either Long
or Arrays
.CheckedFuture
out of a normal Future
and a
Function
that maps from Exception
instances into the
appropriate checked type.
ListenableFuture
out of a normal Future
.
Future
.
InterruptedException
,
CancellationException
or ExecutionException
to an exception
of type E
.
true
if a character sequence contains only matching
characters.
true
if a character sequence contains no matching
characters.
array
.
array
, using the same rules
of comparison as Math.max(double, double)
.
array
, using the same rules
of comparison as Math.min(float, float)
.
array
.
array
.
array
.
array
.
array
.
array
.
array
, using the same rules of
comparison as Math.min(double, double)
.
array
, using the same rules of
comparison as Math.min(float, float)
.
array
.
array
.
array
.
array
.
array
.
format
to construct a name for the new
thread.
backingFactory
for thread
creation, then uses format
to construct a name for the new thread.
ByteArrayDataInput
instance to read from the bytes
array from the beginning.
ByteArrayDataInput
instance to read from the bytes
array, starting at the given position.
ByteArrayDataOutput
instance with a default size.
ByteArrayDataOutput
instance sized to hold
size
bytes before resizing.
ByteArrayInputStream
that read from the given byte array.
ByteArrayInputStream
that read from the given byte array.
FileInputStream
that read from a file.
InputStream
that
read from the given URL.
FileOutputStream
that write to a file.
FileOutputStream
that write to or append to a file.
interfaceType
that delegates all method
calls to the target
object, enforcing the specified time limit on
each call.
StringReader
that
read a string value.
InputStreamReader
,
using the given InputStream
factory and character set.
InputStreamReader
that read a file using the given character set.
InputStreamReader
that read a URL using the given character set.
OutputStreamWriter
,
using the given OutputStream
factory and character set.
OutputStreamWriter
that write to a file using the given character set.
OutputStreamWriter
that write to or append to a file using the given character set.
char
matcher that matches any character not present in
the given character sequence.
Service.State.FAILED
.
OutputStream
that simply discards written bytes.this
splitter, but
automatically omits empty strings from the results.
CharMatcher
to be a separator.
pattern
to be a separator.
other
.
char
matcher functionally equivalent to this one, but
which may be faster to query than the original; your mileage may vary.
throwable
as-is if it is an instance of
RuntimeException
or Error
, or else as a last resort, wraps
it in a RuntimeException
then propagates.
throwable
exactly as-is, if and only if it is an
instance of declaredType
.
throwable
exactly as-is, if and only if it is an
instance of RuntimeException
or Error
.
throwable
exactly as-is, if and only if it is an
instance of RuntimeException
, Error
, or
declaredType
.
throwable
exactly as-is, if and only if it is an
instance of RuntimeException
, Error
, aDeclaredType
,
or anotherDeclaredType
.
b
.
Readable
& Closeable
object
supplied by a factory.
DataInput.readFully(byte[])
.
len
bytes from the stream into the given array
starting at off
, with the same behavior as
DataInput.readFully(byte[], int, int)
.
Readable
& Closeable
object
supplied by a factory.
Readable
object.
Readable
and Closeable
object
supplied by a factory, stopping when our callback returns false, or we
have read all of the lines.
File
, stopping when our callback returns
false, or we have read all of the lines.
FileBackedOutputStream.close()
if not already closed, and then resets this
object back to its initial state, for reuse.
Callable
which immediately returns a preset value each
time it is called.
execute/submit
, as in ThreadPoolExecutor.CallerRunsPolicy
This
applies both to individually submitted tasks and to collections of tasks
submitted via invokeAll
or invokeAny
.
char
nearest in value to value
.
int
nearest in value to value
.
short
nearest in value to value
.
byte
nearest in value to value
.
byte
value that, when treated as unsigned, is nearest
in value to value
.
Service.start()
and
Service.stop()
lifecycle methods to transfer into and out of this state.value
.
throwable
.
short
primitives, that are not
already found in either Short
or Arrays
.byte
primitives that
interpret values as signed.ExecutorService
.Executors.newCachedThreadPool()
to execute proxied
method calls.
n
bytes of data from the input stream.
n
characters of data from the reader.
InputSupplier
that returns input streams from the
an underlying supplier, where each stream starts at the given
offset and is limited to the specified number of bytes.
CharSequence
passed in parameter.
CharSequence
)
into substrings, by recognizing a separator (a.k.a.Service.State.NEW
, this initiates service startup
and returns immediately.
Service.State.STARTING
or Service.State.RUNNING
, this
initiates service shutdown and returns immediately.
Throwable
.String s
from this format to the specified
format
.
Boolean
instances into a new array of
primitive boolean
values.
Byte
instances into a new array of
primitive byte
values.
Character
instances into a new array of
primitive char
values.
Double
instances into a new array of
primitive double
values.
Float
instances into a new array of
primitive float
values.
Integer
instances into a new array of
primitive int
values.
Long
instances into a new array of
primitive long
values.
Short
instances into a new array of
primitive short
values.
InputStream
factory as a byte array.
value
in a 2-element byte
array; equivalent to ByteBuffer.allocate(2).putChar(value).array()
.
value
in a 4-element byte
array; equivalent to ByteBuffer.allocate(4).putInt(value).array()
.
value
in an 8-element byte
array; equivalent to ByteBuffer.allocate(8).putLong(value).array()
.
value
in a ?-element byte
array; equivalent to ByteBuffer.allocate(?).putShort(value).array()
.
Readable
object into a String
.
Readable
& Closeable
object
supplied by a factory as a String
.
String
, using the given
character set.
String
, using the given
character set.
CharMatcher.collapseFrom(java.lang.CharSequence, char)
does, except that groups of matching characters at the start or end of the
sequence are removed without replacement.
this
splitter, but
automatically removes leading and trailing whitespace from each returned substring; equivalent
to trimResults(CharMatcher.WHITESPACE)
.
this
splitter, but
removes all leading or trailing characters matching the given CharMatcher
from each returned substring.
TimeoutException
.Future
whose get
calls cannot be interrupted.byte
primitives that interpret
values as unsigned (that is, any negative value b
is treated
as the positive value 256 + b
).type
if it is a
wrapper type; otherwise returns type
itself.
type
if it is a primitive
type; otherwise returns type
itself.
write(s.getBytes(Charsets.UTF_8))
.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |