Module dev.mccue.guava.base
Package dev.mccue.guava.base
@CheckReturnValue
@ParametersAreNonnullByDefault
package dev.mccue.guava.base
Basic utility libraries and interfaces.
This package is a part of the open-source Guava library.
Contents
The classes in this package that are most commonly useful are:String utilities
AsciiCaseFormatCharMatcherSplitterStrings
Function types
ConverterEquivalence
Other
EnumsMoreObjectsPreconditionsStandardSystemPropertyStopwatchThrowablesVerify
The rest
This package also contains some classes with niche use cases (e.g.,Utf8 and
Defaults), as well as a number of classes that have been superseded by additions to the JDK.-
ClassDescriptionStatic methods pertaining to ASCII characters (those in the range of values
0x00through0x7F), and to strings containing such characters.Utility class for converting between various ASCII case formats.Determines a true or false value for any Javacharvalue, just asPredicatedoes for anyObject.Contains constant definitions for the six standardCharsetinstances, which are guaranteed to be supported by all Java platform implementations.Converter<A,B> A function fromAtoBwith an associated reverse function fromBtoA; used for converting back and forth between different representations of the same information.This class provides default values for all Java types, as defined by the JLS.Utility methods for working withEnuminstances.Equivalence<T>A strategy for determining whether two instances are considered equivalent, and for computing hash codes in a manner consistent with that equivalence.Equivalence.Wrapper<T extends @Nullable Object>Wraps an object so that#equals(Object)and#hashCode()delegate to anEquivalence.Legacy version ofjava.util.function.Function java.util.function.Function.Static utility methods pertaining todev.mccue.guava.base.Functioninstances; see that class for information about migrating tojava.util.function.An object which joins pieces of text (specified as an array,Iterable, varargs or even aMap) with a separator.An object that joins map entries in the same manner asJoinerjoins iterables and arrays.Helper functions that operate on anyObject, and are not already provided injava.util.Objects.Support class forMoreObjects#toStringHelper.Helper functions that can operate on anyObject.Optional<T>An immutable object that may contain a non-null reference to another object.Static convenience methods that help a method or constructor check whether it was invoked correctly (that is, whether its preconditions were met).Legacy version ofjava.util.function.Predicate java.util.function.Predicate.Static utility methods pertaining toPredicateinstances.Extracts non-overlapping substrings from an input string, typically by recognizing appearances of a separator sequence.An object that splits strings into maps asSplittersplits iterables and lists.Represents aSystem#getProperties() standard system property.An object that accurately measures elapsed time: the measured duration between two successive readings of "now" in the same process.Static utility methods pertaining toStringorCharSequenceinstances.Legacy version ofjava.util.function.Supplier java.util.function.Supplier.Useful suppliers.Static utility methods pertaining to instances ofThrowable.A time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.Low-level, high-performance utility methods related to theCharsets#UTF_8 UTF-8character encoding.Static convenience methods that serve the same purpose as Java language assertions, except that they are always enabled.Exception thrown upon the failure of a verification check, including those performed by the convenience methods of theVerifyclass.