Uses of Class
com.google.common.annotations.VisibleForTesting
-
Packages that use VisibleForTesting Package Description com.google.common.base Basic utility libraries and interfaces.com.google.common.cache This package contains caching utilities.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.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.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.testing This package contains testing utilities.com.google.common.util.concurrent Concurrency utilities. -
-
Uses of VisibleForTesting in com.google.common.base
Classes in com.google.common.base with annotations of type VisibleForTesting Modifier and Type Class Description (package private) static classCharMatcher.WhitespaceImplementation ofCharMatcher.whitespace().(package private) static classSuppliers.ExpiringMemoizingSupplier<T>(package private) static classSuppliers.MemoizingSupplier<T>(package private) static classSuppliers.NonSerializableMemoizingSupplier<T>Fields in com.google.common.base with annotations of type VisibleForTesting Modifier and Type Field Description (package private) static booleanFinalizableReferenceQueue.SystemLoader. disabled(package private) static java.lang.StringThrowables. SHARED_SECRETS_CLASSNAMESharedSecrets class name to load using reflectionMethods in com.google.common.base with annotations of type VisibleForTesting Modifier and Type Method Description (package private) static intSmallCharMatcher. chooseTableSize(int setSize)Returns an array size suitable for the backing array of a hash table that uses open addressing with linear probing in its implementation.(package private) static booleanStrings. validSurrogatePairAt(java.lang.CharSequence string, int index)True when a valid surrogate pair starts at the givenindexin the givenstring. -
Uses of VisibleForTesting in com.google.common.cache
Fields in com.google.common.cache with annotations of type VisibleForTesting Modifier and Type Field Description (package private) longCacheBuilderSpec. accessExpirationDuration(package private) java.util.concurrent.TimeUnitCacheBuilderSpec. accessExpirationTimeUnit(package private) java.lang.IntegerCacheBuilderSpec. concurrencyLevel(package private) java.lang.IntegerCacheBuilderSpec. initialCapacity(package private) LocalCache.StrengthCacheBuilderSpec. keyStrength(package private) java.lang.LongCacheBuilderSpec. maximumSize(package private) java.lang.LongCacheBuilderSpec. maximumWeight(package private) java.lang.BooleanCacheBuilderSpec. recordStats(package private) longCacheBuilderSpec. refreshDuration(package private) java.util.concurrent.TimeUnitCacheBuilderSpec. refreshTimeUnit(package private) LocalCache.StrengthCacheBuilderSpec. valueStrength(package private) longCacheBuilderSpec. writeExpirationDuration(package private) java.util.concurrent.TimeUnitCacheBuilderSpec. writeExpirationTimeUnitMethods in com.google.common.cache with annotations of type VisibleForTesting Modifier and Type Method Description (package private) booleanLocalCache.Segment. containsValue(java.lang.Object value)This method is a convenience for testing.(package private) ReferenceEntry<K,V>LocalCache. copyEntry(ReferenceEntry<K,V> original, ReferenceEntry<K,V> newNext)This method is a convenience for testing.(package private) booleanLocalCache. isLive(ReferenceEntry<K,V> entry, long now)This method is a convenience for testing.(package private) ReferenceEntry<K,V>LocalCache. newEntry(K key, int hash, ReferenceEntry<K,V> next)This method is a convenience for testing.(package private) LocalCache.ValueReference<K,V>LocalCache. newValueReference(ReferenceEntry<K,V> entry, V value, int weight)This method is a convenience for testing.(package private) booleanLocalCache.Segment. removeEntry(ReferenceEntry<K,V> entry, int hash, RemovalCause cause) -
Uses of VisibleForTesting in com.google.common.collect
Classes in com.google.common.collect with annotations of type VisibleForTesting Modifier and Type Class Description (package private) static classInterners.InternerImpl<E>(package private) static classLinkedHashMultimap.ValueEntry<K,V>LinkedHashMultimap entries are in no less than three coexisting linked lists: a bucket in the hash table for aSet<V>associated with a key, the linked list of insertion-ordered entries in thatSet<V>, and the linked list of entries in the LinkedHashMultimap as a whole.(package private) classLinkedHashMultimap.ValueSet(package private) static classOrdering.ArbitraryOrdering(package private) static classOrdering.IncomparableValueExceptionException thrown by aOrdering.explicit(List)orOrdering.explicit(Object, Object[])comparator when comparing a value outside the set of values it can compare.(package private) static classSynchronized.SynchronizedBiMap<K,V>(package private) static classSynchronized.SynchronizedCollection<E>(package private) static classSynchronized.SynchronizedNavigableMap<K,V>(package private) static classSynchronized.SynchronizedNavigableSet<E>(package private) static classTreeRangeSet.RangesByUpperBound<C extends java.lang.Comparable<?>>Fields in com.google.common.collect with annotations of type VisibleForTesting Modifier and Type Field Description (package private) java.lang.Object[]RegularImmutableList. array(package private) java.lang.Object[]ImmutableList.Builder. contents(package private) static intCompactHashSet. DEFAULT_SIZE(package private) RegularImmutableSortedSet<E>RegularImmutableSortedMultiset. elementSet(package private) long[]CompactHashMap. entriesContains the logical entries, in the range of [0, size()).(package private) java.util.Map.Entry<K,V>[]RegularImmutableBiMap. entries(package private) java.util.Map.Entry<K,V>[]RegularImmutableMap. entries(package private) intArrayListMultimap. expectedValuesPerKey(package private) intHashMultimap. expectedValuesPerKey(package private) static doubleRegularImmutableMap. HASH_FLOODING_FPPMaximum allowed false positive probability of detecting a hash flooding attack given random input.(package private) static doubleRegularImmutableMultiset. HASH_FLOODING_FPPMaximum allowed false positive probability of detecting a hash flooding attack given random input.(package private) LinkedHashMultimap.ValueEntry<K,V>[]LinkedHashMultimap.ValueSet. hashTable(package private) java.lang.Object[]CompactHashMap. keysThe keys of the entries in the map, in the range of [0, size()).(package private) long[]CompactLinkedHashMap. linksContains the link pointers corresponding with the entries, in the range of [0, size()).(package private) MapMakerInternalMap<E,MapMaker.Dummy,?,?>Interners.InternerImpl. map(package private) static intRegularImmutableMap. MAX_HASH_BUCKET_LENGTHMaximum allowed length of a hash table bucket before falling back to a j.u.HashMap based implementation.(package private) static intRegularImmutableMultiset. MAX_HASH_BUCKET_LENGTHMaximum allowed length of a hash table bucket before falling back to a j.u.HashMap based implementation.(package private) static doubleRegularImmutableMap. MAX_LOAD_FACTORClosed addressing tends to perform well even with high load factors.(package private) static doubleRegularImmutableMultiset. MAX_LOAD_FACTORClosed addressing tends to perform well even with high load factors.(package private) intMinMaxPriorityQueue. maximumSize(package private) intEvictingQueue. maxSize(package private) java.util.NavigableMap<Cut<C>,Range<C>>TreeRangeSet. rangesByLowerBound(package private) java.lang.Object[]RegularImmutableSet. table(package private) static doubleLinkedHashMultimap. VALUE_SET_LOAD_FACTOR(package private) java.lang.Object[]CompactHashMap. valuesThe values of the entries in the map, in the range of [0, size()).(package private) intLinkedHashMultimap. valueSetCapacityMethods in com.google.common.collect with annotations of type VisibleForTesting Modifier and Type Method Description (package private) ImmutableBiMap<K,V>ImmutableBiMap.Builder. buildJdkBacked()(package private) ImmutableMap<K,V>ImmutableMap.Builder. buildJdkBacked()(package private) ImmutableMultiset<E>ImmutableMultiset.Builder. buildJdkBacked()(package private) intMinMaxPriorityQueue. capacity()(package private) static intImmutableSet. chooseTableSize(int setSize)Returns an array size suitable for the backing array of a hash table that uses open addressing with linear probing in its implementation.(package private) static intLists. computeArrayListCapacity(int arraySize)(package private) booleanMapMakerInternalMap.Segment. containsValue(java.lang.Object value)This method is a convenience for testing.(package private) EMapMakerInternalMap. copyEntry(E original, E newNext)This method is a convenience for testing.(package private) static <K,V>
ImmutableBiMap<K,V>JdkBackedImmutableBiMap. create(int n, java.util.Map.Entry<K,V>[] entryArray)(package private) voidImmutableSet.Builder. forceJdk()(package private) static intMinMaxPriorityQueue. initialQueueSize(int configuredExpectedSize, int maximumSize, java.lang.Iterable<?> initialContents)(package private) static booleanMinMaxPriorityQueue. isEvenLevel(int index)(package private) booleanMinMaxPriorityQueue. isIntact()Returnstrueif the MinMax heap structure holds.(package private) booleanMapMakerInternalMap. isLiveForTesting(MapMakerInternalMap.InternalEntry<K,V,?> entry)This method is a convenience for testing.(package private) MapMakerInternalMap.StrengthMapMakerInternalMap. keyStrength()(package private) static <K,V>
java.util.Map<K,V>Synchronized. map(java.util.Map<K,V> map, java.lang.Object mutex)(package private) MinMaxPriorityQueue.MoveDesc<E>MinMaxPriorityQueue. removeAt(int index)Removes the element at positionindex.(package private) static <E> java.util.Set<E>Synchronized. set(java.util.Set<E> set, java.lang.Object mutex)(package private) Equivalence<java.lang.Object>MapMakerInternalMap. valueEquivalence()(package private) MapMakerInternalMap.StrengthMapMakerInternalMap. valueStrength()Constructors in com.google.common.collect with annotations of type VisibleForTesting Constructor Description ConcurrentHashMultiset(java.util.concurrent.ConcurrentMap<E,java.util.concurrent.atomic.AtomicInteger> countMap) -
Uses of VisibleForTesting in com.google.common.escape
Methods in com.google.common.escape with annotations of type VisibleForTesting Modifier and Type Method Description (package private) static char[][]ArrayBasedEscaperMap. createReplacementArray(java.util.Map<java.lang.Character,java.lang.String> map) -
Uses of VisibleForTesting in com.google.common.eventbus
Classes in com.google.common.eventbus with annotations of type VisibleForTesting Modifier and Type Class Description (package private) static classSubscriber.SynchronizedSubscriberSubscriber that synchronizes invocations of a method to ensure that only one thread may enter the method at a time.Fields in com.google.common.eventbus with annotations of type VisibleForTesting Modifier and Type Field Description (package private) java.lang.ObjectSubscriber. targetThe object with the subscriber method.Methods in com.google.common.eventbus with annotations of type VisibleForTesting Modifier and Type Method Description (package private) static ImmutableSet<java.lang.Class<?>>SubscriberRegistry. flattenHierarchy(java.lang.Class<?> concreteClass)Flattens a class's type hierarchy into a set ofClassobjects including all superclasses (transitively) and all interfaces implemented by these superclasses.(package private) java.util.Set<Subscriber>SubscriberRegistry. getSubscribersForTesting(java.lang.Class<?> eventType)(package private) voidSubscriber. invokeSubscriberMethod(java.lang.Object event)Invokes the subscriber method. -
Uses of VisibleForTesting in com.google.common.hash
Methods in com.google.common.hash with annotations of type VisibleForTesting Modifier and Type Method Description (package private) longBloomFilter. bitSize()Returns the number of bits in the underlying bit array.(package private) static <T> BloomFilter<T>BloomFilter. create(Funnel<? super T> funnel, long expectedInsertions, double fpp, BloomFilter.Strategy strategy)(package private) static longFarmHashFingerprint64. fingerprint(byte[] bytes, int offset, int length)(package private) static longBloomFilter. optimalNumOfBits(long n, double p)Computes m (total bits of Bloom filter) which is expected to achieve, for the specified expected insertions, the required false positive probability.(package private) static intBloomFilter. optimalNumOfHashFunctions(long n, long m)Computes the optimal k (number of hashes per element inserted in Bloom filter), given the expected insertions and total number of bits in the Bloom filter. -
Uses of VisibleForTesting in com.google.common.io
Classes in com.google.common.io with annotations of type VisibleForTesting Modifier and Type Class Description (package private) static classCloser.LoggingSuppressorSuppresses exceptions by logging them.(package private) static classCloser.SuppressingSuppressorSuppresses exceptions by adding them to the exception that will be thrown using JDK7's addSuppressed(Throwable) mechanism.(package private) static interfaceCloser.SuppressorSuppression strategy interface.Fields in com.google.common.io with annotations of type VisibleForTesting Modifier and Type Field Description (package private) static java.util.logging.LoggerCloseables. logger(package private) Closer.SuppressorCloser. suppressorMethods in com.google.common.io with annotations of type VisibleForTesting Modifier and Type Method Description (package private) java.io.FileFileBackedOutputStream. getFile()Returns the file holding the data (possibly null).Constructors in com.google.common.io with annotations of type VisibleForTesting Constructor Description Closer(Closer.Suppressor suppressor) -
Uses of VisibleForTesting in com.google.common.math
Fields in com.google.common.math with annotations of type VisibleForTesting Modifier and Type Field Description (package private) static int[]IntMath. biggestBinomials(package private) static int[]LongMath. biggestSimpleBinomials(package private) static double[]DoubleMath. everySixteenthFactorial(package private) static intIntMath. FLOOR_SQRT_MAX_INT(package private) static longLongMath. FLOOR_SQRT_MAX_LONG(package private) static int[]IntMath. halfPowersOf10(package private) static long[]LongMath. halfPowersOf10(package private) static intDoubleMath. MAX_FACTORIAL(package private) static intIntMath. MAX_POWER_OF_SQRT2_UNSIGNEDThe biggest half power of two that can fit in an unsigned int.(package private) static longLongMath. MAX_POWER_OF_SQRT2_UNSIGNEDThe biggest half power of two that fits into an unsigned long(package private) static intIntMath. MAX_SIGNED_POWER_OF_TWO(package private) static longLongMath. MAX_SIGNED_POWER_OF_TWO(package private) static byte[]IntMath. maxLog10ForLeadingZeros(package private) static byte[]LongMath. maxLog10ForLeadingZeros(package private) static longDoubleUtils. ONE_BITS(package private) static int[]IntMath. powersOf10(package private) static long[]LongMath. powersOf10(package private) static intBigIntegerMath. SQRT2_PRECOMPUTE_THRESHOLD(package private) static java.math.BigIntegerBigIntegerMath. SQRT2_PRECOMPUTED_BITSMethods in com.google.common.math with annotations of type VisibleForTesting Modifier and Type Method Description (package private) static intIntMath. lessThanBranchFree(int x, int y)Returns 1 ifx < yas unsigned integers, and 0 otherwise.(package private) static intLongMath. lessThanBranchFree(long x, long y)Returns 1 ifx < yas unsigned longs, and 0 otherwise. -
Uses of VisibleForTesting in com.google.common.primitives
Classes in com.google.common.primitives with annotations of type VisibleForTesting Modifier and Type Class Description (package private) static classUnsignedBytes.LexicographicalComparatorHolderProvides a lexicographical comparator implementation; either a Java implementation or a faster implementation based onUnsafe.(package private) static classUnsignedBytes.LexicographicalComparatorHolder.UnsafeComparatorMethods in com.google.common.primitives with annotations of type VisibleForTesting Modifier and Type Method Description (package private) static java.util.Comparator<byte[]>UnsignedBytes. lexicographicalComparatorJavaImpl() -
Uses of VisibleForTesting in com.google.common.reflect
Classes in com.google.common.reflect with annotations of type VisibleForTesting Modifier and Type Class Description (package private) static classClassPath.DefaultScannerMethods in com.google.common.reflect with annotations of type VisibleForTesting Modifier and Type Method Description (package private) static java.lang.StringClassPath. getClassName(java.lang.String filename)(package private) static ImmutableMap<java.io.File,java.lang.ClassLoader>ClassPath.Scanner. getClassPathEntries(java.lang.ClassLoader classloader)(package private) static java.net.URLClassPath.Scanner. getClassPathEntry(java.io.File jarFile, java.lang.String path)Returns the absolute uri of the Class-Path entry value as specified in JAR File Specification.(package private) static ImmutableSet<java.io.File>ClassPath.Scanner. getClassPathFromManifest(java.io.File jarFile, java.util.jar.Manifest manifest)Returns the class path URIs specified by theClass-Pathmanifest attribute, according to JAR File Specification.(package private) static ImmutableList<java.net.URL>ClassPath.Scanner. parseJavaClassPath()Returns the URLs in the class path specified by thejava.class.pathsystem property.(package private) voidClassPath.Scanner. scan(java.io.File file, java.lang.ClassLoader classloader)(package private) static java.lang.reflect.WildcardTypeTypes. subtypeOf(java.lang.reflect.Type upperBound)Returns a newWildcardTypewithupperBound.(package private) static java.lang.reflect.WildcardTypeTypes. supertypeOf(java.lang.reflect.Type lowerBound)Returns a newWildcardTypewithlowerBound.(package private) static java.io.FileClassPath. toFile(java.net.URL url)(package private) static <T> TypeToken<? extends T>TypeToken. toGenericType(java.lang.Class<T> cls)Returns the type token representing the generic type declaration ofcls. -
Uses of VisibleForTesting in com.google.common.testing
Classes in com.google.common.testing with annotations of type VisibleForTesting Modifier and Type Class Description (package private) static classClassSanityTester.FactoryMethodReturnsNullExceptionThrown if the test tries to invoke a static factory method to test instance methods but the factory returned null.(package private) static classClassSanityTester.ParameterHasNoDistinctValueExceptionThrown if the test fails to generate two distinct non-null values of a constructor or factory parameter in order to testObject.equals(java.lang.Object)andObject.hashCode()of the declaring class.(package private) static classClassSanityTester.ParameterNotInstantiableExceptionThrown if the test tries to invoke a constructor or static factory method but failed because the dummy value of a constructor or method parameter is unknown.Methods in com.google.common.testing with annotations of type VisibleForTesting Modifier and Type Method Description (package private) java.util.List<java.lang.Class<?>>AbstractPackageSanityTests. findClassesToTest(java.lang.Iterable<? extends java.lang.Class<?>> classes, java.lang.Iterable<java.lang.String> explicitTestNames)Finds the classes not ending with a test suffix and not covered by an explicit test whose name isexplicitTestName. -
Uses of VisibleForTesting in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent with annotations of type VisibleForTesting Modifier and Type Interface Description (package private) static interfaceFuturesGetChecked.GetCheckedTypeValidator(package private) static classFuturesGetChecked.GetCheckedTypeValidatorHolderProvides a check of whether an exception type is valid for use withFuturesGetChecked.getChecked(Future, Class), possibly using caching.(package private) static classMoreExecutors.ApplicationRepresents the current application to register shutdown hooks.(package private) static classStriped.LargeLazyStriped<L>Implementation of Striped where up to 2^k stripes can be represented, using a ConcurrentMap where the key domain is [0..2^k).(package private) static classStriped.SmallLazyStriped<L>Implementation of Striped where up to 2^k stripes can be represented, using an AtomicReferenceArray of size 2^k.(package private) static classUncaughtExceptionHandlers.ExiterMethods in com.google.common.util.concurrent with annotations of type VisibleForTesting Modifier and Type Method Description (package private) voidMoreExecutors.Application. addShutdownHook(java.lang.Thread hook)(package private) static voidFuturesGetChecked. checkExceptionClassValidity(java.lang.Class<? extends java.lang.Exception> exceptionClass)(package private) static FuturesGetChecked.GetCheckedTypeValidatorFuturesGetChecked. classValueValidator()(package private) static RateLimiterRateLimiter. create(double permitsPerSecond, long warmupPeriod, java.util.concurrent.TimeUnit unit, double coldFactor, RateLimiter.SleepingStopwatch stopwatch)(package private) static RateLimiterRateLimiter. create(double permitsPerSecond, RateLimiter.SleepingStopwatch stopwatch)(package private) static <E extends java.lang.Enum<E>>
java.util.Map<E,CycleDetectingLockFactory.LockGraphNode>CycleDetectingLockFactory. createNodes(java.lang.Class<E> clazz)For a given Enum type, creates an immutable map from each of the Enum's values to a corresponding LockGraphNode, with theallowedPriorLocksanddisallowedPriorLocksprepopulated with nodes according to the natural ordering of the associated Enum values.(package private) static <V,X extends java.lang.Exception>
VFuturesGetChecked. getChecked(FuturesGetChecked.GetCheckedTypeValidator validator, java.util.concurrent.Future<V> future, java.lang.Class<X> exceptionClass)Implementation ofFutures.getChecked(Future, Class).(package private) static booleanFuturesGetChecked. isCheckedException(java.lang.Class<? extends java.lang.Exception> type)(package private) static FuturesGetChecked.GetCheckedTypeValidatorFuturesGetChecked. weakSetValidator()Constructors in com.google.common.util.concurrent with annotations of type VisibleForTesting Constructor Description WithExplicitOrdering(CycleDetectingLockFactory.Policy policy, java.util.Map<E,CycleDetectingLockFactory.LockGraphNode> lockGraphNodes)
-