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.eventbus The EventBus allows publish-subscribe-style communication between components without requiring the components to explicitly register with one another (and thus be aware of each other).com.google.common.hash Hash functions and related structures.com.google.common.html Escapers for HTML.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.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 classCharMatcherclassConverter<A,B>A function fromAtoBwith an associated reverse function fromBtoA; used for converting back and forth between different representations of the same information.classEnumsUtility methods for working withEnuminstances.static classSplitter.MapSplitterAn object that splits strings into maps asSplittersplits iterables and lists.classStandardSystemPropertyRepresents a standard system property.classTickerA time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.classUtf8Low-level, high-performance utility methods related to the UTF-8 character encoding.classVerifyStatic convenience methods that serve the same purpose as Java language assertions, except that they are always enabled.classVerifyExceptionException thrown upon the failure of a verification check, including those performed by the convenience methods of theVerifyclass.Methods in com.google.common.base with annotations of type Beta Modifier and Type Method Description <A extends java.lang.Appendable>
AJoiner.MapJoiner. appendTo(A appendable, java.lang.Iterable<? extends java.util.Map.Entry<?,?>> entries)Appends the string representation of each entry inentries, using the previously configured separator and key-value separator, toappendable.<A extends java.lang.Appendable>
AJoiner.MapJoiner. appendTo(A appendable, java.util.Iterator<? extends java.util.Map.Entry<?,?>> parts)Appends the string representation of each entry inentries, using the previously configured separator and key-value separator, toappendable.java.lang.StringBuilderJoiner.MapJoiner. appendTo(java.lang.StringBuilder builder, java.lang.Iterable<? extends java.util.Map.Entry<?,?>> entries)Appends the string representation of each entry inentries, using the previously configured separator and key-value separator, tobuilder.java.lang.StringBuilderJoiner.MapJoiner. appendTo(java.lang.StringBuilder builder, java.util.Iterator<? extends java.util.Map.Entry<?,?>> entries)Appends the string representation of each entry inentries, using the previously configured separator and key-value separator, tobuilder.static Predicate<java.lang.Class<?>>Predicates. assignableFrom(java.lang.Class<?> clazz)Returns a predicate that evaluates totrueif the class being tested is assignable from the given class.Converter<java.lang.String,java.lang.String>CaseFormat. converterTo(CaseFormat targetFormat)Returns aConverterthat converts strings from this format totargetFormat.static booleanAscii. equalsIgnoreCase(java.lang.CharSequence s1, java.lang.CharSequence s2)Indicates whether the contents of the given character sequencess1ands2are equal, ignoring the case of any ASCII alphabetic characters between'a'and'z'or'A'and'Z'inclusive.Predicate<T>Equivalence. equivalentTo(T target)Returns a predicate that evaluates to true if and only if the input is equivalent totargetaccording to this equivalence relation.static <T> Function<java.lang.Object,T>Functions. forSupplier(Supplier<T> supplier)Returns a function that always returns the result of invokingSupplier.get()onsupplier, regardless of its input.static java.util.List<java.lang.Throwable>Throwables. getCausalChain(java.lang.Throwable throwable)Gets aThrowablecause chain as a list.java.lang.StringJoiner.MapJoiner. join(java.lang.Iterable<? extends java.util.Map.Entry<?,?>> entries)Returns a string containing the string representation of each entry inentries, using the previously configured separator and key-value separator.java.lang.StringJoiner.MapJoiner. join(java.util.Iterator<? extends java.util.Map.Entry<?,?>> entries)Returns a string containing the string representation of each entry inentries, using the previously configured separator and key-value separator.static java.util.List<java.lang.StackTraceElement>Throwables. lazyStackTrace(java.lang.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> java.lang.Iterable<T>Optional. presentInstances(java.lang.Iterable<? extends Optional<? extends T>> optionals)Returns the value of each present instance from the suppliedoptionals, in order, skipping over occurrences ofOptional.absent().java.util.List<java.lang.String>Splitter. splitToList(java.lang.CharSequence sequence)Splitssequenceinto string components and returns them as an immutable list.static <T> Function<Supplier<T>,T>Suppliers. supplierFunction()Returns a function that accepts a supplier and returns the result of invokingSupplier.get()on that supplier.static java.lang.StringAscii. truncate(java.lang.CharSequence seq, int maxLength, java.lang.String truncationIndicator)Truncates the given character sequence to the given maximum length.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(java.lang.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.classBinaryTreeTraverser<T>A variant ofTreeTraverserfor binary trees, providing additional traversals specific to binary trees.classContiguousSet<C extends java.lang.Comparable>A sorted set of contiguous values in a givenDiscreteDomain.classDiscreteDomain<C extends java.lang.Comparable>A descriptor for a discreteComparabledomain such as allIntegerinstances.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>A sorted multiset which forwards all its method calls to another sorted multiset.classImmutableRangeMap<K extends java.lang.Comparable<?>,V>ARangeMapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableRangeSet<C extends java.lang.Comparable>ARangeSetwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableSortedMultiset<E>ASortedMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.interfaceInterner<E>Provides equivalent behavior toString.intern()for other immutable types.classInternersContains static methods pertaining to instances ofInterner.interfaceMapConstraint<K,V>Deprecated.UsePreconditionsfor basic checks.classMapConstraintsDeprecated.UsePreconditionsfor basic checks.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.classMultimapBuilder<K0,V0>A builder for a multimap implementation that allows customization of the backing map and value collection implementations used in a particular multimap.interfaceRangeMap<K extends java.lang.Comparable,V>A mapping from disjoint nonempty ranges to non-null values.classRangesDeprecated.Use the corresponding method inRange.interfaceRangeSet<C extends java.lang.Comparable>interfaceRowSortedTable<R,C,V>Interface that extendsTableand whose rows are sorted.interfaceSortedMultiset<E>AMultisetwhich maintains the ordering of its elements, according to either their natural order or an explicitComparator.classTreeBasedTable<R,C,V>Implementation ofTablewhose row keys and column keys are ordered by their natural ordering or by supplied comparators.classTreeRangeMap<K extends java.lang.Comparable,V>An implementation ofRangeMapbased on aTreeMap, supporting all optional operations.classTreeRangeSet<C extends java.lang.Comparable<?>>An implementation ofRangeSetbacked by aTreeMap.classTreeTraverser<T>Views elements of a typeTas nodes in a tree, and provides methods to traverse the trees induced by this traverser.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(java.lang.Iterable<? extends E> other)Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable, followed by those ofother.static <A,B>
Converter<A,B>Maps. asConverter(BiMap<A,B> bimap)Returns aConverterthat converts values usingbimap.get(), and whose inverse view converts values usingbimap.inverse().get().static <K,V>
java.util.Map<K,java.util.List<V>>Multimaps. asMap(ListMultimap<K,V> multimap)static <K,V>
java.util.Map<K,java.util.Collection<V>>Multimaps. asMap(Multimap<K,V> multimap)Returnsmultimap.asMap().static <K,V>
java.util.Map<K,java.util.Set<V>>Multimaps. asMap(SetMultimap<K,V> multimap)static <K,V>
java.util.Map<K,java.util.SortedSet<V>>Multimaps. asMap(SortedSetMultimap<K,V> multimap)Returnsmultimap.asMap(), with its type corrected fromMap<K, Collection<V>>toMap<K, SortedSet<V>>.ImmutableSetMultimap<K,V>ImmutableMap. asMultimap()Returns a multimap view of the map.static java.util.List<java.lang.Character>Lists. charactersOf(java.lang.CharSequence sequence)Returns a view of the specifiedCharSequenceas aList<Character>, viewingsequenceas a sequence of Unicode code units.static ImmutableList<java.lang.Character>Lists. charactersOf(java.lang.String string)Returns a view of the specified string as an immutable list ofCharactervalues.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(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Returns an immutable bimap containing the given entries.static <K,V>
ImmutableListMultimap<K,V>ImmutableListMultimap. copyOf(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Returns an immutable multimap containing the specified entries.static <K,V>
ImmutableMap<K,V>ImmutableMap. copyOf(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Returns an immutable map containing the specified entries.static <K,V>
ImmutableMultimap<K,V>ImmutableMultimap. copyOf(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Returns an immutable multimap containing the specified entries.static <K,V>
ImmutableSetMultimap<K,V>ImmutableSetMultimap. copyOf(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Returns an immutable multimap containing the specified entries.static <K,V>
ImmutableSortedMap<K,V>ImmutableSortedMap. copyOf(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Returns an immutable map containing the given entries, with keys sorted by the provided comparator.static <K,V>
ImmutableSortedMap<K,V>ImmutableSortedMap. copyOf(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries, java.util.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(MapMaker mapMaker)Creates a new, emptyConcurrentHashMultisetusingmapMakerto construct the internal backing map.static <K,V>
MapDifference<K,V>Maps. difference(java.util.Map<? extends K,? extends V> left, java.util.Map<? extends K,? extends V> right, Equivalence<? super V> valueEquivalence)Computes the difference between two maps.static <E> Multiset<E>Multisets. difference(Multiset<E> multiset1, Multiset<?> multiset2)Returns an unmodifiable view of the difference of two multisets.static <E> intQueues. drain(java.util.concurrent.BlockingQueue<E> q, java.util.Collection<? super E> buffer, int numElements, long timeout, java.util.concurrent.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(java.util.concurrent.BlockingQueue<E> q, java.util.Collection<? super E> buffer, int numElements, long timeout, java.util.concurrent.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> Multiset<E>Multisets. filter(Multiset<E> unfiltered, Predicate<? super E> predicate)Returns a view of the elements ofunfilteredthat satisfy a predicate.static <K extends java.lang.Enum<K>,V>
ImmutableMap<K,V>Maps. immutableEnumMap(java.util.Map<K,? extends V> map)Returns an immutable map instance containing the given entries.java.lang.StringFluentIterable. join(Joiner joiner)Returns aStringcontaining all of the elements of this fluent iterable joined withjoiner.static <T> java.lang.Iterable<T>Iterables. mergeSorted(java.lang.Iterable<? extends java.lang.Iterable<? extends T>> iterables, java.util.Comparator<? super T> comparator)Returns an iterable over the merged contents of all giveniterables.static <T> UnmodifiableIterator<T>Iterators. mergeSorted(java.lang.Iterable<? extends java.util.Iterator<? extends T>> iterators, java.util.Comparator<? super T> comparator)Returns an iterator over the merged contents of all giveniterators, traversing every element of the input iterators.static <R,C,V>
Table<R,C,V>Tables. newCustomTable(java.util.Map<R,java.util.Map<C,V>> backingMap, Supplier<? extends java.util.Map<C,V>> factory)Creates a table that uses the specified backing map and factory.static <E> FluentIterable<E>FluentIterable. of(E[] elements)Returns a fluent iterable containingelementsin the specified order.static <E extends java.lang.Comparable<? super E>>
java.util.Collection<java.util.List<E>>Collections2. orderedPermutations(java.lang.Iterable<E> elements)Returns aCollectionof all the permutations of the specifiedIterable.static <E> java.util.Collection<java.util.List<E>>Collections2. orderedPermutations(java.lang.Iterable<E> elements, java.util.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(java.util.Comparator<? super V> valueComparator)Configures thisBuilderto order entries by value according to the specified comparator.ImmutableMap.Builder<K,V>ImmutableMap.Builder. orderEntriesByValue(java.util.Comparator<? super V> valueComparator)Configures thisBuilderto order entries by value according to the specified comparator.ImmutableSortedMap.Builder<K,V>ImmutableSortedMap.Builder. orderEntriesByValue(java.util.Comparator<? super V> valueComparator)Deprecated.Unsupported by ImmutableSortedMap.Builder.static <E> java.util.Collection<java.util.List<E>>Collections2. permutations(java.util.Collection<E> elements)Returns aCollectionof all the permutations of the specifiedCollection.ImmutableBiMap.Builder<K,V>ImmutableBiMap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Adds all of the given entries to the built bimap.ImmutableListMultimap.Builder<K,V>ImmutableListMultimap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Adds entries to the built multimap.ImmutableMap.Builder<K,V>ImmutableMap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Adds all of the given entries to the built map.ImmutableMultimap.Builder<K,V>ImmutableMultimap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Adds entries to the built multimap.ImmutableSetMultimap.Builder<K,V>ImmutableSetMultimap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Adds entries to the built multimap.ImmutableSortedMap.Builder<K,V>ImmutableSortedMap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)Adds all the given entries to the built map.protected booleanForwardingMultiset. standardAddAll(java.util.Collection<? extends E> elementsToAdd)A sensible definition ofForwardingCollection.addAll(Collection)in terms ofForwardingCollection.add(Object)andForwardingMultiset.add(Object, int).protected booleanForwardingSortedSet. standardContains(java.lang.Object object)A sensible definition ofForwardingCollection.contains(java.lang.Object)in terms of thefirst()method ofForwardingSortedSet.tailSet(E).protected booleanForwardingMap. standardContainsKey(java.lang.Object key)A sensible, albeit inefficient, definition ofForwardingMap.containsKey(java.lang.Object)in terms of theiteratormethod ofForwardingMap.entrySet().protected booleanForwardingSortedMap. standardContainsKey(java.lang.Object key)A sensible definition ofForwardingMap.containsKey(java.lang.Object)in terms of thefirstKey()method ofForwardingSortedMap.tailMap(K).protected intForwardingMultiset. standardCount(java.lang.Object object)A sensible, albeit inefficient, definition ofForwardingMultiset.count(java.lang.Object)in terms ofForwardingMultiset.entrySet().protected java.util.NavigableSet<K>ForwardingNavigableMap. standardDescendingKeySet()A sensible definition ofForwardingNavigableMap.descendingKeySet()as thenavigableKeySetofForwardingNavigableMap.descendingMap().protected booleanForwardingList. standardEquals(java.lang.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 java.util.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(java.lang.Object key)A sensible, albeit inefficient, definition ofForwardingMap.remove(java.lang.Object)in terms of theiteratormethod ofForwardingMap.entrySet().protected booleanForwardingSortedSet. standardRemove(java.lang.Object object)A sensible definition ofForwardingCollection.remove(java.lang.Object)in terms of theiterator()method ofForwardingSortedSet.tailSet(E).protected java.util.List<E>ForwardingList. standardSubList(int fromIndex, int toIndex)A sensible default implementation ofForwardingList.subList(int, int).protected java.util.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 java.util.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 java.util.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 java.lang.StringForwardingMapEntry. standardToString()A sensible definition ofForwardingObject.toString()in terms ofForwardingMapEntry.getKey()andForwardingMapEntry.getValue().static <E> Multiset<E>Multisets. sum(Multiset<? extends E> multiset1, Multiset<? extends E> multiset2)Returns an unmodifiable view of the sum of two multisets.static <R,C,V1,V2>
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> Multiset<E>Multisets. union(Multiset<? extends E> multiset1, Multiset<? extends E> multiset2)Returns an unmodifiable view of the union of two multisets.static <R,C,V>
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> 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.classEscaperAn object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).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.eventbus
Classes in com.google.common.eventbus with annotations of type Beta Modifier and Type Class Description interfaceAllowConcurrentEventsMarks an event subscriber method as being thread-safe.classAsyncEventBusAnEventBusthat takes the Executor of your choice and uses it to dispatch events, allowing dispatch to occur asynchronously.classDeadEventWraps an event that was posted, but which had no subscribers and thus could not be delivered.classEventBusDispatches events to listeners, and provides ways for listeners to register themselves.interfaceSubscribeMarks a method as an event subscriber. -
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>A Bloom filter for instances ofT.interfaceFunnel<T>An object which can send data from an object of typeTinto aPrimitiveSink.classFunnelsFunnels for common types.classHashCodeAn immutable hash code of arbitrary bit length.interfaceHasherAPrimitiveSinkthat can compute a hash code after reading the input.interfaceHashFunctionA hash function is a collision-averse pure function that maps an arbitrary block of data to a number called a hash code.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.html
Classes in com.google.common.html with annotations of type Beta Modifier and Type Class Description classHtmlEscapersEscaperinstances suitable for strings to be included in HTML attribute values and most elements' text contents. -
Uses of Beta in com.google.common.io
Classes in com.google.common.io with annotations of type Beta Modifier and Type Class Description classBaseEncodingA binary encoding scheme for reversibly translating between byte sequences and printable ASCII strings.interfaceByteProcessor<T>A callback interface to process bytes from a stream.classByteStreamsProvides utility methods for working with byte arrays and I/O streams.classCharStreamsProvides utility methods for working with character streams.classCloseablesUtility methods for working withCloseableobjects.classCloserclassCountingInputStreamAnInputStreamthat counts the number of bytes read.classCountingOutputStreamAn OutputStream that counts the number of bytes written.classFileBackedOutputStreamAnOutputStreamthat starts buffering to a byte array, but switches to file buffering once the data reaches a configurable size.classFilesProvides utility methods for working with files.classFlushablesUtility methods for working withFlushableobjects.interfaceLineProcessor<T>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 longCharSource. length()Returns the length of this source in chars, even if doing so requires opening and traversing an entire stream.Optional<java.lang.Long>CharSource. lengthIfKnown()Returns the size of this source in chars, if the size can be easily determined without actually opening the data stream.<T> TByteSource. read(ByteProcessor<T> processor)Reads the contents of this byte source using the givenprocessorto process bytes as they are read.<T> TCharSource. readLines(LineProcessor<T> processor)Reads lines of text from this source, processing each line as it is read using the givenprocessor.Optional<java.lang.Long>ByteSource. sizeIfKnown()Returns the size of this source in bytes, if the size can be easily determined without actually opening the data stream. -
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.classUrlEscapersEscaperinstances suitable for strings to be included in particular sections of URLs.Fields in com.google.common.net with annotations of type Beta Modifier and Type Field Description static java.lang.StringHttpHeaders. FOLLOW_ONLY_WHEN_PRERENDER_SHOWNThe HTTPFollow-Only-When-Prerender-Shownheader field name.static java.lang.StringHttpHeaders. PUBLIC_KEY_PINSThe HTTPPublic-Key-Pinsheader field name.static java.lang.StringHttpHeaders. PUBLIC_KEY_PINS_REPORT_ONLYThe HTTPPublic-Key-Pins-Report-Onlyheader 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 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 intBooleans. countTrue(boolean... values)Returns the number ofvaluesthat aretrue.static byteUnsignedBytes. parseUnsignedByte(java.lang.String string)Returns the unsignedbytevalue represented by the given decimal string.static byteUnsignedBytes. parseUnsignedByte(java.lang.String string, int radix)Returns the unsignedbytevalue represented by a string with the given radix.static Converter<java.lang.String,java.lang.Double>Doubles. stringConverter()Returns a serializable converter object that converts between strings and doubles usingDouble.valueOf(java.lang.String)andDouble.toString().static Converter<java.lang.String,java.lang.Float>Floats. stringConverter()Returns a serializable converter object that converts between strings and floats usingFloat.valueOf(java.lang.String)andFloat.toString().static Converter<java.lang.String,java.lang.Integer>Ints. stringConverter()Returns a serializable converter object that converts between strings and integers usingInteger.decode(java.lang.String)andInteger.toString().static Converter<java.lang.String,java.lang.Long>Longs. stringConverter()Returns a serializable converter object that converts between strings and longs usingLong.decode(java.lang.String)andLong.toString().static Converter<java.lang.String,java.lang.Short>Shorts. stringConverter()Returns a serializable converter object that converts between strings and shorts usingShort.decode(java.lang.String)andShort.toString().static java.lang.StringUnsignedBytes. toString(byte x)Returns a string representation of x, where x is treated as unsigned.static java.lang.StringUnsignedBytes. toString(byte x, int radix)Returns a string representation ofxfor the given radix, wherexis treated as unsigned.static java.lang.DoubleDoubles. tryParse(java.lang.String string)Parses the specified string as a double-precision floating point value.static java.lang.FloatFloats. tryParse(java.lang.String string)Parses the specified string as a single-precision floating point value.static java.lang.IntegerInts. tryParse(java.lang.String string)Parses the specified string as a signed decimal integer value.static java.lang.IntegerInts. tryParse(java.lang.String string, int radix)Parses the specified string as a signed integer value using the specified radix.static java.lang.LongLongs. tryParse(java.lang.String string)Parses the specified string as a signed decimal long value.static java.lang.LongLongs. tryParse(java.lang.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 classAbstractCheckedFuture<V,X extends java.lang.Exception>A delegating wrapper around aListenableFuturethat adds support for theAbstractCheckedFuture.checkedGet()andAbstractCheckedFuture.checkedGet(long, TimeUnit)methods.classAbstractExecutionThreadServiceBase class for services that can implementAbstractExecutionThreadService.startUp(),AbstractExecutionThreadService.run()andAbstractExecutionThreadService.shutDown()methods.classAbstractIdleServiceBase class for services that do not need a thread while "running" but may need one during startup and shutdown.classAbstractListeningExecutorServiceAbstractListeningExecutorServiceimplementation that createsListenableFutureinstances for eachRunnableandCallablesubmitted to it.classAbstractScheduledServiceBase class for services that can implementAbstractScheduledService.startUp()andAbstractScheduledService.shutDown()but while in the "running" state need to perform a periodic task.static classAbstractScheduledService.CustomSchedulerAAbstractScheduledService.Schedulerthat provides a convenient way for theAbstractScheduledServiceto use a dynamically changing schedule.protected static classAbstractScheduledService.CustomScheduler.ScheduleA value object that represents an absolute delay until a task should be invoked.classAbstractServiceBase class for implementing services that can handleAbstractService.doStart()andAbstractService.doStop()requests, responding to them withAbstractService.notifyStarted()andAbstractService.notifyStopped()callbacks.interfaceCheckedFuture<V,X extends java.lang.Exception>ACheckedFutureis aListenableFuturethat includes versions of thegetmethods that can throw a checked exception.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 java.lang.Enum<E>>ACycleDetectingLockFactory.WithExplicitOrderingprovides the additional enforcement of an application-specified ordering of lock acquisitions.classFakeTimeLimiterA TimeLimiter implementation which actually does not attempt to limit time at all.classForwardingCheckedFuture<V,X extends java.lang.Exception>A future which forwards all its method calls to another future.static classForwardingCheckedFuture.SimpleForwardingCheckedFuture<V,X extends java.lang.Exception>A simplified version ofForwardingCheckedFuturewhere subclasses can pass in an already constructedCheckedFutureas the delegate.interfaceFutureFallback<V>Deprecated.This interface's main user,Futures.withFallback, has been updated to useAsyncFunction.classFuturesStatic utility methods pertaining to theFutureinterface.classJdkFutureAdaptersUtilities necessary for working with libraries that supply plainFutureinstances.interfaceListenableScheduledFuture<V>Helper interface to implement bothListenableFutureandScheduledFuture.interfaceListeningScheduledExecutorServiceAScheduledExecutorServicethat returnsListenableFutureinstances from itsExecutorServicemethods.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.interfaceServiceAn object with an operational state, plus asynchronousService.startAsync()andService.stopAsync()lifecycle methods to transition between states.static classService.ListenerA listener for the various state changes that aServicegoes through in its lifecycle.static classService.StateThe lifecycle states of a service.classServiceManagerA manager for monitoring and controlling a set of services.static classServiceManager.ListenerA listener for the aggregate state changes of the services that are under management.classSimpleTimeLimiterA TimeLimiter that runs method calls in the background using anExecutorService.classStriped<L>A stripedLock/Semaphore/ReadWriteLock.interfaceTimeLimiterProduces proxies that impose a time limit on method calls to the proxied object.classUninterruptiblesUtilities for treating interruptible operations as uninterruptible.Methods in com.google.common.util.concurrent with annotations of type Beta Modifier and Type Method Description static voidMoreExecutors. addDelayedShutdownHook(java.util.concurrent.ExecutorService service, long terminationTimeout, java.util.concurrent.TimeUnit timeUnit)Add a shutdown hook to wait for thread completion in the givenservice.static <V> ListenableFuture<java.util.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> ListenableFuture<java.util.List<V>>Futures. allAsList(java.lang.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 java.util.concurrent.ExecutorServiceMoreExecutors. getExitingExecutorService(java.util.concurrent.ThreadPoolExecutor executor)Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.static java.util.concurrent.ExecutorServiceMoreExecutors. getExitingExecutorService(java.util.concurrent.ThreadPoolExecutor executor, long terminationTimeout, java.util.concurrent.TimeUnit timeUnit)Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.static java.util.concurrent.ScheduledExecutorServiceMoreExecutors. getExitingScheduledExecutorService(java.util.concurrent.ScheduledThreadPoolExecutor executor)Converts the given ThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.static java.util.concurrent.ScheduledExecutorServiceMoreExecutors. getExitingScheduledExecutorService(java.util.concurrent.ScheduledThreadPoolExecutor executor, long terminationTimeout, java.util.concurrent.TimeUnit timeUnit)Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.static <T> ImmutableList<ListenableFuture<T>>Futures. inCompletionOrder(java.lang.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 java.util.concurrent.ThreadFactoryMoreExecutors. platformThreadFactory()Returns a default thread factory used to create new threads.protected booleanAbstractFuture. setFuture(ListenableFuture<? extends V> future)Sets the result of thisFutureto match the supplied inputFutureonce the suppliedFutureis done, unless thisFuturehas already been cancelled or set (including "set asynchronously," defined below).booleanSettableFuture. setFuture(ListenableFuture<? extends V> future)static booleanMoreExecutors. shutdownAndAwaitTermination(java.util.concurrent.ExecutorService service, long timeout, java.util.concurrent.TimeUnit unit)Shuts down the given executor gradually, first disabling new submissions and later cancelling existing tasks.static <V> ListenableFuture<java.util.List<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> ListenableFuture<java.util.List<V>>Futures. successfulAsList(java.lang.Iterable<? extends ListenableFuture<? extends V>> futures)Creates a newListenableFuturewhose value is a list containing the values of all its successful input futures. -
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.
-