Uses of Class
com.google.common.annotations.Beta
-
Packages that use Beta Package Description com.google.common.base Basic utility libraries and interfaces.com.google.common.collect This package contains generic collection interfaces and implementations, and other utilities for working with collections.com.google.common.escape Interfaces, utilities, and simple implementations of escapers and encoders.com.google.common.graph An API for representing graph (node and edge) data.com.google.common.hash Hash functions and related structures.com.google.common.io This package contains utility methods and classes for working with Java I/O; for example input streams, output streams, readers, writers, and files.com.google.common.math Arithmetic functions operating on primitive values andBigIntegerinstances.com.google.common.net This package contains utility methods and classes for working with net addresses (numeric IP and domain names).com.google.common.primitives Static utilities for working with the eight primitive types andvoid, and value types for treating them as unsigned.com.google.common.reflect This package contains utilities to work with Java reflection.com.google.common.util.concurrent Concurrency utilities.com.google.common.xml Escapers for XML. -
-
Uses of Beta in com.google.common.base
Classes in com.google.common.base with annotations of type Beta Modifier and Type Class Description static classSplitter.MapSplitterAn object that splits strings into maps asSplittersplits iterables and lists.classUtf8Low-level, high-performance utility methods related to the UTF-8 character encoding.Methods in com.google.common.base with annotations of type Beta Modifier and Type Method Description <A extends Appendable>
AJoiner.MapJoiner. appendTo(A appendable, Iterable<? extends Map.Entry<?,?>> entries)Appends the string representation of each entry inentries, using the previously configured separator and key-value separator, toappendable.<A extends Appendable>
AJoiner.MapJoiner. appendTo(A appendable, Iterator<? extends Map.Entry<?,?>> parts)Appends the string representation of each entry inentries, using the previously configured separator and key-value separator, toappendable.StringBuilderJoiner.MapJoiner. appendTo(StringBuilder builder, Iterable<? extends Map.Entry<?,?>> entries)Appends the string representation of each entry inentries, using the previously configured separator and key-value separator, tobuilder.StringBuilderJoiner.MapJoiner. appendTo(StringBuilder builder, Iterator<? extends Map.Entry<?,?>> entries)Appends the string representation of each entry inentries, using the previously configured separator and key-value separator, tobuilder.static List<Throwable>Throwables. getCausalChain(Throwable throwable)Gets aThrowablecause chain as a list.static <X extends Throwable>
XThrowables. getCauseAs(Throwable throwable, Class<X> expectedCauseType)Returnsthrowable's cause, cast toexpectedCauseType.StringJoiner.MapJoiner. join(Iterable<? extends Map.Entry<?,?>> entries)Returns a string containing the string representation of each entry inentries, using the previously configured separator and key-value separator.StringJoiner.MapJoiner. join(Iterator<? extends Map.Entry<?,?>> entries)Returns a string containing the string representation of each entry inentries, using the previously configured separator and key-value separator.static List<StackTraceElement>Throwables. lazyStackTrace(Throwable throwable)Returns the stack trace ofthrowable, possibly providing slower iteration over the full trace but faster iteration over parts of the trace.static booleanThrowables. lazyStackTraceIsLazy()Returns whetherThrowables.lazyStackTrace(java.lang.Throwable)will use the special implementation described in its documentation.abstract TOptional. or(Supplier<? extends T> supplier)Returns the contained instance if it is present;supplier.get()otherwise.static <T> Iterable<T>Optional. presentInstances(Iterable<? extends Optional<? extends T>> optionals)Returns the value of each present instance from the suppliedoptionals, in order, skipping over occurrences ofOptional.absent().static Predicate<Class<?>>Predicates. subtypeOf(Class<?> clazz)Returns a predicate that evaluates totrueif the class being tested is assignable to (is a subtype of)clazz.Splitter.MapSplitterSplitter. withKeyValueSeparator(char separator)Returns aMapSplitterwhich splits entries based on this splitter, and splits entries into keys and values using the specified separator.Splitter.MapSplitterSplitter. withKeyValueSeparator(Splitter keyValueSplitter)Returns aMapSplitterwhich splits entries based on this splitter, and splits entries into keys and values using the specified key-value splitter.Splitter.MapSplitterSplitter. withKeyValueSeparator(String separator)Returns aMapSplitterwhich splits entries based on this splitter, and splits entries into keys and values using the specified separator. -
Uses of Beta in com.google.common.collect
Classes in com.google.common.collect with annotations of type Beta Modifier and Type Class Description classArrayTable<R,C,V>Fixed-sizeTableimplementation backed by a two-dimensional array.classComparatorsProvides static methods for working withComparatorinstances.classEvictingQueue<E>A non-blocking queue which automatically evicts elements from the head of the queue when attempting to add new elements onto the queue and it is full.protected classForwardingMap.StandardEntrySetA sensible implementation ofMap.entrySet()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), andForwardingMap.size().protected classForwardingMap.StandardKeySetA sensible implementation ofMap.keySet()in terms of the following methods:ForwardingMap.clear(),ForwardingMap.containsKey(java.lang.Object),ForwardingMap.isEmpty(),ForwardingMap.remove(java.lang.Object),ForwardingMap.size(), and theSet.iterator()method ofForwardingMap.entrySet().protected classForwardingMap.StandardValuesA sensible implementation ofMap.values()in terms of the following methods:ForwardingMap.clear(),ForwardingMap.containsValue(java.lang.Object),ForwardingMap.isEmpty(),ForwardingMap.size(), and theSet.iterator()method ofForwardingMap.entrySet().protected classForwardingMultiset.StandardElementSetA sensible implementation ofMultiset.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(), theSet.size()andSet.iterator()methods ofForwardingMultiset.entrySet(), andForwardingMultiset.remove(Object, int).protected classForwardingNavigableMap.StandardDescendingMapA sensible implementation ofNavigableMap.descendingMap()in terms of the methods of thisNavigableMap.protected classForwardingNavigableMap.StandardNavigableKeySetA sensible implementation ofNavigableMap.navigableKeySet()in terms of the methods of thisNavigableMap.protected classForwardingNavigableSet.StandardDescendingSetA sensible implementation ofNavigableSet.descendingSet()in terms of the other methods ofNavigableSet, notably includingNavigableSet.descendingIterator().protected classForwardingSortedMap.StandardKeySetA sensible implementation ofSortedMap.keySet()in terms of the methods ofForwardingSortedMap.classForwardingSortedMultiset<E extends @Nullable Object>A sorted multiset which forwards all its method calls to another sorted multiset.classImmutableRangeMap<K extends Comparable<?>,V>ARangeMapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableRangeSet<C extends Comparable>ARangeSetwhose contents will never change, with many other important properties detailed atImmutableCollection.classMinMaxPriorityQueue<E>A double-ended priority queue, which provides constant-time access to both its least element and its greatest element, as determined by the queue's specified comparator.static classMinMaxPriorityQueue.Builder<B>The builder class used in creation of min-max priority queues.interfaceRangeMap<K extends Comparable,V>A mapping from disjoint nonempty ranges to non-null values.interfaceRangeSet<C extends Comparable>classTreeRangeMap<K extends Comparable,V>An implementation ofRangeMapbased on aTreeMap, supporting all optional operations.classTreeRangeSet<C extends Comparable<?>>classTreeTraverser<T>Deprecated.UseTraverserinstead.Methods in com.google.common.collect with annotations of type Beta Modifier and Type Method Description FluentIterable<E>FluentIterable. append(E... elements)Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable, followed byelements.FluentIterable<E>FluentIterable. append(Iterable<? extends E> other)Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable, followed by those ofother.static <K extends @Nullable Object,V extends @Nullable Object>
Map<K,List<V>>Multimaps. asMap(ListMultimap<K,V> multimap)static <K extends @Nullable Object,V extends @Nullable Object>
Map<K,Collection<V>>Multimaps. asMap(Multimap<K,V> multimap)Returnsmultimap.asMap().static <K extends @Nullable Object,V extends @Nullable Object>
Map<K,Set<V>>Multimaps. asMap(SetMultimap<K,V> multimap)static <K extends @Nullable Object,V extends @Nullable Object>
Map<K,SortedSet<V>>Multimaps. asMap(SortedSetMultimap<K,V> multimap)Returnsmultimap.asMap(), with its type corrected fromMap<K, Collection<V>>toMap<K, SortedSet<V>>.static <K,V>
ImmutableBiMap.Builder<K,V>ImmutableBiMap. builderWithExpectedSize(int expectedSize)Returns a new builder, expecting the specified number of entries to be added.static <E> ImmutableList.Builder<E>ImmutableList. builderWithExpectedSize(int expectedSize)Returns a new builder, expecting the specified number of elements to be added.static <K,V>
ImmutableMap.Builder<K,V>ImmutableMap. builderWithExpectedSize(int expectedSize)Returns a new builder, expecting the specified number of entries to be added.static <E> ImmutableSet.Builder<E>ImmutableSet. builderWithExpectedSize(int expectedSize)Returns a new builder, expecting the specified number of distinct elements to be added.static List<Character>Lists. charactersOf(CharSequence sequence)Returns a view of the specifiedCharSequenceas aList<Character>, viewingsequenceas a sequence of Unicode code units.static ContiguousSet<Integer>ContiguousSet. closed(int lower, int upper)Returns a nonempty contiguous set containing allintvalues fromlower(inclusive) toupper(inclusive).static ContiguousSet<Long>ContiguousSet. closed(long lower, long upper)Returns a nonempty contiguous set containing alllongvalues fromlower(inclusive) toupper(inclusive).static ContiguousSet<Integer>ContiguousSet. closedOpen(int lower, int upper)Returns a contiguous set containing allintvalues fromlower(inclusive) toupper(exclusive).static ContiguousSet<Long>ContiguousSet. closedOpen(long lower, long upper)Returns a contiguous set containing alllongvalues fromlower(inclusive) toupper(exclusive).static <E> Set<Set<E>>Sets. combinations(Set<E> set, int size)Returns the set of all subsets ofsetof sizesize.static <T extends @Nullable Object>
FluentIterable<T>FluentIterable. concat(Iterable<? extends Iterable<? extends T>> inputs)Returns a fluent iterable that combines several iterables.static <T extends @Nullable Object>
FluentIterable<T>FluentIterable. concat(Iterable<? extends T>... inputs)Returns a fluent iterable that combines several iterables.static <T extends @Nullable Object>
FluentIterable<T>FluentIterable. concat(Iterable<? extends T> a, Iterable<? extends T> b)Returns a fluent iterable that combines two iterables.static <T extends @Nullable Object>
FluentIterable<T>FluentIterable. concat(Iterable<? extends T> a, Iterable<? extends T> b, Iterable<? extends T> c)Returns a fluent iterable that combines three iterables.static <T extends @Nullable Object>
FluentIterable<T>FluentIterable. concat(Iterable<? extends T> a, Iterable<? extends T> b, Iterable<? extends T> c, Iterable<? extends T> d)Returns a fluent iterable that combines four iterables.static <E> ImmutableMultiset<E>Multisets. copyHighestCountFirst(Multiset<E> multiset)Returns a copy ofmultisetas anImmutableMultisetwhose iteration order is highest count first, with ties broken by the iteration order of the original multiset.static <K,V>
ImmutableBiMap<K,V>ImmutableBiMap. copyOf(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Returns an immutable bimap containing the given entries.static <K,V>
ImmutableListMultimap<K,V>ImmutableListMultimap. copyOf(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Returns an immutable multimap containing the specified entries.static <K,V>
ImmutableMap<K,V>ImmutableMap. copyOf(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Returns an immutable map containing the specified entries.static <K,V>
ImmutableMultimap<K,V>ImmutableMultimap. copyOf(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Returns an immutable multimap containing the specified entries.static <K,V>
ImmutableSetMultimap<K,V>ImmutableSetMultimap. copyOf(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Returns an immutable multimap containing the specified entries.static <K,V>
ImmutableSortedMap<K,V>ImmutableSortedMap. copyOf(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Returns an immutable map containing the given entries, with keys sorted by their natural ordering.static <K,V>
ImmutableSortedMap<K,V>ImmutableSortedMap. copyOf(Iterable<? extends Map.Entry<? extends K,? extends V>> entries, Comparator<? super K> comparator)Returns an immutable map containing the given entries, with keys sorted by the provided comparator.static <E> ConcurrentHashMultiset<E>ConcurrentHashMultiset. create(ConcurrentMap<E,AtomicInteger> countMap)Creates a new, emptyConcurrentHashMultisetusingcountMapas the internal backing map.static <E extends @Nullable Object>
Multiset<E>Multisets. difference(Multiset<E> multiset1, Multiset<?> multiset2)Returns an unmodifiable view of the difference of two multisets.static <E> intQueues. drain(BlockingQueue<E> q, Collection<? super E> buffer, int numElements, long timeout, TimeUnit unit)Drains the queue asBlockingQueue.drainTo(Collection, int), but if the requestednumElementselements are not available, it will wait for them up to the specified timeout.static <E> intQueues. drainUninterruptibly(BlockingQueue<E> q, Collection<? super E> buffer, int numElements, long timeout, TimeUnit unit)Drains the queue as Queues.drain(BlockingQueue, Collection, int, long, TimeUnit), but with a different behavior in case it is interrupted while waiting.static <E extends @Nullable Object>
Multiset<E>Multisets. filter(Multiset<E> unfiltered, Predicate<? super E> predicate)Returns a view of the elements ofunfilteredthat satisfy a predicate.static <E extends @Nullable Object>
FluentIterable<E>FluentIterable. from(E[] elements)Returns a fluent iterable containingelementsin the specified order.StringFluentIterable. join(Joiner joiner)Returns aStringcontaining all of the elements of this fluent iterable joined withjoiner.static <T extends Comparable<? super T>>
TComparators. max(T a, T b)Returns the maximum of the two values.static <T extends @Nullable Object>
TComparators. max(T a, T b, Comparator<T> comparator)Returns the maximum of the two values, according to the given comparator.static <T extends @Nullable Object>
Iterable<T>Iterables. mergeSorted(Iterable<? extends Iterable<? extends T>> iterables, Comparator<? super T> comparator)Returns an iterable over the merged contents of all giveniterables.static <T extends @Nullable Object>
UnmodifiableIterator<T>Iterators. mergeSorted(Iterable<? extends Iterator<? extends T>> iterators, Comparator<? super T> comparator)Returns an iterator over the merged contents of all giveniterators, traversing every element of the input iterators.static <T extends Comparable<? super T>>
TComparators. min(T a, T b)Returns the minimum of the two values.static <T extends @Nullable Object>
TComparators. min(T a, T b, Comparator<T> comparator)Returns the minimum of the two values, according to the given comparator.static <R,C,V>
Table<R,C,V>Tables. newCustomTable(Map<R,Map<C,V>> backingMap, Supplier<? extends Map<C,V>> factory)Creates a table that uses the specified backing map and factory.static <E extends @Nullable Object>
FluentIterable<E>FluentIterable. of()Returns a fluent iterable containing no elements.static <E extends @Nullable Object>
FluentIterable<E>FluentIterable. of(E element, E... elements)Returns a fluent iterable containing the specified elements in order.static <E extends Comparable<? super E>>
Collection<List<E>>Collections2. orderedPermutations(Iterable<E> elements)Returns aCollectionof all the permutations of the specifiedIterable.static <E> Collection<List<E>>Collections2. orderedPermutations(Iterable<E> elements, Comparator<? super E> comparator)Returns aCollectionof all the permutations of the specifiedIterableusing the specifiedComparatorfor establishing the lexicographical ordering.ImmutableBiMap.Builder<K,V>ImmutableBiMap.Builder. orderEntriesByValue(Comparator<? super V> valueComparator)Configures thisBuilderto order entries by value according to the specified comparator.ImmutableMap.Builder<K,V>ImmutableMap.Builder. orderEntriesByValue(Comparator<? super V> valueComparator)Configures thisBuilderto order entries by value according to the specified comparator.ImmutableSortedMap.Builder<K,V>ImmutableSortedMap.Builder. orderEntriesByValue(Comparator<? super V> valueComparator)Deprecated.Unsupported by ImmutableSortedMap.Builder.static <E> Collection<List<E>>Collections2. permutations(Collection<E> elements)Returns aCollectionof all the permutations of the specifiedCollection.ImmutableBiMap.Builder<K,V>ImmutableBiMap.Builder. putAll(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Adds all of the given entries to the built bimap.ImmutableListMultimap.Builder<K,V>ImmutableListMultimap.Builder. putAll(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Adds entries to the built multimap.ImmutableMap.Builder<K,V>ImmutableMap.Builder. putAll(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Adds all of the given entries to the built map.ImmutableMultimap.Builder<K,V>ImmutableMultimap.Builder. putAll(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Adds entries to the built multimap.ImmutableSetMultimap.Builder<K,V>ImmutableSetMultimap.Builder. putAll(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Adds entries to the built multimap.ImmutableSortedMap.Builder<K,V>ImmutableSortedMap.Builder. putAll(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)Adds all the given entries to the built map.protected booleanForwardingMultiset. standardAddAll(Collection<? extends E> elementsToAdd)A sensible definition ofForwardingCollection.addAll(Collection)in terms ofForwardingCollection.add(Object)andForwardingMultiset.add(Object, int).protected booleanForwardingSortedSet. standardContains(Object object)A sensible definition ofForwardingCollection.contains(java.lang.Object)in terms of thefirst()method ofForwardingSortedSet.tailSet(E).protected booleanForwardingMap. standardContainsKey(Object key)A sensible, albeit inefficient, definition ofForwardingMap.containsKey(java.lang.Object)in terms of theiteratormethod ofForwardingMap.entrySet().protected booleanForwardingSortedMap. standardContainsKey(Object key)A sensible definition ofForwardingMap.containsKey(java.lang.Object)in terms of thefirstKey()method ofForwardingSortedMap.tailMap(K).protected intForwardingMultiset. standardCount(Object object)A sensible, albeit inefficient, definition ofForwardingMultiset.count(java.lang.Object)in terms ofForwardingMultiset.entrySet().protected NavigableSet<K>ForwardingNavigableMap. standardDescendingKeySet()A sensible definition ofForwardingNavigableMap.descendingKeySet()as thenavigableKeySetofForwardingNavigableMap.descendingMap().protected booleanForwardingList. standardEquals(Object object)A sensible definition ofForwardingList.equals(Object)in terms ofForwardingCollection.size()andForwardingCollection.iterator().protected intForwardingList. standardHashCode()A sensible definition ofForwardingList.hashCode()in terms ofForwardingCollection.iterator().protected ListIterator<E>ForwardingList. standardListIterator(int start)A sensible default implementation ofForwardingList.listIterator(int), in terms ofForwardingCollection.size(),ForwardingList.get(int),ForwardingList.set(int, Object),ForwardingList.add(int, Object), andForwardingList.remove(int).protected VForwardingMap. standardRemove(Object key)A sensible, albeit inefficient, definition ofForwardingMap.remove(java.lang.Object)in terms of theiteratormethod ofForwardingMap.entrySet().protected booleanForwardingSortedSet. standardRemove(Object object)A sensible definition ofForwardingCollection.remove(java.lang.Object)in terms of theiterator()method ofForwardingSortedSet.tailSet(E).protected List<E>ForwardingList. standardSubList(int fromIndex, int toIndex)A sensible default implementation ofForwardingList.subList(int, int).protected SortedMap<K,V>ForwardingSortedMap. standardSubMap(K fromKey, K toKey)A sensible default implementation ofForwardingSortedMap.subMap(Object, Object)in terms ofForwardingSortedMap.headMap(Object)andForwardingSortedMap.tailMap(Object).protected NavigableSet<E>ForwardingNavigableSet. standardSubSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)A sensible definition ofForwardingNavigableSet.subSet(Object, boolean, Object, boolean)in terms of theheadSetandtailSetmethods.protected SortedSet<E>ForwardingSortedSet. standardSubSet(E fromElement, E toElement)A sensible default implementation ofForwardingSortedSet.subSet(Object, Object)in terms ofForwardingSortedSet.headSet(Object)andForwardingSortedSet.tailSet(Object).protected StringForwardingMapEntry. standardToString()A sensible definition ofForwardingObject.toString()in terms ofForwardingMapEntry.getKey()andForwardingMapEntry.getValue().static <K extends Comparable<? super K>,V extends @Nullable Object>
NavigableMap<K,V>Maps. subMap(NavigableMap<K,V> map, Range<K> range)Returns a view of the portion ofmapwhose keys are contained byrange.static <K extends Comparable<? super K>>
NavigableSet<K>Sets. subSet(NavigableSet<K> set, Range<K> range)Returns a view of the portion ofsetwhose elements are contained byrange.static <E extends @Nullable Object>
Multiset<E>Multisets. sum(Multiset<? extends E> multiset1, Multiset<? extends E> multiset2)Returns an unmodifiable view of the sum of two multisets.static <R extends @Nullable Object,C extends @Nullable Object,V1 extends @Nullable Object,V2 extends @Nullable Object>
Table<R,C,V2>Tables. transformValues(Table<R,C,V1> fromTable, Function<? super V1,V2> function)Returns a view of a table where each value is transformed by a function.static <E extends @Nullable Object>
Multiset<E>Multisets. union(Multiset<? extends E> multiset1, Multiset<? extends E> multiset2)Returns an unmodifiable view of the union of two multisets.static <R extends @Nullable Object,C extends @Nullable Object,V extends @Nullable Object>
RowSortedTable<R,C,V>Tables. unmodifiableRowSortedTable(RowSortedTable<R,? extends C,? extends V> table)Returns an unmodifiable view of the specified row-sorted table.static <E extends @Nullable Object>
SortedMultiset<E>Multisets. unmodifiableSortedMultiset(SortedMultiset<E> sortedMultiset)Returns an unmodifiable view of the specified sorted multiset. -
Uses of Beta in com.google.common.escape
Classes in com.google.common.escape with annotations of type Beta Modifier and Type Class Description classArrayBasedCharEscaperACharEscaperthat uses an array to quickly look up replacement characters for a givencharvalue.classArrayBasedEscaperMapAn implementation-specific parameter class suitable for initializingArrayBasedCharEscaperorArrayBasedUnicodeEscaperinstances.classArrayBasedUnicodeEscaperAUnicodeEscaperthat uses an array to quickly look up replacement characters for a given code point.classCharEscaperAn object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).classCharEscaperBuilderSimple helper class to build a "sparse" array of objects based on the indexes that were added to it.classEscapersStatic utility methods pertaining toEscaperinstances.static classEscapers.BuilderA builder for simple, fast escapers.classUnicodeEscaperAnEscaperthat converts literal text into a format safe for inclusion in a particular context (such as an XML document). -
Uses of Beta in com.google.common.graph
Classes in com.google.common.graph with annotations of type Beta Modifier and Type Class Description classAbstractGraph<N>This class provides a skeletal implementation ofGraph.classAbstractNetwork<N,E>This class provides a skeletal implementation ofNetwork.classAbstractValueGraph<N,V>This class provides a skeletal implementation ofValueGraph.classElementOrder<T>Used to represent the order of elements in a data structure that supports different options for iteration order guarantees.classEndpointPair<N>An immutable pair representing the two endpoints of an edge in a graph.interfaceGraph<N>An interface for graph-structured data, whose edges are anonymous entities with no identity or information of their own.classGraphBuilder<N>A builder for constructing instances ofMutableGraphorImmutableGraphwith user-defined properties.classGraphsclassImmutableGraph<N>AGraphwhose elements and structural relationships will never change.classImmutableNetwork<N,E>ANetworkwhose elements and structural relationships will never change.classImmutableValueGraph<N,V>AValueGraphwhose elements and structural relationships will never change.interfaceMutableGraph<N>A subinterface ofGraphwhich adds mutation methods.interfaceMutableNetwork<N,E>A subinterface ofNetworkwhich adds mutation methods.interfaceMutableValueGraph<N,V>A subinterface ofValueGraphwhich adds mutation methods.interfaceNetwork<N,E>An interface for graph-structured data, whose edges are unique objects.classNetworkBuilder<N,E>A builder for constructing instances ofMutableNetworkorImmutableNetworkwith user-defined properties.interfacePredecessorsFunction<N>A functional interface for graph-structured data.interfaceSuccessorsFunction<N>A functional interface for graph-structured data.classTraverser<N>An object that can traverse the nodes that are reachable from a specified (set of) start node(s) using a specifiedSuccessorsFunction.interfaceValueGraph<N,V>An interface for graph-structured data, whose edges have associated non-unique values.classValueGraphBuilder<N,V>A builder for constructing instances ofMutableValueGraphorImmutableValueGraphwith user-defined properties. -
Uses of Beta in com.google.common.hash
Classes in com.google.common.hash with annotations of type Beta Modifier and Type Class Description classBloomFilter<T extends @Nullable Object>A Bloom filter for instances ofT.interfaceFunnel<T extends @Nullable Object>An object which can send data from an object of typeTinto aPrimitiveSink.classFunnelsFunnels for common types.interfaceHasherAPrimitiveSinkthat can compute a hash code after reading the input.classHashingStatic methods to obtainHashFunctioninstances, and other static hashing-related utilities.classHashingInputStreamAnInputStreamthat maintains a hash of the data read from it.classHashingOutputStreamAnOutputStreamthat maintains a hash of the data written to it.interfacePrimitiveSinkAn object which can receive a stream of primitive values. -
Uses of Beta in com.google.common.io
Classes in com.google.common.io with annotations of type Beta Modifier and Type Interface Description interfaceByteProcessor<T extends @Nullable Object>A callback interface to process bytes from a stream.classCloseablesUtility methods for working withCloseableobjects.classCloserclassCountingInputStreamAnInputStreamthat counts the number of bytes read.classFileBackedOutputStreamAnOutputStreamthat starts buffering to a byte array, but switches to file buffering once the data reaches a configurable size.classFlushablesUtility methods for working withFlushableobjects.interfaceLineProcessor<T extends @Nullable Object>A callback to be used with the streamingreadLinesmethods.classLineReaderA class for reading lines of text.classLittleEndianDataInputStreamAn implementation ofDataInputthat uses little-endian byte ordering for readingshort,int,float,double, andlongvalues.classLittleEndianDataOutputStreamAn implementation ofDataOutputthat uses little-endian byte ordering for writingchar,short,int,float,double, andlongvalues.classPatternFilenameFilterFile name filter that only accepts files matching a regular expression.classResourcesProvides utility methods for working with resources in the classpath.Methods in com.google.common.io with annotations of type Beta Modifier and Type Method Description static voidFiles. append(CharSequence from, File to, Charset charset)Deprecated.PreferasCharSink(to, charset, FileWriteMode.APPEND).write(from).ByteSourceCharSource. asByteSource(Charset charset)Returns aByteSourceview of this char source that encodes chars read from this source as bytes using the givenCharset.static WriterCharStreams. asWriter(Appendable target)Returns a Writer that sends all output to the givenAppendabletarget.static voidFiles. copy(File from, File to)Copies all the bytes from one file to another.static voidFiles. copy(File from, OutputStream to)Copies all bytes from a file to an output stream.static voidFiles. copy(File from, Charset charset, Appendable to)Deprecated.PreferasCharSource(from, charset).copyTo(to).static voidFiles. createParentDirs(File file)Creates any necessary but nonexistent parent directories of the specified file.static FileFiles. createTempDir()Deprecated.For Android users, see the Data and File Storage overview to select an appropriate temporary directory (perhapscontext.getCacheDir()).static booleanFiles. equal(File file1, File file2)Returns true if the given files exist, are not directories, and contain the same bytes.static longByteStreams. exhaust(InputStream in)Reads and discards data from the givenInputStreamuntil the end of the stream is reached.static longCharStreams. exhaust(Readable readable)Reads and discards data from the givenReadableuntil the end of the stream is reached.static Traverser<File>Files. fileTraverser()Returns aTraverserinstance for the file and directory tree.static StringFiles. getFileExtension(String fullName)Returns the file extension for the given file name, or the empty string if the file has no extension.static StringFiles. getNameWithoutExtension(String file)Returns the file name without its file extension or path.static HashCodeFiles. hash(File file, HashFunction hashFunction)Deprecated.PreferasByteSource(file).hash(hashFunction).static Predicate<File>Files. isDirectory()Returns a predicate that returns the result ofFile.isDirectory()on input files.static Predicate<File>Files. isFile()Returns a predicate that returns the result ofFile.isFile()on input files.longCharSource. length()Returns the length of this source in chars, even if doing so requires opening and traversing an entire stream.Optional<Long>CharSource. lengthIfKnown()Returns the size of this source in chars, if the size can be easily determined without actually opening the data stream.static InputStreamByteStreams. limit(InputStream in, long limit)Wraps aInputStream, limiting the number of bytes which can be read.static MappedByteBufferFiles. map(File file)Fully maps a file read-only in to memory as perFileChannel.map(java.nio.channels.FileChannel.MapMode, long, long).static MappedByteBufferFiles. map(File file, FileChannel.MapMode mode)Fully maps a file in to memory as perFileChannel.map(java.nio.channels.FileChannel.MapMode, long, long)using the requestedFileChannel.MapMode.static MappedByteBufferFiles. map(File file, FileChannel.MapMode mode, long size)Maps a file in to memory as perFileChannel.map(java.nio.channels.FileChannel.MapMode, long, long)using the requestedFileChannel.MapMode.static voidFiles. move(File from, File to)Moves a file from one path to another.static ByteArrayDataInputByteStreams. newDataInput(byte[] bytes)Returns a newByteArrayDataInputinstance to read from thebytesarray from the beginning.static ByteArrayDataInputByteStreams. newDataInput(byte[] bytes, int start)Returns a newByteArrayDataInputinstance to read from thebytesarray, starting at the given position.static ByteArrayDataInputByteStreams. newDataInput(ByteArrayInputStream byteArrayInputStream)Returns a newByteArrayDataInputinstance to read from the givenByteArrayInputStream.static ByteArrayDataOutputByteStreams. newDataOutput()Returns a newByteArrayDataOutputinstance with a default size.static ByteArrayDataOutputByteStreams. newDataOutput(int size)Returns a newByteArrayDataOutputinstance sized to holdsizebytes before resizing.static ByteArrayDataOutputByteStreams. newDataOutput(ByteArrayOutputStream byteArrayOutputStream)Returns a newByteArrayDataOutputinstance which writes to the givenByteArrayOutputStream.static BufferedReaderFiles. newReader(File file, Charset charset)Returns a buffered reader that reads from a file using the given character set.static BufferedWriterFiles. newWriter(File file, Charset charset)Returns a buffered writer that writes to a file using the given character set.static OutputStreamByteStreams. nullOutputStream()Returns anOutputStreamthat simply discards written bytes.static WriterCharStreams. nullWriter()Returns aWriterthat simply discards written chars.<T extends @Nullable Object>
TByteSource. read(ByteProcessor<T> processor)Reads the contents of this byte source using the givenprocessorto process bytes as they are read.static intByteStreams. read(InputStream in, byte[] b, int off, int len)Reads some bytes from an input stream and stores them into the buffer arrayb.static <T extends @Nullable Object>
TByteStreams. readBytes(InputStream input, ByteProcessor<T> processor)Process the bytes of the given input stream using the given processor.static <T extends @Nullable Object>
TFiles. readBytes(File file, ByteProcessor<T> processor)Deprecated.PreferasByteSource(file).read(processor).static StringFiles. readFirstLine(File file, Charset charset)Deprecated.PreferasCharSource(file, charset).readFirstLine().static voidByteStreams. readFully(InputStream in, byte[] b)Attempts to read enough bytes from the stream to fill the given byte array, with the same behavior asDataInput.readFully(byte[]).static voidByteStreams. readFully(InputStream in, byte[] b, int off, int len)Attempts to readlenbytes from the stream into the given array starting atoff, with the same behavior asDataInput.readFully(byte[], int, int).<T extends @Nullable Object>
TCharSource. readLines(LineProcessor<T> processor)Reads lines of text from this source, processing each line as it is read using the givenprocessor.static List<String>CharStreams. readLines(Readable r)Reads all of the lines from aReadableobject.static <T extends @Nullable Object>
TCharStreams. readLines(Readable readable, LineProcessor<T> processor)Streams lines from aReadableobject, stopping when the processor returnsfalseor all lines have been read and returning the result produced by the processor.static List<String>Files. readLines(File file, Charset charset)Reads all of the lines from a file.static <T extends @Nullable Object>
TFiles. readLines(File file, Charset charset, LineProcessor<T> callback)Deprecated.PreferasCharSource(file, charset).readLines(callback).static StringFiles. simplifyPath(String pathname)Returns the lexically cleaned form of the path name, usually (but not always) equivalent to the original.Optional<Long>ByteSource. sizeIfKnown()Returns the size of this source in bytes, if the size can be easily determined without actually opening the data stream.static voidByteStreams. skipFully(InputStream in, long n)Discardsnbytes of data from the input stream.static voidCharStreams. skipFully(Reader reader, long n)Discardsncharacters of data from the reader.static byte[]Files. toByteArray(File file)Reads all bytes from a file into a byte array.static StringFiles. toString(File file, Charset charset)Deprecated.PreferasCharSource(file, charset).read().static voidFiles. touch(File file)Creates an empty file or updates the last updated timestamp on the same as the unix command of the same name.static voidFiles. write(byte[] from, File to)Overwrites a file with the contents of a byte array.static voidFiles. write(CharSequence from, File to, Charset charset)Deprecated.PreferasCharSink(to, charset).write(from). -
Uses of Beta in com.google.common.math
Classes in com.google.common.math with annotations of type Beta Modifier and Type Class Description classLinearTransformationThe representation of a linear transformation between real numbersxandy.classPairedStatsAn immutable value object capturing some basic statistics about a collection of paired double values (e.g.classPairedStatsAccumulatorA mutable object which accumulates paired double values (e.g.classQuantilesProvides a fluent API for calculating quantiles.classStatsA bundle of statistical summary values -- sum, count, mean/average, min and max, and several forms of variance -- that were computed from a single set of zero or more floating-point values.classStatsAccumulatorA mutable object which accumulates double values and tracks some basic statistics over all the values added so far.Methods in com.google.common.math with annotations of type Beta Modifier and Type Method Description static BigIntegerBigIntegerMath. ceilingPowerOfTwo(BigInteger x)Returns the smallest power of two greater than or equal tox.static intIntMath. ceilingPowerOfTwo(int x)Returns the smallest power of two greater than or equal tox.static longLongMath. ceilingPowerOfTwo(long x)Returns the smallest power of two greater than or equal tox.static BigIntegerBigIntegerMath. floorPowerOfTwo(BigInteger x)Returns the largest power of two less than or equal tox.static intIntMath. floorPowerOfTwo(int x)Returns the largest power of two less than or equal tox.static longLongMath. floorPowerOfTwo(long x)Returns the largest power of two less than or equal tox.static booleanIntMath. isPrime(int n)Returnstrueifnis a prime number: an integer greater than one that cannot be factored into a product of smaller positive integers.static booleanLongMath. isPrime(long n)Returnstrueifnis a prime number: an integer greater than one that cannot be factored into a product of smaller positive integers.static intIntMath. saturatedAdd(int a, int b)Returns the sum ofaandbunless it would overflow or underflow in which caseInteger.MAX_VALUEorInteger.MIN_VALUEis returned, respectively.static longLongMath. saturatedAdd(long a, long b)Returns the sum ofaandbunless it would overflow or underflow in which caseLong.MAX_VALUEorLong.MIN_VALUEis returned, respectively.static intIntMath. saturatedMultiply(int a, int b)Returns the product ofaandbunless it would overflow or underflow in which caseInteger.MAX_VALUEorInteger.MIN_VALUEis returned, respectively.static longLongMath. saturatedMultiply(long a, long b)Returns the product ofaandbunless it would overflow or underflow in which caseLong.MAX_VALUEorLong.MIN_VALUEis returned, respectively.static intIntMath. saturatedPow(int b, int k)Returns thebto thekth power, unless it would overflow or underflow in which caseInteger.MAX_VALUEorInteger.MIN_VALUEis returned, respectively.static longLongMath. saturatedPow(long b, int k)Returns thebto thekth power, unless it would overflow or underflow in which caseLong.MAX_VALUEorLong.MIN_VALUEis returned, respectively.static intIntMath. saturatedSubtract(int a, int b)Returns the difference ofaandbunless it would overflow or underflow in which caseInteger.MAX_VALUEorInteger.MIN_VALUEis returned, respectively.static longLongMath. saturatedSubtract(long a, long b)Returns the difference ofaandbunless it would overflow or underflow in which caseLong.MAX_VALUEorLong.MIN_VALUEis returned, respectively. -
Uses of Beta in com.google.common.net
Classes in com.google.common.net with annotations of type Beta Modifier and Type Class Description classHostAndPortAn immutable representation of a host and port.classHostSpecifierA syntactically valid host specifier, suitable for use in a URI.classInetAddressesStatic utility methods pertaining toInetAddressinstances.static classInetAddresses.TeredoInfoA simple immutable data class to encapsulate the information to be found in a Teredo address.classInternetDomainNameAn immutable well-formed internet domain name, such ascomorfoo.co.uk.classMediaTypeRepresents an Internet Media Type (also known as a MIME Type or Content Type).classPercentEscaperAUnicodeEscaperthat escapes some set of Java characters using a UTF-8 based percent encoding scheme.Fields in com.google.common.net with annotations of type Beta Modifier and Type Field Description static StringHttpHeaders. FOLLOW_ONLY_WHEN_PRERENDER_SHOWNThe HTTPFollow-Only-When-Prerender-Shownheader field name.static StringHttpHeaders. PUBLIC_KEY_PINSThe HTTPPublic-Key-Pinsheader field name.static StringHttpHeaders. PUBLIC_KEY_PINS_REPORT_ONLYThe HTTPPublic-Key-Pins-Report-Onlyheader field name.static StringHttpHeaders. SOURCE_MAPThe HTTPSourceMapheader field name.static StringHttpHeaders. X_DOWNLOAD_OPTIONSThe HTTPX-Download-Optionsheader field name. -
Uses of Beta in com.google.common.primitives
Classes in com.google.common.primitives with annotations of type Beta Modifier and Type Class Description classImmutableDoubleArrayAn immutable array ofdoublevalues, with an API resemblingList.classImmutableIntArrayAn immutable array ofintvalues, with an API resemblingList.classImmutableLongArrayAn immutable array oflongvalues, with an API resemblingList.classUnsignedIntsStatic utility methods pertaining tointprimitives that interpret values as unsigned (that is, any negative valuexis treated as the positive value2^32 + x).classUnsignedLongsStatic utility methods pertaining tolongprimitives that interpret values as unsigned (that is, any negative valuexis treated as the positive value2^64 + x).Methods in com.google.common.primitives with annotations of type Beta Modifier and Type Method Description static charChars. constrainToRange(char value, char min, char max)Returns the value nearest tovaluewhich is within the closed range[min..max].static doubleDoubles. constrainToRange(double value, double min, double max)Returns the value nearest tovaluewhich is within the closed range[min..max].static floatFloats. constrainToRange(float value, float min, float max)Returns the value nearest tovaluewhich is within the closed range[min..max].static intInts. constrainToRange(int value, int min, int max)Returns the value nearest tovaluewhich is within the closed range[min..max].static longLongs. constrainToRange(long value, long min, long max)Returns the value nearest tovaluewhich is within the closed range[min..max].static shortShorts. constrainToRange(short value, short min, short max)Returns the value nearest tovaluewhich is within the closed range[min..max].static intBooleans. countTrue(boolean... values)Returns the number ofvaluesthat aretrue.static Comparator<Boolean>Booleans. falseFirst()Returns aComparator<Boolean>that sortsfalsebeforetrue.static byteUnsignedBytes. parseUnsignedByte(String string)Returns the unsignedbytevalue represented by the given decimal string.static byteUnsignedBytes. parseUnsignedByte(String string, int radix)Returns the unsignedbytevalue represented by a string with the given radix.static Converter<String,Double>Doubles. stringConverter()Returns a serializable converter object that converts between strings and doubles usingDouble.valueOf(java.lang.String)andDouble.toString().static Converter<String,Float>Floats. stringConverter()Returns a serializable converter object that converts between strings and floats usingFloat.valueOf(java.lang.String)andFloat.toString().static Converter<String,Integer>Ints. stringConverter()Returns a serializable converter object that converts between strings and integers usingInteger.decode(java.lang.String)andInteger.toString().static Converter<String,Long>Longs. stringConverter()Returns a serializable converter object that converts between strings and longs usingLong.decode(java.lang.String)andLong.toString().static Converter<String,Short>Shorts. stringConverter()Returns a serializable converter object that converts between strings and shorts usingShort.decode(java.lang.String)andShort.toString().static StringUnsignedBytes. toString(byte x)Returns a string representation of x, where x is treated as unsigned.static StringUnsignedBytes. toString(byte x, int radix)Returns a string representation ofxfor the given radix, wherexis treated as unsigned.static Comparator<Boolean>Booleans. trueFirst()Returns aComparator<Boolean>that sortstruebeforefalse.static DoubleDoubles. tryParse(String string)Parses the specified string as a double-precision floating point value.static FloatFloats. tryParse(String string)Parses the specified string as a single-precision floating point value.static IntegerInts. tryParse(String string)Parses the specified string as a signed decimal integer value.static IntegerInts. tryParse(String string, int radix)Parses the specified string as a signed integer value using the specified radix.static LongLongs. tryParse(String string)Parses the specified string as a signed decimal long value.static LongLongs. tryParse(String string, int radix)Parses the specified string as a signed long value using the specified radix. -
Uses of Beta in com.google.common.reflect
Classes in com.google.common.reflect with annotations of type Beta Modifier and Type Class Description classAbstractInvocationHandlerAbstract implementation ofInvocationHandlerthat handlesObject.equals(java.lang.Object),Object.hashCode()andObject.toString().classClassPathScans the source of aClassLoaderand finds all loadable classes and resources.static classClassPath.ClassInfoRepresents a class that can be loaded throughClassPath.ClassInfo.load().static classClassPath.ResourceInfoRepresents a class path resource that can be either a class file or any other resource file loadable from the class path.classImmutableTypeToInstanceMap<B>A type-to-instance map backed by anImmutableMap.static classImmutableTypeToInstanceMap.Builder<B>A builder for creating immutable type-to-instance maps.classInvokable<T,R>Wrapper around either aMethodor aConstructor.classMutableTypeToInstanceMap<B>A mutable type-to-instance map.classParameterRepresents a method or constructor parameter.classReflectionStatic utilities relating to Java reflection.classTypeParameter<T>Captures a free type variable that can be used inTypeToken.where(com.google.common.reflect.TypeParameter<X>, com.google.common.reflect.TypeToken<X>).classTypeResolverAn object of this class encapsulates type mappings from type variables.interfaceTypeToInstanceMap<B>A map, each entry of which maps aTypeTokento an instance of that type.classTypeToken<T>ATypewith generics. -
Uses of Beta in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent with annotations of type Beta Modifier and Type Class Description classAbstractListeningExecutorServiceAbstractListeningExecutorServiceimplementation that createsListenableFutureinstances for eachRunnableandCallablesubmitted to it.interfaceAsyncCallable<V extends @Nullable Object>Computes a value, possibly asynchronously.classClosingFuture<V extends @Nullable Object>A step in a pipeline of an asynchronous computation.classCycleDetectingLockFactoryTheCycleDetectingLockFactorycreatesReentrantLockinstances andReentrantReadWriteLockinstances that detect potential deadlock by checking for cycles in lock acquisition order.static classCycleDetectingLockFactory.PoliciesPre-definedCycleDetectingLockFactory.Policyimplementations.static interfaceCycleDetectingLockFactory.PolicyEncapsulates the action to be taken when a potential deadlock is encountered.static classCycleDetectingLockFactory.PotentialDeadlockExceptionRepresents a detected cycle in lock acquisition ordering.static classCycleDetectingLockFactory.WithExplicitOrdering<E extends Enum<E>>ACycleDetectingLockFactory.WithExplicitOrderingprovides the additional enforcement of an application-specified ordering of lock acquisitions.classExecutionSequencerSerializes execution of tasks, somewhat like an "asynchronoussynchronizedblock." Each enqueued callable will not be submitted to its associated executor until the previous callable has returned -- and, if the previous callable was anAsyncCallable, not until theFutureit returned is done (successful, failed, or cancelled).classFakeTimeLimiterA TimeLimiter implementation which actually does not attempt to limit time at all.classFluentFuture<V extends @Nullable Object>AListenableFuturethat supports fluent chains of operations.static classFutures.FutureCombiner<V extends @Nullable Object>A helper to create a newListenableFuturewhose result is generated from a combination of input futures.classJdkFutureAdaptersUtilities necessary for working with libraries that supply plainFutureinstances.interfaceListenableScheduledFuture<V extends @Nullable Object>Helper interface to implement bothListenableFutureandScheduledFuture.classMonitorA synchronization abstraction supporting waiting on arbitrary boolean conditions.static classMonitor.GuardA boolean condition for which a thread may wait.classRateLimiterA rate limiter.classRunnablesStatic utility methods pertaining to theRunnableinterface.classSimpleTimeLimiterA TimeLimiter that runs method calls in the background using anExecutorService.classStriped<L>A stripedLock/Semaphore/ReadWriteLock.interfaceTimeLimiterImposes a time limit on method calls.Methods in com.google.common.util.concurrent with annotations of type Beta Modifier and Type Method Description static voidMoreExecutors. addDelayedShutdownHook(ExecutorService service, long terminationTimeout, TimeUnit timeUnit)Add a shutdown hook to wait for thread completion in the givenservice.protected voidAbstractFuture. afterDone()Callback method that is called exactly once after the future is completed.static <V extends @Nullable Object>
ListenableFuture<List<V>>Futures. allAsList(ListenableFuture<? extends V>... futures)Creates a newListenableFuturewhose value is a list containing the values of all its input futures, if all succeed.static <V extends @Nullable Object>
ListenableFuture<List<V>>Futures. allAsList(Iterable<? extends ListenableFuture<? extends V>> futures)Creates a newListenableFuturewhose value is a list containing the values of all its input futures, if all succeed.static <T extends @Nullable Object>
AsyncCallable<T>Callables. asAsyncCallable(Callable<T> callable, ListeningExecutorService listeningExecutorService)Creates anAsyncCallablefrom aCallable.static voidUninterruptibles. awaitTerminationUninterruptibly(ExecutorService executor)Invokesexecutor.awaitTermination(long, TimeUnit)uninterruptibly with no timeout.static booleanUninterruptibles. awaitTerminationUninterruptibly(ExecutorService executor, long timeout, TimeUnit unit)Invokesexecutor.awaitTermination(long, TimeUnit)uninterruptibly.static <V extends @Nullable Object,X extends Throwable>
ListenableFuture<V>Futures. catching(ListenableFuture<? extends V> input, Class<X> exceptionType, Function<? super X,? extends V> fallback, Executor executor)Returns aFuturewhose result is taken from the given primaryinputor, if the primary input fails with the givenexceptionType, from the result provided by thefallback.static <V extends @Nullable Object,X extends Throwable>
ListenableFuture<V>Futures. catchingAsync(ListenableFuture<? extends V> input, Class<X> exceptionType, AsyncFunction<? super X,? extends V> fallback, Executor executor)Returns aFuturewhose result is taken from the given primaryinputor, if the primary input fails with the givenexceptionType, from the result provided by thefallback.protected voidAbstractService. doCancelStart()This method is called byAbstractService.stopAsync()when the service is still starting (i.e.static <V extends @Nullable Object,X extends Exception>
VFutures. getChecked(Future<V> future, Class<X> exceptionClass)Returns the result ofFuture.get(), converting most exceptions to a new instance of the given checked exception type.static <V extends @Nullable Object,X extends Exception>
VFutures. getChecked(Future<V> future, Class<X> exceptionClass, long timeout, TimeUnit unit)Returns the result ofFuture.get(long, TimeUnit), converting most exceptions to a new instance of the given checked exception type.static ExecutorServiceMoreExecutors. getExitingExecutorService(ThreadPoolExecutor executor)Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.static ExecutorServiceMoreExecutors. getExitingExecutorService(ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit)Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.static ScheduledExecutorServiceMoreExecutors. getExitingScheduledExecutorService(ScheduledThreadPoolExecutor executor)Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.static ScheduledExecutorServiceMoreExecutors. getExitingScheduledExecutorService(ScheduledThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit)Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.static <T extends @Nullable Object>
ImmutableList<ListenableFuture<T>>Futures. inCompletionOrder(Iterable<? extends ListenableFuture<? extends T>> futures)Returns a list of delegate futures that correspond to the futures received in the order that they complete.static <I extends @Nullable Object,O extends @Nullable Object>
Future<O>Futures. lazyTransform(Future<I> input, Function<? super I,? extends O> function)LikeFutures.transform(ListenableFuture, Function, Executor)except that the transformationfunctionis invoked on each call toget()on the returned future.static ExecutorMoreExecutors. newSequentialExecutor(Executor delegate)Returns anExecutorthat runs each task executed sequentially, such that no two tasks are running concurrently.static <V extends @Nullable Object>
ListenableFuture<V>Futures. nonCancellationPropagating(ListenableFuture<V> future)Returns aListenableFuturewhose result is set from the supplied future when it completes.static ThreadFactoryMoreExecutors. platformThreadFactory()Returns a default thread factory used to create new threads.booleanAtomicLongMap. removeIfZero(K key)Atomically removekeyfrom the map iff its associated value is 0.static <O extends @Nullable Object>
ListenableFuture<O>Futures. scheduleAsync(AsyncCallable<O> callable, long delay, TimeUnit timeUnit, ScheduledExecutorService executorService)Schedulescallableon the specifiedexecutor, returning aFuture.static booleanMoreExecutors. shutdownAndAwaitTermination(ExecutorService service, long timeout, TimeUnit unit)Shuts down the given executor service gradually, first disabling new submissions and later, if necessary, cancelling remaining tasks.static ListenableFuture<@Nullable Void>Futures. submit(Runnable runnable, Executor executor)Executesrunnableon the specifiedexecutor, returning aFuturethat will complete after execution.static <O extends @Nullable Object>
ListenableFuture<O>Futures. submit(Callable<O> callable, Executor executor)Executescallableon the specifiedexecutor, returning aFuture.static <O extends @Nullable Object>
ListenableFuture<O>Futures. submitAsync(AsyncCallable<O> callable, Executor executor)Executescallableon the specifiedexecutor, returning aFuture.static <V extends @Nullable Object>
ListenableFuture<List<@Nullable V>>Futures. successfulAsList(ListenableFuture<? extends V>... futures)Creates a newListenableFuturewhose value is a list containing the values of all its successful input futures.static <V extends @Nullable Object>
ListenableFuture<List<@Nullable V>>Futures. successfulAsList(Iterable<? extends ListenableFuture<? extends V>> futures)Creates a newListenableFuturewhose value is a list containing the values of all its successful input futures.static <I extends @Nullable Object,O extends @Nullable Object>
ListenableFuture<O>Futures. transform(ListenableFuture<I> input, Function<? super I,? extends O> function, Executor executor)Returns a newFuturewhose result is derived from the result of the givenFuture.static <I extends @Nullable Object,O extends @Nullable Object>
ListenableFuture<O>Futures. transformAsync(ListenableFuture<I> input, AsyncFunction<? super I,? extends O> function, Executor executor)Returns a newFuturewhose result is asynchronously derived from the result of the givenFuture.protected voidAbstractExecutionThreadService. triggerShutdown()Invoked to request the service to stop.static <V extends @Nullable Object>
Futures.FutureCombiner<V>Futures. whenAllComplete(ListenableFuture<? extends V>... futures)Creates aFutures.FutureCombinerthat processes the completed futures whether or not they're successful.static <V extends @Nullable Object>
Futures.FutureCombiner<V>Futures. whenAllComplete(Iterable<? extends ListenableFuture<? extends V>> futures)Creates aFutures.FutureCombinerthat processes the completed futures whether or not they're successful.static <V extends @Nullable Object>
Futures.FutureCombiner<V>Futures. whenAllSucceed(ListenableFuture<? extends V>... futures)Creates aFutures.FutureCombinerrequiring that all passed in futures are successful.static <V extends @Nullable Object>
Futures.FutureCombiner<V>Futures. whenAllSucceed(Iterable<? extends ListenableFuture<? extends V>> futures)Creates aFutures.FutureCombinerrequiring that all passed in futures are successful.static <V extends @Nullable Object>
ListenableFuture<V>Futures. withTimeout(ListenableFuture<V> delegate, long time, TimeUnit unit, ScheduledExecutorService scheduledExecutor)Returns a future that delegates to another but will finish early (via aTimeoutExceptionwrapped in anExecutionException) if the specified duration expires. -
Uses of Beta in com.google.common.xml
Classes in com.google.common.xml with annotations of type Beta Modifier and Type Class Description classXmlEscapersEscaperinstances suitable for strings to be included in XML attribute values and elements' text contents.
-