|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
ListenableFuture
that adds support for
the checkedGet()
and checkedGet(long, TimeUnit)
methods.AbstractCheckedFuture
that wraps a delegate.
AbstractExecutionThreadService.startUp()
, AbstractExecutionThreadService.run()
and
AbstractExecutionThreadService.shutDown()
methods.Future
interface.Iterator
interface, to make this interface easier to implement for certain types of
data sources.Iterator
interface for sequences whose next element can always be derived from the
previous element.firstOrNull
is null, creates a new empty iterator.
ListenableFuture
.AbstractService.doStart()
and
AbstractService.doStop()
requests, responding to them with AbstractService.notifyStarted()
and AbstractService.notifyStopped()
callbacks.name=value
format.
element
to the ImmutableList
.
elements
to the ImmutableList
.
element
to the ImmutableMultiset
.
elements
to the ImmutableMultiset
.
element
to the ImmutableSet
.
elements
to the ImmutableSet
,
ignoring duplicate elements (only the first duplicate element is added).
element
to the ImmutableSortedSet
.
elements
to the ImmutableSortedSet
,
ignoring duplicate elements (only the first duplicate element is added).
elements
to the ImmutableList
.
elements
to the ImmutableList
.
elements
to the ImmutableMultiset
.
elements
to the ImmutableMultiset
.
elements
to the ImmutableSet
,
ignoring duplicate elements (only the first duplicate element is added).
elements
to the ImmutableSet
,
ignoring duplicate elements (only the first duplicate element is added).
elements
to the ImmutableSortedSet
,
ignoring duplicate elements (only the first duplicate element is added).
elements
to the ImmutableSortedSet
,
ignoring duplicate elements (only the first duplicate element is added).
iterable
to collection
.
iterator
to collection
.
ImmutableMultiset
.
service
.
value
format.
true
if every element in iterable
satisfies the
predicate.
true
if every element returned by iterator
satisfies the given predicate.
void
).
Void
).
false
.
true
.
other
.
true
if each of its
components evaluates to true
.
true
if each of its
components evaluates to true
.
true
if both of its
components evaluate to true
.
true
if one or more elements in iterable
satisfy
the predicate.
true
if one or more elements returned by iterator
satisfy the given predicate.
char
matcher that matches any character present in the given character
sequence.
parts
, using the previously configured
separator between each, to appendable
.
parts
, using the previously configured
separator between each, to appendable
.
appendable
the string representation of each of the remaining arguments.
parts
, using the previously configured
separator between each, to builder
.
parts
, using the previously configured
separator between each, to builder
.
builder
the string representation of each of the remaining arguments.
map
, using the previously
configured separator and key-value separator, to appendable
.
map
, using the previously
configured separator and key-value separator, to builder
.
true
if this matcher matches the given character.
input
.
input
.
compare(a,
b) == 0
implies a == b
(identity equality).
true
if there are no differences between the two maps;
that is, if the maps are equal.
Multimap
that uses an ArrayList
to store
the values for a given key.0x00
through 0x7F
), and to strings containing such
characters.Iterator
to the Enumeration
interface.
Interner.intern(E)
method of
the given interner.
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.
MapEvictionListener
which processes all
eviction notifications asynchronously, using executor
.
Searches
sortedList
for key
using the binary search algorithm.
boolean
primitives, that are not
already found in either Boolean
or Arrays
.ImmutableList
based on the contents of
the Builder
.
ImmutableMultiset
based on the contents
of the Builder
.
ImmutableSet
based on the contents of
the Builder
.
ImmutableSortedSet
based on the contents
of the Builder
and its comparator.
ImmutableSetMultimap.Builder
.
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
whose result is asynchronously
derived from the result of the given Future
.
ListenableFuture
whose result is asynchronously
derived from the result of the given Future
.
Character
values.
CharSequence
as a List<Character>
, viewing sequence
as a sequence of Unicode code
units.
char
value, just as Predicate
does
for any Object
.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.
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.
RuntimeException
if the specified element is
illegal.
index
specifies a valid element in an array,
list or string of size size
.
index
specifies a valid element in an array,
list or string of size size
.
RuntimeException
if the specified key or value is
illegal.
index
specifies a valid position in an array,
list or string of size size
.
index
specifies a valid position in an array,
list or string of size size
.
start
and end
specify a valid positions
in an array, list or string of size size
, and are in order.
InternetDomainName
by prepending the
argument and a dot to the current name.
Closeable
, with control over whether an
IOException
may be thrown.
Closeable
objects.close(closeable, true)
, but with no
IOException in the signature.
Collection
instances.void
.Ordering.natural()
when the natural ordering of the keys is used.
Ordering.natural()
when the natural ordering of the
elements is used.
Comparable.compareTo(T)
, if the result of this comparison chain
has not already been determined.
int
values as specified by Ints.compare(int, int)
,
if the result of this comparison chain has not already been
determined.
long
values as specified by Longs.compare(long, long)
,
if the result of this comparison chain has not already been
determined.
float
values as specified by Float.compare(float, float)
, if the result of this comparison chain has not
already been determined.
double
values as specified by Double.compare(double, double)
, if the result of this comparison chain has not
already been determined.
boolean
values as specified by Booleans.compare(boolean, boolean)
, if the result of this comparison chain has not
already been determined.
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.
EnumSet
consisting of all enum values that are not in
the specified collection.
EnumSet
consisting of all enum values that are not in
the specified collection.
this
, but which
in the event of a "tie", then delegates to secondaryComparator
.
previous
, or returns null
if no elements remain.
element
to array
.
element
to array
.
MapMaker.concurrencyLevel
.
Multiset
operations (exceptions where noted).value
for any input.
Constraint
interface.Iterator
through Iterators.consumingIterator(Iterator)
.
iterator
that removes each element
from the supplied iterator
as it is returned.
true
if the
CharSequence
being tested contains any match for the given
regular expression pattern.
true
if iterable
contains element
; that is,
any object for which equals(element)
is true.
true
if iterator
contains element
.
true
if the table contains a mapping with the specified
row and column keys.
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
.
true
if this multiset contains at least one occurrence of
each element in the specified collection.
true
if the table contains a mapping with the specified
column.
true
if the multimap contains the specified key-value pair.
true
if the multimap contains any values for the specified
key.
true
if the
CharSequence
being tested contains any match for the given
regular expression pattern.
true
if the table contains a mapping with the specified
row key.
true
if the multimap contains the specified value for any
key.
true
if the table contains a mapping with the specified
value.
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.
map
.
map
.
multimap
.
map
.
multimap
.
multimap
.
map
, sorted
by the natural ordering of the keys.
map
, with
keys sorted by the provided comparator.
Comparator
.
Comparator
.
Comparator
.
Comparator
.
element
in this multiset.
InputStream
that counts the number of bytes read.ArrayListMultimap
with the default initial
capacities.
ArrayListMultimap
with enough capacity to hold
the specified numbers of keys and values without resizing.
ArrayListMultimap
with the same mappings as the
specified multimap.
ConcurrentHashMultiset
using the default
initial capacity, load factor, and concurrency settings.
ConcurrentHashMultiset
containing the specified
elements, using the default initial capacity, load factor, and concurrency
settings.
ConcurrentHashMultiset
using mapMaker
to construct the internal backing map.
EnumBiMap
using the specified key and value
types.
EnumHashBiMap
using the specified key type.
EnumMultiset
.
EnumMultiset
containing the specified elements.
HashBasedTable
.
HashBasedTable
with the specified map sizes.
HashBasedTable
with the same mappings as the specified
table.
HashBiMap
with the default initial capacity
(16).
map
.
HashMultimap
with the default initial
capacities.
HashMultimap
with enough capacity to hold the
specified numbers of keys and values without rehashing.
HashMultimap
with the same mappings as the specified
multimap.
HashMultiset
using the default initial
capacity.
HashMultiset
with the specified expected
number of distinct elements.
HashMultiset
containing the specified elements.
LinkedHashMultimap
with the default initial
capacities.
LinkedHashMultimap
with enough capacity to hold
the specified numbers of keys and values without rehashing.
LinkedHashMultimap
with the same mappings as the
specified multimap.
LinkedHashMultiset
using the default initial
capacity.
LinkedHashMultiset
with the specified expected
number of distinct elements.
LinkedHashMultiset
containing the specified elements.
LinkedListMultimap
with the default initial
capacity.
LinkedListMultimap
with enough capacity to hold
the specified number of keys without rehashing.
LinkedListMultimap
with the same mappings as the
specified Multimap
.
MutableClassToInstanceMap
instance backed by a HashMap
using the default initial capacity and load factor.
MutableClassToInstanceMap
instance backed by a given
empty backingMap
.
TreeBasedTable
that uses the natural orderings
of both row and column keys.
TreeBasedTable
that is ordered by the specified
comparators.
TreeBasedTable
with the same mappings and sort order
as the specified TreeBasedTable
.
TreeMultimap
ordered by the natural ordering of
its keys and values.
TreeMultimap
instance using explicit comparators.
TreeMultimap
, ordered by the natural ordering of its
keys and values, with the same mappings as the specified multimap.
SettableFuture
in the default state.
java.io.tmpdir
system
property), and returns its name.
iterable
.
iterable
.
type
as defined by JLS --- 0
for numbers, false
for boolean
and '\0'
for char
.
Ordering.natural()
if the left map uses the
natural ordering of its elements.
AbstractService.start()
to initiate service startup.
double
primitives, that are not
already found in either Double
or Arrays
.null
otherwise.
computeNext
must invoke this method when
there are no elements left in the iteration.
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.
Multiset.Entry
instances, each providing an element of the multiset and
the count of that element.
BiMap
backed by two EnumMap
instances.BiMap
backed by an EnumMap
instance for keys-to-values, and
a HashMap
instance for values-to-keys.EnumMap
.Enum
instances.Object.equals(java.lang.Object)
and Object.hashCode()
.
MapDifference.ValueDifference.leftValue()
values are equal and their MapDifference.ValueDifference.rightValue()
values are also equal.
true
if the object being
tested equals()
the given target or both are null.
Equivalence
instances.true
if the given objects are considered equivalent.
MapMaker
will notify each time an entry is evicted.
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.
expectedSize
.
MinMaxPriorityQueue
instances sized appropriately to hold expectedSize
elements.
MapMaker.expiration(long, java.util.concurrent.TimeUnit)
.
MapMaker.expireAfterWrite(long, java.util.concurrent.TimeUnit)
, which behaves exactly the same.
This method is scheduled for deletion in July 2012.
MapMaker.expireAfterAccess(long, java.util.concurrent.TimeUnit)
.
MapMaker.expireAfterWrite(long, java.util.concurrent.TimeUnit)
.
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.
unfiltered
that satisfy a predicate.
unfiltered
that satisfy a predicate.
type
in unfiltered
.
unfiltered
that satisfy a predicate.
type
in unfiltered
.
unfiltered
that satisfy a predicate.
unfiltered
that satisfy a
predicate.
unfiltered
that
satisfy a predicate.
unfiltered
whose keys
satisfy a predicate.
unfiltered
whose
keys satisfy a predicate.
unfiltered
whose values
satisfy a predicate.
unfiltered
whose
values satisfy a predicate.
finalizeReferent()
method which a background thread invokes
after the garbage collector reclaims the referent.FinalizableReference.finalizeReferent()
on them.finalizeReferent()
method which a background thread invokes after
the garbage collector reclaims the referent.finalizeReferent()
method which a background thread invokes after
the garbage collector reclaims the referent.iterable
that satisfies the given
predicate.
iterable
that satisfies the given
predicate, or defaultValue
if none found.
iterator
that satisfies the given
predicate.
iterator
that satisfies the given
predicate.
null
, if
either is, or otherwise throws a NullPointerException
.
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.
array
in order.
put
that silently removes any existing entry
with the value value
before proceeding with the BiMap.put(K, V)
operation.
Enumeration
to the Iterator
interface.
Character
-based predicate, but
which operates on primitive char
instances instead.
InetAddress
having the given string
representation.
BlockingQueue
which forwards all its method calls to another
BlockingQueue
.ForwardingCheckedFuture
where subclasses
can pass in an already constructed CheckedFuture
as the delegate.ForwardingFuture.SimpleForwardingFuture
which forwards all its method calls to another future.ForwardingFuture
where subclasses
can pass in an already constructed Future
as the delegate.ForwardingListenableFuture.SimpleForwardingListenableFuture
which forwards all its method calls to another
future.ForwardingListenableFuture
where subclasses
can pass in an already constructed ListenableFuture
as the delegate.Service
that forwards all method calls to another service.comparator
.
HostSpecifier
for the given string, throwing
an exception if parsing fails.
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 2 bytes of bytes
; equivalent to ByteBuffer.wrap(bytes).getShort()
.
char
value whose byte representation is the given 2
bytes, in big-endian order; equivalent to Chars.fromByteArray(new
byte[] {b1, b2})
.
int
value whose byte representation is the given 4
bytes, in big-endian order; equivalent to Ints.fromByteArray(new
byte[] {b1, b2, b3, b4})
.
long
value whose byte representation is the given 8
bytes, in big-endian order; equivalent to Longs.fromByteArray(new
byte[] {b1, b2, b3, b4, b5, b6, b7, b8})
.
short
value whose byte representation is the given 2
bytes, in big-endian order; equivalent to Shorts.fromByteArray(new
byte[] {b1, b2})
.
InternetDomainName
after lenient
validation.
InetAddress.getByAddress(java.lang.String, byte[])
expects).
ImmutableMap<String, String>
from a Properties
instance.
HostSpecifier
built from the provided specifier
,
which is already known to be valid.
Function
instances.Future
interface.MapMaker
, except restricted in the types of maps
it can build.iterator
position + 1
times, returning the
element at the position
th position.
iterator
position + 1
times, returning the
element at the position
th position or defaultValue
otherwise.
null
if no such mapping exists.
Throwable
cause chain as a list.
iterable
or defaultValue
if
the iterable is empty.
null
if no
entry for this class is present.
iterable
.
iterable
or defaultValue
if
the iterable is empty.
iterator
to the end, returning the last element.
iterator
to the end, returning the last element or
defaultValue
if the iterator is empty.
iterator
or defaultValue
if
the iterator is empty.
iterable
.
iterable
, or defaultValue
if the iterable is empty.
iterator
.
iterator
, or defaultValue
if the iterator is empty.
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
.
k
greatest elements of the given iterable according to
this ordering, in order from greatest to least.
GwtCompatible
and accessible in
GWT.object
.
Table
using hash tables.BiMap
backed by two HashMap
instances.Arrays.asList(leftValue(), rightValue()).hashCode()
.
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()
.
Multimap
using hash tables.HashMap
.ImmutableSortedMap
, consisting of the entries
whose keys are less than toKey
.
==
to compare values and System.identityHashCode(Object)
to compute the hash code.
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.
BiMap
with reliable user-specified iteration order.public
static final
bimaps ("constant bimaps").ImmutableMap
.List
implementation.public
static final
lists ("constant lists").ListMultimap
with reliable user-specified key and value
iteration order.ListMultimap
instances, especially
public static final
multimaps ("constant multimaps").Map
with reliable user-specified iteration
order.public
static final
maps ("constant maps").Multimap
.public static final
multimaps ("constant multimaps").public static final
multisets ("constant multisets").Set
with reliable, user-specified
iteration order.public
static final
sets ("constant sets").SetMultimap
with reliable user-specified key and value
iteration order.SetMultimap
instances, especially
public static final
multimaps ("constant multimaps").SortedMap
.public static final
maps ("constant maps").SortedSet
that stores its elements in a sorted array.public static final
sets ("constant sets"), with a given comparator.true
if the object reference
being tested is a member of the given collection.
ImmutableListMultimap
that contains the results of
applying a specified function to each item in an Iterable
of
values.
-1
if no
matching character is present.
-1
if no character matches after that position.
iterable
of the first element that satisfies
the provided predicate
, or -1
if the Iterable has no such
elements.
iterator
of the first element that satisfies
the provided predicate
, or -1
if the Iterator has no such
elements.
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.
InetAddress
instances.MapMaker.initialCapacity
.
char
matcher that matches any character in a given range (both endpoints are
inclusive).
true
if the object being
tested is an instance of the given class.
String.intern()
for other immutable
types.Interner
.com
or foo.co.uk
.int
primitives, that are not
already found in either Integer
or Arrays
.source
into dest
, with
its key and value reversed.
char
matcher that matches only one specified character.
true
if the multimap contains no key-value pairs.
true
if the table contains no mappings.
true
if the supplied string is a valid IP string
literal, false
otherwise.
c
is one of the twenty-six lowercase ASCII alphabetic characters
between 'a'
and 'z'
inclusive.
char
matcher that matches any character except the one specified.
true
if the object reference
being tested is null.
true
if the given string is null or is the empty string.
true
if each element in iterable
after the first is
greater than or equal to the element that preceded it, according to this
ordering.
true
if this service is running.
true
if each element in iterable
after the first is
strictly greater than the element that preceded it, according to
this ordering.
c
is one of the twenty-six uppercase ASCII alphabetic characters
between 'A'
and 'Z'
inclusive.
true
if the supplied string is a valid URI IP string
literal, false
otherwise.
specifier
represents a valid
HostSpecifier
as described in the documentation for
HostSpecifier.fromValid(String)
.
true
if type
is one of the nine
primitive-wrapper types, such as Integer
.
Iterable
.Iterator
.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
.
parts
, using the
previously configured separator between each.
parts
, using the
previously configured separator between each.
map
, using the
previously configured separator and key-value separator.
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
.
Iterable
, varargs or even a
Map
) with a separator.Joiner
joins iterables and
arrays.-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
.
k
least elements of the given iterable according to
this ordering, in order from least to greatest.
boolean
arrays
lexicographically.
char
arrays
lexicographically.
double
arrays
lexicographically.
float
arrays
lexicographically.
int
arrays
lexicographically.
long
arrays
lexicographically.
short
arrays
lexicographically.
byte
arrays
lexicographically.
byte
arrays
lexicographically.
this
splitter but
stops splitting after it reaches the limit.
limitSize
elements of the given
iterable.
limitSize
elements of the
given iterator.
readLines
methods.Readable
object.
Multimap
that does not allow duplicate key-value
entries and that returns collections whose iterators follow the ordering in
which the data was added to the multimap.Multiset
implementation with predictable iteration order.ListMultimap
that supports deterministic
iteration order for both keys and values.Future
that accepts completion listeners.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.
Multimap
that can hold duplicate key-value pairs and that maintains
the insertion ordering of values for a given key.List
instances.DataInput
that uses little-endian byte ordering
for reading short
, int
, float
, double
, and
long
values.LittleEndianDataInputStream
that wraps the given stream.
DataOutput
that uses little-endian byte ordering
for writing char
, short
, int
, float
, double
, and long
values.LittleEndianDataOutputStream
that wraps the given stream.
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.
CheckedFuture
out of a normal ListenableFuture
and a Function
that maps from Exception
instances into the
appropriate checked type.
MapMaker.makeComputingMap(com.google.common.base.Function super K, ? extends V>)
.
ListenableFuture
out of a normal Future
.
MapMaker.makeMap()
.
Future
.
FileChannel.map(java.nio.channels.FileChannel.MapMode, long, long)
.
FileChannel.map(java.nio.channels.FileChannel.MapMode, long, long)
using the requested FileChannel.MapMode
.
FileChannel.map(java.nio.channels.FileChannel.MapMode, long, long)
using the requested FileChannel.MapMode
.
Map
or
Multimap
.MapConstraint
interface.InterruptedException
,
CancellationException
or ExecutionException
thrown by
get
to an exception of type X
to be thrown by
checkedGet
.
ConcurrentMap
builder, providing any combination of these
features: soft or weak keys, soft or weak values, size-based evicition, timed expiration, and
on-demand computation of values.MapMaker
instance with default settings,
including strong keys, strong values, and no automatic expiration.
Map
instances.true
if a character sequence contains only matching characters.
true
if a character sequence contains at least one matching character.
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
.
MapMaker.maximumSize
.
MinMaxPriorityQueue
instances
that are limited to maximumSize
elements.
MinMaxPriorityQueue
instances that are limited to maximumSize
elements.
get()
and returns that value on subsequent calls to
get()
.
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
.
Executor
, ExecutorService
, and ThreadFactory
.Map
, but which may associate multiple
values with a single key.Multimap
.Set
, but
may have duplicate elements.Multiset
instances.ArrayList
instance.
ArrayList
instance containing the given
elements.
ArrayList
instance containing the given
elements.
ArrayList
instance containing the given
elements.
ArrayList
instance backed by an array of the
exact size specified; equivalent to
ArrayList.ArrayList(int)
.
ArrayList
instance sized appropriately to hold an
estimated number of elements without resizing.
ConcurrentMap
, which supports
all optional operations of the ConcurrentMap interface.
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.
EnumMap
instance.
EnumMap
with the same mappings as the specified map.
EnumSet
instance containing the given elements.
HashMap
instance.
HashMap
instance with the same mappings as
the specified map.
HashMap
instance with enough capacity to hold the
specified number of elements without rehashing.
HashSet
instance.
HashSet
instance containing the given
elements in unspecified order.
HashSet
instance containing the given
elements in unspecified order.
HashSet
instance containing the given
elements in unspecified order.
HashSet
instance with enough capacity to hold the
specified number of elements without rehashing.
IdentityHashMap
instance.
Set
that uses identity to determine equality.
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.
LinkedHashMap
instance.
LinkedHashMap
instance
with the same mappings as the specified map.
LinkedHashSet
instance.
LinkedHashSet
instance containing the
given elements in order.
LinkedList
instance.
LinkedList
instance containing the given elements.
ListMultimap
that uses the provided map and factory.
Multimap
that uses the provided map and factory.
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.
SetMultimap
that uses the provided map and factory.
SortedSetMultimap
that uses the provided map and
factory.
TreeMap
instance using the natural
ordering of its elements.
TreeMap
instance with the same mappings as
the specified map and using the same ordering as the specified map.
TreeMap
instance using the given
comparator.
TreeSet
instance sorted by the
natural sort ordering of its elements.
TreeSet
instance containing the given
elements sorted by their natural ordering.
TreeSet
instance with the given
comparator.
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.
Ascii.LF
.
char
matcher that matches any character not present in the given character
sequence.
true
if the given predicate
evaluates to false
.
Service.State.FAILED
.
true
if the object reference
being tested is not null.
OutputStream
that simply discards written bytes.null
as less than all other values
and uses this
to compare non-null values.
null
as greater than all other
values and uses this ordering to compare non-null values.
Object
.Objects.toStringHelper(java.lang.Object)
.ImmutableList.copyOf(Object[])
. This method is scheduled for
deletion in October 2011.
ImmutableMultiset.copyOf(Object[])
. This method is scheduled for
deletion in January 2012.
ImmutableSet.copyOf(Object[])
. This method is scheduled for
deletion in October 2011.
ImmutableSortedSet.copyOf(Comparable[])
. This method is scheduled
for deletion in October 2011.
instance
.
this
splitter, but
automatically omits empty strings from the results.
separator
between consecutive elements.
separator
between consecutive elements.
CharMatcher
to be a separator.
pattern
to be a separator.
F
which orders elements by first applying
a function to them, then comparing those results using this
.
other
.
true
if any one of its
components evaluates to true
.
true
if any one of its
components evaluates to true
.
true
if either of its
components evaluates to true
.
MinMaxPriorityQueue
instances that use comparator
to determine the
least and greatest elements.
minLength
, consisting of
string
appended with as many copies of padChar
as are
necessary to reach that length.
minLength
, consisting of
string
prepended with as many copies of padChar
as are
necessary to reach that length.
InternetDomainName
that is the immediate ancestor of
this one; that is, the current domain with the leftmost part removed.
PeekingIterator.peek()
.
null
if the queue is empty.
PeekingIterator
backed by the given iterator.
null
if the queue is empty.
null
if the queue is empty.
null
if the queue is empty.
set
.
char
matcher functionally equivalent to this one, but which may be faster to
query than the original; your mileage may vary.
Predicate
instances.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
, declaredType1
,
or declaredType2
.
null
if no public suffix is present.
key
with value
in the built bimap.
key
with value
in the built map.
key
with value
in the built map.
key
with value
in the built map.
map's
keys and values in the built map.
b
.
DataInputStream.readChar()
, except
using little-endian byte order.
double
as specified by
DataInputStream.readDouble()
, except using little-endian byte
order.
Readable
& Closeable
object
supplied by a factory.
float
as specified by DataInputStream.readFloat()
,
except using little-endian byte order.
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)
.
DataInputStream.readInt()
, except
using little-endian byte order.
UnsupportedOperationException
.
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.
long
as specified by DataInputStream.readLong()
,
except using little-endian byte order.
short
as specified by DataInputStream.readShort()
,
except using little-endian byte order.
short
as specified by
DataInputStream.readUnsignedShort()
, except using little-endian
byte order.
element
, or
makes no change if this is not possible.
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.
Lists.reverse(List)
or ImmutableList.reverse()
. This method is scheduled for deletion in
July 2012.
Ordering
equivalent to
Collections.reverseOrder(Comparator)
.
Table
and whose rows are sorted.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
.
element
such that the ConcurrentHashMultiset.count(java.lang.Object)
of the element becomes count
.
element
to newCount
, but
only if the count is currently oldCount
.
Multiset.setCount(Object, int)
, provided that the element has the expected
current count.
throwable
.
Multimap
that cannot hold duplicate key-value pairs.Thread.setName(java.lang.String)
)
which are created with this ThreadFactory.
Set
instances.ListenableFuture
whose result may be set by a SettableFuture.set(Object)
or SettableFuture.setException(Throwable)
call.ThreadFactory
for new threads created with this
ThreadFactory.
Thread.UncaughtExceptionHandler
for new threads created with this
ThreadFactory.
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.
value
.
iterable
.
iterator
.
iterable
that skips its first
numberToSkip
elements.
next()
on iterator
, either numberToSkip
times
or until hasNext()
returns false
, whichever comes first.
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.
MapMaker.softKeys()
.
SoftReference
(by default, strong references
are used).
MapMaker.softValues()
.
SoftReference
(by default, strong references
are used).
SortedMap
instances.SetMultimap
whose set of values for a given key are kept sorted;
that is, they comprise a SortedSet
.Ascii.SP
.
sequence
into string components and makes them available
through an Iterator
, which may be lazily evaluated.
CharSequence
)
into substrings, by recognizing a separator (a.k.a.ForwardingCollection.add(Object)
, in terms of
ForwardingList.add(int, Object)
.
ForwardingCollection.add(Object)
in terms of ForwardingMultiset.add(Object, int)
.
ForwardingCollection.addAll(java.util.Collection extends E>)
in terms of ForwardingCollection.add(E)
.
ForwardingList.addAll(int, Collection)
, in
terms of the add
method of ForwardingList.listIterator(int)
.
ForwardingCollection.addAll(Collection)
in terms of ForwardingCollection.add(Object)
and ForwardingMultiset.add(Object, int)
.
ForwardingCollection.clear()
in terms of ForwardingCollection.iterator()
,
using the iterator's remove
method.
ForwardingMap.clear()
in terms of the iterator
method of ForwardingMap.entrySet()
.
ForwardingCollection.clear()
in terms of the iterator
method of ForwardingMultiset.entrySet()
.
ForwardingCollection.contains(java.lang.Object)
in terms of ForwardingCollection.iterator()
.
ForwardingCollection.contains(java.lang.Object)
in terms of ForwardingMultiset.count(java.lang.Object)
.
ForwardingCollection.contains(java.lang.Object)
in terms of the first()
method of ForwardingSortedSet.tailSet(E)
.
ForwardingCollection.containsAll(java.util.Collection>)
in terms of ForwardingCollection.contains(java.lang.Object)
.
ForwardingMap.containsKey(java.lang.Object)
in terms
of the iterator
method of ForwardingMap.entrySet()
.
ForwardingMap.containsKey(java.lang.Object)
in terms of the firstKey()
method of ForwardingSortedMap.tailMap(K)
.
ForwardingMap.containsValue(java.lang.Object)
in terms of the iterator
method of ForwardingMap.entrySet()
.
ForwardingMultiset.count(java.lang.Object)
in terms of
ForwardingMultiset.entrySet()
.
ForwardingMultiset.elementSet()
in terms of the following
methods: ForwardingCollection.clear()
, ForwardingCollection.contains(java.lang.Object)
, ForwardingCollection.containsAll(java.util.Collection>)
,
ForwardingMultiset.count(java.lang.Object)
, ForwardingCollection.isEmpty()
, the size()
and iterator()
methods of ForwardingMultiset.entrySet()
, and ForwardingMultiset.remove(Object, int)
.
ForwardingMap.entrySet()
in terms of the specified Supplier
, which is used to generate iterators over the entry set, and in
terms of the following methods: ForwardingMap.clear()
, ForwardingMap.containsKey(java.lang.Object)
,
ForwardingMap.get(java.lang.Object)
, ForwardingMap.isEmpty()
, ForwardingMap.remove(java.lang.Object)
, and ForwardingMap.size()
.
ForwardingList.equals(Object)
in terms of ForwardingCollection.size()
and ForwardingCollection.iterator()
.
ForwardingMap.equals(java.lang.Object)
in terms of the equals
method of ForwardingMap.entrySet()
.
ForwardingMapEntry.equals(Object)
in terms of ForwardingMapEntry.getKey()
and ForwardingMapEntry.getValue()
.
ForwardingCollection.size()
in terms of
entrySet().size()
and ForwardingMultiset.count(java.lang.Object)
.
ForwardingSet.equals(java.lang.Object)
in terms of ForwardingCollection.size()
and
ForwardingCollection.containsAll(java.util.Collection>)
.
ForwardingList.hashCode()
in terms of ForwardingCollection.iterator()
.
ForwardingMap.hashCode()
in terms of the iterator
method of ForwardingMap.entrySet()
.
ForwardingMapEntry.hashCode()
in terms of ForwardingMapEntry.getKey()
and ForwardingMapEntry.getValue()
.
ForwardingMultiset.hashCode()
as entrySet().hashCode()
.
ForwardingSet.hashCode()
in terms of ForwardingCollection.iterator()
.
ForwardingList.indexOf(java.lang.Object)
, in terms of ForwardingList.listIterator()
.
ForwardingCollection.isEmpty()
as !iterator().hasNext
.
ForwardingMap.isEmpty()
in terms of the iterator
method of ForwardingMap.entrySet()
.
ForwardingCollection.iterator()
, in terms of
ForwardingList.listIterator()
.
ForwardingCollection.iterator()
in terms of ForwardingMultiset.entrySet()
and ForwardingCollection.remove(Object)
.
ForwardingMap.keySet()
in terms of the following methods:
ForwardingMap.clear()
, ForwardingMap.containsKey(java.lang.Object)
, ForwardingMap.isEmpty()
, ForwardingMap.remove(java.lang.Object)
,
ForwardingMap.size()
, and the iterator
method of ForwardingMap.entrySet()
.
ForwardingList.lastIndexOf(java.lang.Object)
, in terms of
ForwardingList.listIterator(int)
.
ForwardingList.listIterator()
, in terms of
ForwardingList.listIterator(int)
.
ForwardingList.listIterator(int)
, in terms
of ForwardingCollection.size()
and ForwardingList.get(int)
.
ForwardingQueue.offer(E)
in terms of ForwardingCollection.add(E)
.
ForwardingQueue.peek()
in terms of ForwardingQueue.element()
.
ForwardingQueue.poll()
in terms of ForwardingQueue.remove()
.
ForwardingMap.putAll(Map)
in terms of ForwardingMap.put(Object, Object)
.
ForwardingCollection.remove(java.lang.Object)
in terms of ForwardingCollection.iterator()
,
using the iterator's remove
method.
ForwardingMap.remove(java.lang.Object)
in terms of
the iterator
method of ForwardingMap.entrySet()
.
ForwardingCollection.remove(Object)
in terms of ForwardingMultiset.remove(Object, int)
.
ForwardingMap.remove(java.lang.Object)
in terms of the iterator()
of the entrySet()
of ForwardingSortedMap.tailMap(K)
.
ForwardingCollection.remove(java.lang.Object)
in terms of the iterator()
method of ForwardingSortedSet.tailSet(E)
.
ForwardingCollection.removeAll(java.util.Collection>)
in terms of ForwardingCollection.iterator()
,
using the iterator's remove
method.
ForwardingCollection.removeAll(java.util.Collection>)
in terms of the removeAll
method of ForwardingMultiset.elementSet()
.
ForwardingCollection.retainAll(java.util.Collection>)
in terms of ForwardingCollection.iterator()
,
using the iterator's remove
method.
ForwardingCollection.retainAll(java.util.Collection>)
in terms of the retainAll
method of ForwardingMultiset.elementSet()
.
ForwardingMultiset.setCount(Object, int)
in terms of ForwardingMultiset.count(Object)
, ForwardingMultiset.add(Object, int)
, and ForwardingMultiset.remove(Object,
int)
.
ForwardingMultiset.setCount(Object, int, int)
in terms of
ForwardingMultiset.count(Object)
and ForwardingMultiset.setCount(Object, int)
.
ForwardingCollection.size()
in terms of
ForwardingMultiset.entrySet()
.
ForwardingService.startAndWait()
, in terms of
ForwardingService.start()
.
ForwardingService.stopAndWait()
, in terms of
ForwardingService.stop()
.
ForwardingList.subList(int, int)
.
ForwardingSortedMap.subMap(Object, Object)
in
terms of ForwardingSortedMap.headMap(Object)
and ForwardingSortedMap.tailMap(Object)
.
ForwardingSortedSet.subSet(Object, Object)
in
terms of ForwardingSortedSet.headSet(Object)
and ForwardingSortedSet.tailSet(Object)
.
ForwardingCollection.toArray()
in terms of ForwardingCollection.toArray(Object[])
.
ForwardingCollection.toArray(Object[])
in terms of ForwardingCollection.size()
and ForwardingCollection.iterator()
.
ForwardingObject.toString()
in terms of ForwardingCollection.iterator()
.
ForwardingObject.toString()
in terms of the iterator
method of ForwardingMap.entrySet()
.
ForwardingObject.toString()
in terms of ForwardingMapEntry.getKey()
and ForwardingMapEntry.getValue()
.
ForwardingObject.toString()
as entrySet().toString()
.
ForwardingMap.values()
in terms of the following methods:
ForwardingMap.clear()
, ForwardingMap.containsValue(java.lang.Object)
, ForwardingMap.isEmpty()
, ForwardingMap.size()
,
and the iterator
method of ForwardingMap.entrySet()
.
Service.State.NEW
, this initiates service startup
and returns immediately.
String
or CharSequence
instances.fromIndex
, inclusive, and toIndex
, exclusive.
ImmutableSortedMap
, consisting of the entries
whose keys ranges from fromKey
, inclusive, to toKey
,
exclusive.
Supplier.get()
on that supplier.
ListMultimap
backed by the
specified multimap.
SetMultimap
backed by the
specified multimap.
SortedSetMultimap
backed by
the specified multimap.
get()
method synchronizes on
delegate
before calling it, making it thread-safe.
Table
.ImmutableSortedMap
, consisting of the entries
whose keys are greater than or equals to fromKey
.
setThreadFactory(
Executors.defaultThreadFactory()
)
.ThreadFactory
builder.
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 2-element byte
array; equivalent to ByteBuffer.allocate(2).putShort(value).array()
.
Objects.toStringHelper(Object)
.
toString
method.
iterable
, with the format
[e1, e2, ..., en]
.
iterator
, with the format
[e1, e2, ..., en]
.
toString
on the map returned by Multimap.asMap()
.
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.
toString()
on its argument.
Objects.ToStringHelper
.
Objects.ToStringHelper
in the same manner as
Objects.toStringHelper(Object)
, but using the name of clazz
instead of using an instance's Object.getClass()
.
Objects.ToStringHelper
in the same manner as
Objects.toStringHelper(Object)
, but using className
instead
of using an instance's Object.getClass()
.
InetAddress
suitable
for inclusion in a URI.
function
to each element of
fromCollection
.
function
to each element of fromIterable
.
function
to each element of fromIterator
.
function
to each element of fromList
.
ListenableFuture
whose result is the product of
applying the given Function
to the result of the given Future
.
ListenableFuture
whose result is the product of
applying the given Function
to the result of the given Future
.
Future
whose result is the product of applying the
given Function
to the result of the given Future
.
ListMultimap
whose values are derived from the
original multimap's entries.
ListMultimap
where each value is transformed by
a function.
Table
whose row keys and column keys are ordered
by their natural ordering or by supplied comparators.Multimap
whose keys and values are ordered by
their natural ordering or by supplied comparators.Comparator
.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.
ArrayListMultimap
, if feasible.
Thread.UncaughtExceptionHandler
instances.TimeoutException
.Future
whose get
calls cannot be interrupted.Map.values()
are the given
elements in the given order, and each key is the product of invoking a
supplied function on its corresponding value.
iterable
.
iterator
.
UnmodifiableIterator.remove()
.UnmodifiableIterator.remove()
, UnmodifiableListIterator.add(E)
, or
UnmodifiableListIterator.set(E)
.ListMultimap
.
SetMultimap
.
SortedSetMultimap
.
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.
nullText
for any provided null keys or values.
nullText
for any provided null elements.
toString()
.
null
indicating that natural ordering is used.
Function
that maps an Enum
name to the associated
Enum
constant.
Collection
view of the values contained in this map.
MapMaker.weakKeys()
.
WeakReference
(by default, strong references
are used).
MapMaker.weakValues()
.
WeakReference
(by default, strong references
are used).
ImmutableSortedSet.copyOf(Iterable)
will produce a set with the same elements in
the same order. If the elements are arranged according to another
Comparator
, use ImmutableSortedSet.orderedBy(Comparator)
. Otherwise, use
ImmutableSet
, which maintains insertion order for inputs that
are ordered but not sorted. This method is scheduled for deletion in
Guava release 10.
ImmutableSortedSet.of()
will produce a set with the same elements in the same
order. If the elements are arranged according to another Comparator
, use ImmutableSortedSet.orderedBy(Comparator)
. Otherwise, use ImmutableSet
, which maintains insertion order for inputs that are
ordered but not sorted. This method is scheduled for deletion in Guava
release 10.
MapJoiner
using the given key-value separator, and the same configuration as
this Joiner
otherwise.
type
if it is a primitive
type; otherwise returns type
itself.
write(s.getBytes(Charsets.UTF_8))
.
writeBytes(String s)
are considered
dangerous. Please use LittleEndianDataOutputStream.writeUTF(String s)
,
LittleEndianDataOutputStream.writeChars(String s)
or another write method instead.
DataOutputStream.writeChar(int)
,
except using little-endian byte order.
String
as specified by
DataOutputStream.writeChars(String)
, except each character is
written using little-endian byte order.
double
as specified by
DataOutputStream.writeDouble(double)
, except using little-endian
byte order.
float
as specified by
DataOutputStream.writeFloat(float)
, except using little-endian byte
order.
int
as specified by
DataOutputStream.writeInt(int)
, except using little-endian byte
order.
long
as specified by
DataOutputStream.writeLong(long)
, except using little-endian byte
order.
short
as specified by
DataOutputStream.writeShort(int)
, except using little-endian byte
order.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |