Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- a - Variable in class org.plumelib.util.Pair
-
Deprecated.The first element of the pair.
- a - Variable in class org.plumelib.util.WeakIdentityPair
-
The first element of the pair.
- abbreviateNumber(long) - Static method in class org.plumelib.util.StringsPlume
-
Convert a number into an abbreviation such as "5.00K" for 5000 or "65.0M" for 65000000.
- abbreviateNumber(long) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- AbstractMostlySingletonSet<T extends @Signed Object> - Class in org.plumelib.util
-
Base class for arbitrary-size sets that is very efficient (more efficient than HashSet) for 0 and 1 elements.
- AbstractMostlySingletonSet(AbstractMostlySingletonSet.State) - Constructor for class org.plumelib.util.AbstractMostlySingletonSet
-
Create an AbstractMostlySingletonSet.
- AbstractMostlySingletonSet(AbstractMostlySingletonSet.State, T) - Constructor for class org.plumelib.util.AbstractMostlySingletonSet
-
Create an AbstractMostlySingletonSet.
- AbstractMostlySingletonSet.State - Enum in org.plumelib.util
-
The possible states of this set.
- accept(File, String) - Method in class org.plumelib.util.FilesPlume.WildcardFilter
- accept(File, String) - Method in class org.plumelib.util.UtilPlume.WildcardFilter
-
Deprecated.
- accept(T) - Method in interface org.plumelib.util.Filter
-
Tests whether a specified Object satisfies the filter.
- accept(T) - Method in class org.plumelib.util.MultiRandSelector
-
Use the given value as one of the objects in the pool to select from.
- accept(T) - Method in class org.plumelib.util.RandomSelector
-
When in fixed sample mode, increments the number of observed elements i by 1, then with probability k / i, the Object 'next' will be added to the currently selected values 'values' where k is equal to 'numElts'.
- acceptIter(Iterator<T>) - Method in class org.plumelib.util.MultiRandSelector
-
Use all the iterator's elements in the pool to select from.
- add(int, E) - Method in class org.plumelib.util.ArraySet
-
Adds an element to this set.
- add(int, E) - Method in class org.plumelib.util.IdentityArraySet
-
Adds an element to this set.
- add(int) - Method in class org.plumelib.util.LimitedSizeIntSet
-
Add an element to this set.
- add(long) - Method in class org.plumelib.util.LimitedSizeLongSet
-
Add an element to this set.
- add(E) - Method in class org.plumelib.util.ArraySet
- add(E) - Method in class org.plumelib.util.IdentityArraySet
- add(T) - Method in class org.plumelib.util.IdentityMostlySingletonSet
- add(T) - Method in class org.plumelib.util.LimitedSizeSet
-
Add an element to this set.
- add(T) - Method in class org.plumelib.util.MostlySingletonSet
- addAll(Collection<? extends E>) - Method in class org.plumelib.util.ArraySet
- addAll(Collection<? extends E>) - Method in class org.plumelib.util.IdentityArraySet
- addAll(Collection<? extends T>) - Method in class org.plumelib.util.AbstractMostlySingletonSet
- addAll(LimitedSizeIntSet) - Method in class org.plumelib.util.LimitedSizeIntSet
-
Add all elements of
sto this set. - addAll(LimitedSizeLongSet) - Method in class org.plumelib.util.LimitedSizeLongSet
-
Add all elements of
sto this set. - addAll(LimitedSizeSet<? extends T>) - Method in class org.plumelib.util.LimitedSizeSet
-
Add all elements of
sto this set. - addEnds - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
-
If true, include the value just before the minimum excluded element and the value just after the maximum excluded element.
- addEnds - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
-
If true, include the value just before the minimum excluded element and the value just after the maximum excluded element.
- addToPart(int, T) - Method in class org.plumelib.util.ArraysPlume.Partitioning
-
Returns a new partitioning just like this one, but with elt added to the ith part.
- adjoin(Collection<T>, T) - Static method in class org.plumelib.util.CollectionsPlume
-
Adds an element to the given collection, but only if it is not already present.
- adjoinAll(Collection<T>, Collection<? extends T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Adds elements to the given collection, but only ones that are not already present.
- advanceNext() - Method in class org.plumelib.util.CombinationIterator
-
Advance
#nextValueto the next value, or to null if there are no more values. - allLineSeparators - Static variable in class org.plumelib.util.StringsPlume
-
A pattern that matches all common line separators: lf, cr, cr-lf.
- allNull(Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true if all elements of a are null.
- allNull(List<?>) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true if all elements of a are null.
- annotationComparator - Static variable in class org.plumelib.util.ClassDeterministic
-
Compares Annotation objects by type name.
- AnnotationComparator() - Constructor for class org.plumelib.util.ClassDeterministic.AnnotationComparator
-
Create a new AnnotationComparator.
- ANY - Enum constant in enum org.plumelib.util.AbstractMostlySingletonSet.State
-
A set of arbitrary size.
- anyNull(Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true if a contains null.
- anyNull(List<? extends Object>) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true if a contains null.
- append(Collection<T>, T) - Static method in class org.plumelib.util.CollectionsPlume
-
Concatenates a list and an element into a new list.
- append(T[], T) - Static method in class org.plumelib.util.ArraysPlume
-
Concatenates an array and an element into a new array.
- appendProperty(Properties, String, String) - Static method in class org.plumelib.util.UtilPlume
-
Set the property to its previous value concatenated to the given value.
- ArrayMap<K extends @UnknownSignedness Object,
V extends @UnknownSignedness Object> - Class in org.plumelib.util -
A map backed by two arrays.
- ArrayMap() - Constructor for class org.plumelib.util.ArrayMap
-
Constructs an empty
ArrayMapwith the default initial capacity. - ArrayMap(int) - Constructor for class org.plumelib.util.ArrayMap
-
Constructs an empty
ArrayMapwith the specified initial capacity. - ArrayMap(Map<? extends K, ? extends V>) - Constructor for class org.plumelib.util.ArrayMap
-
Constructs a new
ArrayMapwith the same mappings as the givenMap. - ArrayMap(K[], V[], int) - Constructor for class org.plumelib.util.ArrayMap
-
Private constructor.
- ArrayMap.ArrayMapIterator - Class in org.plumelib.util
-
An iterator over the ArrayMap.
- ArrayMap.Entry - Class in org.plumelib.util
-
An entrySet() entry.
- ArrayMap.EntryIterator - Class in org.plumelib.util
-
An iterator over the entries.
- ArrayMap.EntrySet - Class in org.plumelib.util
-
Represents a view of the entries.
- ArrayMap.KeyIterator - Class in org.plumelib.util
-
An iterator over the keys.
- ArrayMap.KeySet - Class in org.plumelib.util
-
Represents a view of the keys.
- ArrayMap.ValueIterator - Class in org.plumelib.util
-
An iterator over the values.
- ArrayMap.Values - Class in org.plumelib.util
-
Represents a view of the values.
- ArrayMapIterator() - Constructor for class org.plumelib.util.ArrayMap.ArrayMapIterator
-
Creates a new ArrayMapIterator.
- ArraySet<E extends @UnknownSignedness Object> - Class in org.plumelib.util
-
A set backed by an array.
- ArraySet() - Constructor for class org.plumelib.util.ArraySet
-
Constructs an empty
ArraySetwith the default initial capacity. - ArraySet(int) - Constructor for class org.plumelib.util.ArraySet
-
Constructs an empty
ArraySetwith the specified initial capacity. - ArraySet(E[], int) - Constructor for class org.plumelib.util.ArraySet
-
Private constructor.
- ArraySet(Collection<? extends E>) - Constructor for class org.plumelib.util.ArraySet
-
Constructs a new
ArraySetwith the same elements as the given collection. - ArraySet.ArraySetIterator - Class in org.plumelib.util
-
An iterator over the ArraySet.
- ArraySetIterator() - Constructor for class org.plumelib.util.ArraySet.ArraySetIterator
-
Creates a new ArraySetIterator.
- ArraySetIterator() - Constructor for class org.plumelib.util.IdentityArraySet.ArraySetIterator
-
Creates a new ArraySetIterator.
- ArraysPlume - Class in org.plumelib.util
-
Utilities for manipulating arrays.
- ArraysPlume() - Constructor for class org.plumelib.util.ArraysPlume
-
This class is a collection of methods; it does not represent anything.
- ArraysPlume.ComparableArrayComparatorLengthFirst<T extends Comparable<T>> - Class in org.plumelib.util
-
Compare two arrays first by length (a shorter array is considered less), and if of equal length compare lexically (element-by-element).
- ArraysPlume.ComparableArrayComparatorLexical<T extends Comparable<T>> - Class in org.plumelib.util
-
Compare two arrays lexically (element-by-element).
- ArraysPlume.DoubleArrayComparatorLexical - Class in org.plumelib.util
-
Compare two arrays lexically (element-by-element).
- ArraysPlume.IntArrayComparatorLengthFirst - Class in org.plumelib.util
-
Compare two arrays first by length (a shorter array is considered less), and if of equal length compare lexically (element-by-element).
- ArraysPlume.IntArrayComparatorLexical - Class in org.plumelib.util
-
Compare two arrays lexically (element-by-element).
- ArraysPlume.ListOrArray<T extends @Nullable Object> - Class in org.plumelib.util
-
A wrapper around a list or an array (or null).
- ArraysPlume.LongArrayComparatorLengthFirst - Class in org.plumelib.util
-
Compare two arrays first by length (a shorter array is considered less), and if of equal length compare lexically (element-by-element).
- ArraysPlume.LongArrayComparatorLexical - Class in org.plumelib.util
-
Compare two arrays lexically (element-by-element).
- ArraysPlume.ObjectArrayComparatorLengthFirst - Class in org.plumelib.util
-
Compare two arrays first by length (a shorter array is considered less), and if of equal length compare lexically (element-by-element).
- ArraysPlume.ObjectArrayComparatorLexical - Class in org.plumelib.util
-
Compare two arrays lexically (element-by-element).
- ArraysPlume.Partitioning<T extends @NonNull Object> - Class in org.plumelib.util
-
A partitioning is a set of sets.
- ArraysPlume.StringArrayComparatorLexical - Class in org.plumelib.util
-
Compare two arrays lexically (element-by-element).
- arrayToStringAndClass(Object) - Static method in class org.plumelib.util.StringsPlume
-
Returns a string representation of the contents of the specified array.
- asRegex(String) - Static method in class org.plumelib.util.RegexUtil
-
Returns the argument as a
@Regex Stringif it is a regex, otherwise throws an error. - asRegex(String, int) - Static method in class org.plumelib.util.RegexUtil
-
Returns the argument as a
@Regex(groups) Stringif it is a regex with at least the given number of groups, otherwise throws an error. - assertsEnabled - Static variable in class org.plumelib.util.Intern
-
Whether assertions are enabled.
- assertsEnabled - Static variable in class org.plumelib.util.LimitedSizeIntSet
-
Whether assertions are enabled.
- assertsEnabled - Static variable in class org.plumelib.util.LimitedSizeLongSet
-
Whether assertions are enabled.
- assertsEnabled - Static variable in class org.plumelib.util.LimitedSizeSet
-
Whether assertions are enabled.
- assignToBucket(ELEMENT) - Method in interface org.plumelib.util.Partitioner
-
Returns a key representing the bucket containing obj.
- available(InputStream) - Static method in class org.plumelib.util.FilesPlume
-
Calls
InputStream.available(), but returns null instead of throwing an IOException.
B
- b - Variable in class org.plumelib.util.Pair
-
Deprecated.The second element of the pair.
- b - Variable in class org.plumelib.util.WeakIdentityPair
-
The second element of the pair.
- backticks(String...) - Static method in class org.plumelib.util.UtilPlume
-
Execute the given command, and return all its output as a string.
- backticks(List<String>) - Static method in class org.plumelib.util.UtilPlume
-
Execute the given command, and return all its output as a string.
- backTrace(Throwable) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- bitwiseAnd(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns x & y, the bitwise and of its arguments.
- bitwiseAnd(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns x & y, the bitwise and of its arguments.
- bitwiseComplement(int) - Static method in class org.plumelib.util.MathPlume
-
Returns ~a, the bitwise complement of its argument.
- bitwiseComplement(long) - Static method in class org.plumelib.util.MathPlume
-
Returns ~a, the bitwise complement of its argument.
- bitwiseOr(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns x | y, the bitwise or of its arguments.
- bitwiseOr(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns x | y, the bitwise or of its arguments.
- bitwiseXor(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns x ^ y, the bitwise xor of its arguments.
- bitwiseXor(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns x ^ y, the bitwise xor of its arguments.
- body - Variable in class org.plumelib.util.EntryReader.Entry
-
Complete body of the entry including the first line.
- bufferedFileOutputStream(String, boolean) - Static method in class org.plumelib.util.UtilPlume
- bufferedFileReader(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- bufferedFileReader(File, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- bufferedFileReader(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- bufferedFileReader(String, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- bufferedFileWriter(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- bufferedFileWriter(String, boolean) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
C
- canCreateAndWrite(File) - Static method in class org.plumelib.util.FilesPlume
-
Returns true if the file exists and is writable, or if the file can be created.
- canCreateAndWrite(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- charLiteral(char) - Static method in class org.plumelib.util.StringsPlume
-
Given a character, returns a Java character literal denoting the character.
- charLiteral(Character) - Static method in class org.plumelib.util.StringsPlume
-
Given a character, returns a Java character literal denoting the character.
- CheckedPatternSyntaxException(String, String, int) - Constructor for exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Constructs a new CheckedPatternSyntaxException.
- CheckedPatternSyntaxException(PatternSyntaxException) - Constructor for exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Constructs a new CheckedPatternSyntaxException equivalent to the given
PatternSyntaxException. - checkFirstAndLastNonmodulus(int[], CollectionsPlume.RemoveFirstAndLastIterator<Integer>) - Static method in class org.plumelib.util.MathPlume
-
Return true if the first and last elements are not equal to r (mod m).
- checkFirstAndLastNonmodulus(long[], CollectionsPlume.RemoveFirstAndLastIterator<Long>) - Static method in class org.plumelib.util.MathPlume
-
Return true if the first and last elements are equal to r (mod m).
- checkRep() - Method in class org.plumelib.util.AbstractMostlySingletonSet
-
Throw an exception if the internal representation is corrupted.
- choose(int, int) - Static method in class org.plumelib.util.CollectionsPlume
-
Compute (n choose k), which is (n! / (k!(n-k)!)).
- classComparator - Static variable in class org.plumelib.util.ClassDeterministic
-
Compares Class objects by fully-qualified name.
- ClassComparator() - Constructor for class org.plumelib.util.ClassDeterministic.ClassComparator
-
Create a new ClassComparator.
- ClassDeterministic - Class in org.plumelib.util
-
Deterministic versions of
java.lang.Classmethods, which return arrays in sorted order. - ClassDeterministic() - Constructor for class org.plumelib.util.ClassDeterministic
-
Do not call; this class is a collection of methods and does not represent anything.
- ClassDeterministic.AnnotationComparator - Class in org.plumelib.util
-
Compares Annotation objects by type name.
- ClassDeterministic.ClassComparator - Class in org.plumelib.util
-
Compares Class objects by fully-qualified name.
- ClassDeterministic.ConstructorComparator - Class in org.plumelib.util
-
Compares Constructor objects by signature: compares name, number of parameters, and parameter type names.
- ClassDeterministic.FieldComparator - Class in org.plumelib.util
-
Compares Field objects by name.
- ClassDeterministic.MethodComparator - Class in org.plumelib.util
-
Compares Method objects by signature: compares name, number of parameters, parameter type names, declaring class, and return type (which is necessary to distinguish bridge methods).
- ClassDeterministic.ToStringComparator - Class in org.plumelib.util
-
Compares objects by the result of toString().
- clear() - Method in class org.plumelib.util.AbstractMostlySingletonSet
- clear() - Method in class org.plumelib.util.ArrayMap
- clear() - Method in class org.plumelib.util.ArrayMap.EntrySet
- clear() - Method in class org.plumelib.util.ArrayMap.KeySet
- clear() - Method in class org.plumelib.util.ArrayMap.Values
- clear() - Method in class org.plumelib.util.ArraySet
- clear() - Method in class org.plumelib.util.IdentityArraySet
- clear() - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- clone() - Method in class org.plumelib.util.ArrayMap
-
Returns a copy of this.
- clone() - Method in class org.plumelib.util.ArraySet
-
Returns a copy of this.
- clone() - Method in class org.plumelib.util.IdentityArraySet
-
Returns a copy of this.
- clone() - Method in class org.plumelib.util.LimitedSizeIntSet
- clone() - Method in class org.plumelib.util.LimitedSizeLongSet
- clone() - Method in class org.plumelib.util.LimitedSizeSet
- clone(T) - Static method in class org.plumelib.util.UtilPlume
-
Clones the given object by calling
clone()reflectively. - cloneElements(C) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a copy of
orig, where each element of the result is a clone of the corresponding element oforig. - cloneElements(M) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a copy of
orig, where each key and value in the result is a clone of the corresponding element oforig. - cloneElements(M, boolean) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a copy of
orig, where each key and value in the result is a clone of the corresponding element oforig. - cloneElements(IPair<T1, T2>) - Static method in class org.plumelib.util.IPair
-
Returns a copy of this in which each element is a clone of the corresponding element of this.
- cloneElements(MPair<T1, T2>) - Static method in class org.plumelib.util.MPair
-
Returns a copy of this in which each element is a clone of the corresponding element of this.
- cloneValues(M) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a copy of
orig, where each value of the result is a clone of the corresponding value oforig, but the keys are the same objects. - close() - Method in class org.plumelib.util.EntryReader.DummyReader
- coinTossMode - Variable in class org.plumelib.util.MultiRandSelector
-
Whether to toss a coin or select a given number of elements.
- coinTossMode - Variable in class org.plumelib.util.RandomSelector
-
If true, numElts and observers are -1.
- CollectionsPlume - Class in org.plumelib.util
-
Utility functions for Collections, ArrayList, Iterator, and Map.
- CollectionsPlume() - Constructor for class org.plumelib.util.CollectionsPlume
-
This class is a collection of methods; it does not represent anything.
- CollectionsPlume.EnumerationIterator<T> - Class in org.plumelib.util
-
Converts an Enumeration into an Iterator.
- CollectionsPlume.FilteredIterator<T extends @Nullable Object> - Class in org.plumelib.util
-
An iterator that only returns elements that match the given Filter.
- CollectionsPlume.IteratorEnumeration<T> - Class in org.plumelib.util
-
Converts an Iterator into an Enumeration.
- CollectionsPlume.MergedIterator<T> - Class in org.plumelib.util
-
An Iterator that returns the elements in each of its argument Iterators, in turn.
- CollectionsPlume.MergedIterator2<T> - Class in org.plumelib.util
-
An Iterator that returns first the elements returned by its first argument, then the elements returned by its second argument.
- CollectionsPlume.RemoveFirstAndLastIterator<T> - Class in org.plumelib.util
-
Returns an iterator just like its argument, except that the first and last elements are removed.
- collectionTime - Variable in class org.plumelib.util.SystemPlume.GcHistoryItem
-
The cumulative collection time in milliseconds.
- CombinationIterator<T> - Class in org.plumelib.util
-
Given a set of collections, yield each combination that takes one element from each collection.
- CombinationIterator(Collection<? extends Collection<T>>) - Constructor for class org.plumelib.util.CombinationIterator
-
Creates a
CombinationIteratorfor lists constructed from the given candidates. - combinationSize - Variable in class org.plumelib.util.CombinationIterator
-
The size of each returned result; the length of listsOfCandidates.
- commentRegex - Variable in class org.plumelib.util.EntryReader
-
Regular expression that matches a comment.
- ComparableArrayComparatorLengthFirst() - Constructor for class org.plumelib.util.ArraysPlume.ComparableArrayComparatorLengthFirst
-
Create a new ComparableArrayComparatorLengthFirst.
- ComparableArrayComparatorLexical() - Constructor for class org.plumelib.util.ArraysPlume.ComparableArrayComparatorLexical
-
Create a new ComparableArrayComparatorLexical.
- comparator - Variable in class org.plumelib.util.OrderedPairIterator
-
The comparator to be used to compare elements from the two iterators, to determine whether they match.
- compare(double[], double[]) - Method in class org.plumelib.util.ArraysPlume.DoubleArrayComparatorLexical
-
Compare two arrays lexically (element-by-element).
- compare(double[], double[]) - Method in class org.plumelib.util.FuzzyFloat.DoubleArrayComparatorLexical
-
Lexically compares o1 and o2 as double arrays.
- compare(int[], int[]) - Method in class org.plumelib.util.ArraysPlume.IntArrayComparatorLengthFirst
-
Compare two arrays by length, then lexically (element-by-element).
- compare(int[], int[]) - Method in class org.plumelib.util.ArraysPlume.IntArrayComparatorLexical
-
Compare two arrays lexically (element-by-element).
- compare(long[], long[]) - Method in class org.plumelib.util.ArraysPlume.LongArrayComparatorLengthFirst
-
Compare two arrays by length, then lexically (element-by-element).
- compare(long[], long[]) - Method in class org.plumelib.util.ArraysPlume.LongArrayComparatorLexical
-
Compare two arrays lexically (element-by-element).
- compare(Object, Object) - Method in class org.plumelib.util.ToStringComparator
- compare(Object, Object) - Method in class org.plumelib.util.StringsPlume.ObjectComparator
-
Compare two Objects based on their string representations.
- compare(Object, Object) - Method in class org.plumelib.util.UtilPlume.ObjectComparator
-
Deprecated.
- compare(String, String) - Method in class org.plumelib.util.StringsPlume.NullableStringComparator
-
Deprecated.Compare two Strings lexicographically.
- compare(String, String) - Method in class org.plumelib.util.UtilPlume.NullableStringComparator
-
Deprecated.
- compare(Object[], Object[]) - Method in class org.plumelib.util.ArraysPlume.ObjectArrayComparatorLengthFirst
-
Compare two arrays by length, then lexically (element-by-element).
- compare(Object[], Object[]) - Method in class org.plumelib.util.ArraysPlume.ObjectArrayComparatorLexical
-
Compare two arrays lexically (element-by-element).
- compare(String[], String[]) - Method in class org.plumelib.util.ArraysPlume.StringArrayComparatorLexical
-
Compare two arrays lexically (element-by-element).
- compare(T[], T[]) - Method in class org.plumelib.util.ArraysPlume.ComparableArrayComparatorLengthFirst
-
Compare two arrays by length, then lexically (element-by-element).
- compare(T[], T[]) - Method in class org.plumelib.util.ArraysPlume.ComparableArrayComparatorLexical
-
Compare two arrays lexically (element-by-element).
- compare(Annotation, Annotation) - Method in class org.plumelib.util.ClassDeterministic.AnnotationComparator
- compare(Class<?>, Class<?>) - Method in class org.plumelib.util.ClassDeterministic.ClassComparator
- compare(Object, Object) - Method in class org.plumelib.util.ClassDeterministic.ToStringComparator
- compare(Constructor<?>, Constructor<?>) - Method in class org.plumelib.util.ClassDeterministic.ConstructorComparator
- compare(Field, Field) - Method in class org.plumelib.util.ClassDeterministic.FieldComparator
- compare(Method, Method) - Method in class org.plumelib.util.ClassDeterministic.MethodComparator
- compute(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class org.plumelib.util.ArrayMap
- compute(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- computeIfAbsent(K, Function<? super K, ? extends V>) - Method in class org.plumelib.util.ArrayMap
- computeIfAbsent(K, Function<? super K, ? extends V>) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- computeIfPresent(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class org.plumelib.util.ArrayMap
- computeIfPresent(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- concat(boolean[], boolean[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both argument arrays, in order.
- concat(byte[], byte[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both argument arrays, in order.
- concat(char[], char[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both argument arrays, in order.
- concat(double[], double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both argument arrays, in order.
- concat(float[], float[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both argument arrays, in order.
- concat(int[], int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both argument arrays, in order.
- concat(long[], long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both argument arrays, in order.
- concat(short[], short[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both argument arrays, in order.
- concat(String[], String[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both argument arrays, in order.
- concat(List<T>, List<T>) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both arguments, in order.
- concat(List<T>, T[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both arguments, in order.
- concat(ArraysPlume.ListOrArray<T>, ArraysPlume.ListOrArray<T>) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both arguments, in order.
- concat(T[], List<T>) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both arguments, in order.
- concat(T[], T[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array that contains all the elements of both arguments, in order.
- concatenate(Collection<T>, Collection<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Concatenates two lists into a new list.
- concatenate(T[], T...) - Static method in class org.plumelib.util.ArraysPlume
-
Concatenates two arrays.
- conjunction(String, List<? extends Object>) - Static method in class org.plumelib.util.StringsPlume
-
Creates a conjunction or disjunction, like "a", "a or b", and "a, b, or c".
- constructorComparator - Static variable in class org.plumelib.util.ClassDeterministic
-
Compares Constructor objects by signature: compares name, number of parameters, and parameter type names.
- ConstructorComparator() - Constructor for class org.plumelib.util.ClassDeterministic.ConstructorComparator
-
Create a new ConstructorComparator.
- contains(int) - Method in class org.plumelib.util.LimitedSizeIntSet
-
Returns true if this set contains the given element.
- contains(long) - Method in class org.plumelib.util.LimitedSizeLongSet
-
Returns true if this set contains the given element.
- contains(Object) - Method in class org.plumelib.util.ArrayMap.EntrySet
- contains(Object) - Method in class org.plumelib.util.ArrayMap.KeySet
- contains(Object) - Method in class org.plumelib.util.ArrayMap.Values
- contains(Object) - Method in class org.plumelib.util.ArraySet
- contains(Object) - Method in class org.plumelib.util.IdentityArraySet
- contains(Object) - Method in class org.plumelib.util.IdentityMostlySingletonSet
- contains(Object) - Method in class org.plumelib.util.MostlySingletonSet
- contains(T) - Method in class org.plumelib.util.LimitedSizeSet
-
Returns true if this set contains the given element.
- containsAll(Collection<?>) - Method in class org.plumelib.util.AbstractMostlySingletonSet
- containsEntry(Object, Object) - Method in class org.plumelib.util.ArrayMap
-
Returns true if this map contains the given mapping.
- containsKey(Object) - Method in class org.plumelib.util.ArrayMap
- containsKey(Object) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- containsValue(Object) - Method in class org.plumelib.util.ArrayMap
- containsValue(Object) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- copyInto(T[], int) - Method in class org.plumelib.util.ArraysPlume.ListOrArray
-
Copy the contents of this into the given array, starting at the given index in the array.
- count(String, int) - Static method in class org.plumelib.util.StringsPlume
-
Returns the number of times the character appears in the string.
- count(String, int) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- count(String, String) - Static method in class org.plumelib.util.StringsPlume
-
Returns the number of times the second string appears in the first.
- count(String, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- counter - Static variable in class org.plumelib.util.DeterministicObject
-
The number of objects created so far.
- countFormatArguments(String) - Static method in class org.plumelib.util.StringsPlume
-
Returns the number of arguments that the given format string takes.
- countFormatArguments(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- countLines(String) - Static method in class org.plumelib.util.FilesPlume
-
Count the number of lines in the specified file.
- countLines(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- createCombinations(int, int, List<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a list of lists of each combination (with repetition, but not permutations) of the specified objects starting at index
startoverdimsdimensions, fordims > 0. - createCombinations(int, int, int) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a list of lists of each combination (with repetition, but not permutations) of integers from start to cnt (inclusive) over arity dimensions.
- createLruCache(int) - Static method in class org.plumelib.util.CollectionsPlume
-
Creates a LRU cache.
- createTempDir(String, String) - Static method in class org.plumelib.util.FilesPlume
-
Creates an empty directory in the default temporary-file directory, using the given prefix and suffix to generate its name.
- createTempDir(String, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- createTempFile(String, String, FileAttribute<?>...) - Static method in class org.plumelib.util.FilesPlume
-
Creates a new empty file in the default temporary-file directory, using the given prefix and suffix strings to generate its name.
- createTempFile(Path, String, String, FileAttribute<?>...) - Static method in class org.plumelib.util.FilesPlume
-
Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.
- current - Variable in class org.plumelib.util.CollectionsPlume.FilteredIterator
-
The next object that this iterator will yield, or
CollectionsPlume.FilteredIterator.invalidTifCollectionsPlume.FilteredIterator.currentValidis false. - current - Variable in class org.plumelib.util.CollectionsPlume.MergedIterator
-
The current iterator (from
CollectionsPlume.MergedIterator.itorOfItors) that is being iterated over. - current - Variable in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
-
The next object that this iterator will return.
- currentIndex - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
-
Used only if nums != null, in which case it is an index into nums.
- currentIndex - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
-
Used only if nums != null, in which case it is an index into nums.
- currentMissing - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
-
The next element to be returned by the iterator.
- currentMissing - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
-
The next element to be returned by the iterator.
- currentNonmissing - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
-
The current element of the numbers not to include in the iterator.
- currentNonmissing - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
-
The current element of the numbers not to include in the iterator.
- currentValid - Variable in class org.plumelib.util.CollectionsPlume.FilteredIterator
-
True iff
CollectionsPlume.FilteredIterator.currentis an object from the wrapped iterator.
D
- deepCopy() - Method in interface org.plumelib.util.DeepCopyable
-
Returns a deep copy of this.
- deepCopy(C) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a copy of
orig, where each element of the result is a deep copy (according to theDeepCopyableinterface) of the corresponding element oforig. - deepCopy(M) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a copy of
orig, where each key and value in the result is a deep copy (according to theDeepCopyableinterface) of the corresponding element oforig. - deepCopy(IPair<T1, T2>) - Static method in class org.plumelib.util.IPair
-
Returns a deep copy of this: each element is a deep copy (according to the
DeepCopyableinterface) of the corresponding element of this. - deepCopy(MPair<T1, T2>) - Static method in class org.plumelib.util.MPair
-
Returns a deep copy of this: each element is a deep copy (according to the
DeepCopyableinterface) of the corresponding element of this. - DeepCopyable<T> - Interface in org.plumelib.util
-
An interface for types that implement the
DeepCopyable.deepCopy()method. - deepCopyFirst(IPair<T1, T2>) - Static method in class org.plumelib.util.IPair
-
Returns a copy, where the
firstelement is deep: thefirstelement is a deep copy (according to theDeepCopyableinterface), and thesecondelement is identical to the argument. - deepCopyFirst(MPair<T1, T2>) - Static method in class org.plumelib.util.MPair
-
Returns a copy, where the
firstelement is deep: thefirstelement is a deep copy (according to theDeepCopyableinterface), and thesecondelement is identical to the argument. - deepCopyOrNull(T2) - Static method in interface org.plumelib.util.DeepCopyable
-
Returns the deep copy of a non-null argument, or
nullfor anullargument. - deepCopySecond(IPair<T1, T2>) - Static method in class org.plumelib.util.IPair
-
Returns a copy, where the
secondelement is deep: thefirstelement is identical to the argument, and thesecondelement is a deep copy (according to theDeepCopyableinterface). - deepCopySecond(MPair<T1, T2>) - Static method in class org.plumelib.util.MPair
-
Returns a copy, where the
secondelement is deep: thefirstelement is identical to the argument, and thesecondelement is a deep copy (according to theDeepCopyableinterface). - deepCopyValues(M) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a copy of
orig, where each value of the result is a deep copy (according to theDeepCopyableinterface) of the corresponding value oforig, but the keys are the same objects. - deepEquals(Object, Object) - Static method in class org.plumelib.util.CollectionsPlume
-
Determines deep equality for the elements.
- deepEqualsUnderway - Static variable in class org.plumelib.util.CollectionsPlume
-
All calls to deepEquals that are currently underway.
- DEFAULT_RELATIVE_RATIO - Static variable in class org.plumelib.util.FuzzyFloat
-
Default relative difference between two values such that this class considers them equal.
- deleteDir(File) - Static method in class org.plumelib.util.FilesPlume
-
Deletes the directory at dir and all its files.
- deleteDir(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- deleteDir(String) - Static method in class org.plumelib.util.FilesPlume
-
Deletes the directory at dirName and all its files.
- deleteDir(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- DeterministicObject - Class in org.plumelib.util
-
This is a deterministic version of the
Objectclass. - DeterministicObject() - Constructor for class org.plumelib.util.DeterministicObject
-
Create a DeterministicObject.
- div(double, double) - Static method in class org.plumelib.util.MathPlume
-
Divides its arguments.
- div(int, int) - Static method in class org.plumelib.util.MathPlume
-
Divides its arguments.
- div(long, long) - Static method in class org.plumelib.util.MathPlume
-
Divides its arguments.
- dominators(Map<T, List<T>>) - Static method in class org.plumelib.util.GraphPlume
-
Computes, for each node in the graph, its set of (pre-)dominators.
- DOUBLE_FACTOR - Static variable in class org.plumelib.util.Intern
-
Another multiplicative constant for use in hashing function.
- DoubleArrayComparatorLexical() - Constructor for class org.plumelib.util.ArraysPlume.DoubleArrayComparatorLexical
-
Deprecated.
- DoubleArrayComparatorLexical() - Constructor for class org.plumelib.util.FuzzyFloat.DoubleArrayComparatorLexical
-
Create a new DoubleArrayComparatorLexical.
- DoubleArrayHasher() - Constructor for class org.plumelib.util.Intern.DoubleArrayHasher
-
Create a new DoubleArrayHasher.
- doubleArrays() - Static method in class org.plumelib.util.Intern
-
Returns all the interned double arrays.
- DoubleHasher() - Constructor for class org.plumelib.util.Intern.DoubleHasher
-
Create a new DoubleHasher.
- doubles() - Static method in class org.plumelib.util.Intern
-
Returns all the interned doubles.
- DummyReader() - Constructor for class org.plumelib.util.EntryReader.DummyReader
-
Deprecated.
- dumpHeap(String) - Static method in class org.plumelib.util.DumpHeap
-
Dumps a heap snapshot (of only the live objects) into a file.
- dumpHeap(String, boolean) - Static method in class org.plumelib.util.DumpHeap
-
Dumps a heap snapshot into a file.
- DumpHeap - Class in org.plumelib.util
-
Defines a static method
DumpHeap.dumpHeap(java.lang.String)that dumps the heap to an .hprof file. - DumpHeap() - Constructor for class org.plumelib.util.DumpHeap
-
Do not instantiate.
- dumpHeapMethod - Static variable in class org.plumelib.util.DumpHeap
-
The method com.sun.management.HotSpotDiagnosticMXBean#dumpHeap.
- duplicates(Collection<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns the elements (once each) that appear more than once in the given collection.
E
- e - Variable in class org.plumelib.util.CollectionsPlume.EnumerationIterator
-
The enumeration that this object wraps.
- elementRange(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the difference between the smallest and largest array elements.
- elementRange(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the difference between the smallest and largest array elements.
- EMPTY - Enum constant in enum org.plumelib.util.AbstractMostlySingletonSet.State
-
An empty set.
- end - Variable in class org.plumelib.util.Intern.Subsequence
-
The end index.
- Entry(int) - Constructor for class org.plumelib.util.ArrayMap.Entry
-
Creates a new map entry.
- Entry(String, String, String, long, boolean) - Constructor for class org.plumelib.util.EntryReader.Entry
-
Create an entry.
- EntryIterator() - Constructor for class org.plumelib.util.ArrayMap.EntryIterator
-
Creates a new EntryIterator.
- EntryReader - Class in org.plumelib.util
-
Class that reads records or "entries" from a file.
- EntryReader(InputStream) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that does not support comments or include directives.
- EntryReader(InputStream, String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that uses the default character set and does not support comments or include directives.
- EntryReader(InputStream, String, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader.
- EntryReader(InputStream, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that does not support comments or include directives.
- EntryReader(InputStream, String, String, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that uses the given character set.
- EntryReader(Reader) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that does not support comments or include directives.
- EntryReader(Reader, String, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader.
- EntryReader(File) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that does not support comments or include directives.
- EntryReader(File, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader.
- EntryReader(File, String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that does not support comments or include directives.
- EntryReader(String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that does not support comments or include directives.
- EntryReader(String, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create a new EntryReader starting with the specified file.
- EntryReader(String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that does not support comments or include directives.
- EntryReader(Path) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that does not support comments or include directives.
- EntryReader(Path, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader.
- EntryReader(Path, String) - Constructor for class org.plumelib.util.EntryReader
-
Create an EntryReader that does not support comments or include directives.
- EntryReader.DummyReader - Class in org.plumelib.util
-
A dummy Reader to be used when null is not acceptable.
- EntryReader.Entry - Class in org.plumelib.util
-
Descriptor for an entry (record, paragraph, etc.).
- EntryReader.FlnReader - Class in org.plumelib.util
-
Like LineNumberReader, but also has a filename field.
- entrySet - Variable in class org.plumelib.util.ArrayMap
-
The view of the entries.
- entrySet() - Method in class org.plumelib.util.ArrayMap
- entrySet() - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- EntrySet() - Constructor for class org.plumelib.util.ArrayMap.EntrySet
-
Creates a new EntrySet.
- entryStartRegex - Variable in class org.plumelib.util.EntryReader
-
Regular expression that starts a long entry.
- entryStopRegex - Variable in class org.plumelib.util.EntryReader
- EnumerationIterator(Enumeration<T>) - Constructor for class org.plumelib.util.CollectionsPlume.EnumerationIterator
-
Create an Iterator that yields the elements of the given Enumeration.
- eq - Variable in class org.plumelib.util.MultiRandSelector
-
Partioner that determines how to partition the objects.
- eq(double, double) - Method in class org.plumelib.util.FuzzyFloat
-
Test d1 and d2 for equality using the current ratio.
- equalFiles(String, String) - Static method in class org.plumelib.util.FilesPlume
-
Returns true iff files have the same contents.
- equalFiles(String, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- equalFiles(String, String, boolean) - Static method in class org.plumelib.util.FilesPlume
-
Returns true iff the files have the same contents.
- equalFiles(String, String, boolean) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- equals(Object) - Method in class org.plumelib.util.ArrayMap.Entry
- equals(Object) - Method in class org.plumelib.util.Intern.Subsequence
- equals(Object) - Method in class org.plumelib.util.IPair
- equals(Object) - Method in class org.plumelib.util.MPair
- equals(Object) - Method in class org.plumelib.util.Pair
-
Deprecated.
- equals(Object) - Method in class org.plumelib.util.WeakIdentityPair
- equals(Object) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- equals(Object, Object) - Method in class org.plumelib.util.Intern.DoubleArrayHasher
- equals(Object, Object) - Method in class org.plumelib.util.Intern.DoubleHasher
- equals(Object, Object) - Method in class org.plumelib.util.Intern.IntArrayHasher
- equals(Object, Object) - Method in class org.plumelib.util.Intern.IntegerHasher
- equals(Object, Object) - Method in class org.plumelib.util.Intern.LongArrayHasher
- equals(Object, Object) - Method in class org.plumelib.util.Intern.LongHasher
- equals(Object, Object) - Method in class org.plumelib.util.Intern.ObjectArrayHasher
- equals(Object, Object) - Method in class org.plumelib.util.Intern.StringArrayHasher
- equals(Object, Object) - Method in class org.plumelib.util.Intern.SubsequenceHasher
- equalsSubsequence(Intern.Subsequence<T>) - Method in class org.plumelib.util.Intern.Subsequence
-
Returns true if this object equals the given one.
- escapeJava(char) - Static method in class org.plumelib.util.StringsPlume
-
Deprecated.
- escapeJava(char) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- escapeJava(Character) - Static method in class org.plumelib.util.StringsPlume
-
Deprecated.
- escapeJava(Character) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- escapeJava(String) - Static method in class org.plumelib.util.StringsPlume
-
Escapes a String so that it is expressible in a string literal in Java source code.
- escapeJava(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- escapeNonASCII(char) - Static method in class org.plumelib.util.StringsPlume
-
Like escapeJava(), but quote more characters so that the result is sure to be printable ASCII.
- escapeNonASCII(String) - Static method in class org.plumelib.util.StringsPlume
-
Escape unprintable characters in the target, following the usual Java backslash conventions, so that the result is sure to be printable ASCII.
- escapeNonASCII(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- escapeNonJava(Character) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- escapeNonJava(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- everyStringMatchesSomeRegex(Collection<String>, Collection<String>) - Static method in class org.plumelib.util.RegexUtil
-
Return true if every string is matched by at least one regex.
- exactComparisons - Variable in class org.plumelib.util.FuzzyFloat
-
True if this class does approximate (fuzzy) arithmetic comparisons.
- expandFilename(File) - Static method in class org.plumelib.util.FilesPlume
-
Does tilde expansion on a file name (to the user's home directory).
- expandFilename(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- expandFilename(String) - Static method in class org.plumelib.util.FilesPlume
-
Does tilde expansion on a file name (to the user's home directory).
- expandFilename(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
F
- FACTOR - Static variable in class org.plumelib.util.Intern
-
Multiplicative constant for use in hashing function.
- fieldComparator - Static variable in class org.plumelib.util.ClassDeterministic
-
Compares Field objects by name.
- FieldComparator() - Constructor for class org.plumelib.util.ClassDeterministic.FieldComparator
-
Create a new FieldComparator.
- fileContents(File) - Static method in class org.plumelib.util.FilesPlume
-
Reads the entire contents of the file and returns it as a string.
- fileInputStream(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- fileInputStream(Path) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- FileIOException - Exception in org.plumelib.util
-
This class extends IOException by also reporting a file name and line number at which the exception occurred.
- FileIOException() - Constructor for exception org.plumelib.util.FileIOException
-
Create a dummy FileIOException.
- FileIOException(LineNumberReader, String, Throwable) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(LineNumberReader, Throwable) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(LineNumberReader, File, Throwable) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(String) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException with no known file name or line number (which is kind of pointless; you might as well just have a regular exception).
- FileIOException(String, LineNumberReader) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(String, LineNumberReader, String) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(String, LineNumberReader, String, Throwable) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(String, LineNumberReader, Throwable) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(String, LineNumberReader, File) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(String, LineNumberReader, File, Throwable) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(String, String, int) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(String, Throwable) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(String, Throwable, String, int) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(Throwable) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- fileLines(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- filename - Variable in class org.plumelib.util.EntryReader.Entry
-
Filename in which the entry was found.
- filename - Variable in class org.plumelib.util.EntryReader.FlnReader
-
The file being read.
- fileName - Variable in exception org.plumelib.util.FileIOException
-
The file being read when the IOException occurred.
- fileName - Variable in class org.plumelib.util.FileWriterWithName
-
The file being written by this.
- fileReader(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- fileReader(File, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- fileReader(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- fileReader(Path) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- fileReader(Path, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- FilesPlume - Class in org.plumelib.util
-
Utility methods that create and manipulate files, directories, streams, readers, and writers.
- FilesPlume() - Constructor for class org.plumelib.util.FilesPlume
-
This class is a collection of methods; it does not represent anything.
- FilesPlume.WildcardFilter - Class in org.plumelib.util
-
A FilenameFilter that accepts files whose name matches the given wildcard.
- FileWriterWithName - Class in org.plumelib.util
-
Just like
FileWriter, but adds aFileWriterWithName.getFileName()method and overrides#toString()to give the file name. - FileWriterWithName(File) - Constructor for class org.plumelib.util.FileWriterWithName
-
Constructs a FileWriterWithName object given a File object.
- FileWriterWithName(File, boolean) - Constructor for class org.plumelib.util.FileWriterWithName
-
Constructs a FileWriterWithName object given a File object.
- FileWriterWithName(String) - Constructor for class org.plumelib.util.FileWriterWithName
-
Constructs a FileWriterWithName object given a file name.
- FileWriterWithName(String, boolean) - Constructor for class org.plumelib.util.FileWriterWithName
-
Constructs a FileWriterWithName object given a file name with a boolean indicating whether or not to append the data written.
- filter - Variable in class org.plumelib.util.CollectionsPlume.FilteredIterator
-
The predicate that determines which elements to retain.
- filter(Collection<T>, Predicate<? super T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a new list containing only the elements for which the filter returns true.
- Filter<T extends @Nullable Object> - Interface in org.plumelib.util
-
Interface for things that make boolean decisions.
- FilteredIterator(Iterator<T>, Filter<T>) - Constructor for class org.plumelib.util.CollectionsPlume.FilteredIterator
-
Create an iterator that only returns elements of
itorthat match the given Filter. - first - Variable in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
-
The first object yielded by the wrapped iterator.
- first - Variable in class org.plumelib.util.IPair
-
The first element of the pair.
- first - Variable in class org.plumelib.util.MPair
-
The first element of the pair.
- firstLine - Variable in class org.plumelib.util.EntryReader.Entry
-
First line of the entry.
- firstLineSeparator(String) - Static method in class org.plumelib.util.StringsPlume
-
Returns the first line separator in the given string, or "\n" if the string contains none.
- firstNonNull(T, T) - Static method in class org.plumelib.util.UtilPlume
-
Return the first argument if it is non-null, otherwise return the second argument.
- FlnReader(Reader, String) - Constructor for class org.plumelib.util.EntryReader.FlnReader
-
Create a FlnReader.
- FlnReader(String) - Constructor for class org.plumelib.util.EntryReader.FlnReader
-
Create a FlnReader.
- fnCompose(int[], int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the composition of the given two functions, all of which are represented as arrays.
- fnIdentity(int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array [0..length).
- fnInverse(int[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the inverse of the given function, which is represented as an array.
- fnInversePermutation(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Requires that fnIsPermutation(a) holds.
- fnIsPermutation(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true if the array is a permutation of [0..a.length).
- fnIsTotal(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff the array does not contain -1.
- forEach(BiConsumer<? super K, ? super V>) - Method in class org.plumelib.util.ArrayMap
- forEach(BiConsumer<? super K, ? super V>) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- forEach(Consumer<? super E>) - Method in class org.plumelib.util.ArraySet
- forEach(Consumer<? super E>) - Method in class org.plumelib.util.IdentityArraySet
- forEach(Consumer<? super Map.Entry<K, V>>) - Method in class org.plumelib.util.ArrayMap.EntrySet
- forEach(Consumer<? super K>) - Method in class org.plumelib.util.ArrayMap.KeySet
- forEach(Consumer<? super V>) - Method in class org.plumelib.util.ArrayMap.Values
- formatSpecifier - Static variable in class org.plumelib.util.StringsPlume
-
Regex that matches a format specifier.
- FuzzyFloat - Class in org.plumelib.util
-
Routines for doing approximate ('fuzzy') floating-point comparisons.
- FuzzyFloat() - Constructor for class org.plumelib.util.FuzzyFloat
-
Creates a FuzzyFloat with the default relativeRatio value of .0001.
- FuzzyFloat(double) - Constructor for class org.plumelib.util.FuzzyFloat
-
Creates a FuzzyFloat.
- FuzzyFloat.DoubleArrayComparatorLexical - Class in org.plumelib.util
-
Lexically compares two double arrays.
G
- gc() - Static method in class org.plumelib.util.SystemPlume
-
Perform garbage collection.
- gc() - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.use
SystemPlume.gc() - gcd(double[]) - Static method in class org.plumelib.util.MathPlume
-
Returns the greatest common divisor of the elements of double array a.
- gcd(double, double) - Static method in class org.plumelib.util.MathPlume
-
Returns the greatest common divisor of the two arguments.
- gcd(int[]) - Static method in class org.plumelib.util.MathPlume
-
Returns the greatest common divisor of the elements of int array a.
- gcd(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns the greatest common divisor of the two arguments.
- gcd(long[]) - Static method in class org.plumelib.util.MathPlume
-
Returns the greatest common divisor of the elements of long array a.
- gcd(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns the greatest common divisor of the two arguments.
- gcdDifferences(double[]) - Static method in class org.plumelib.util.MathPlume
-
Returns the gcd (greatest common divisor) of the differences between the elements of double array a.
- gcdDifferences(int[]) - Static method in class org.plumelib.util.MathPlume
-
Returns the gcd (greatest common divisor) of the differences between the elements of int array a.
- gcdDifferences(long[]) - Static method in class org.plumelib.util.MathPlume
-
Returns the gcd (greatest common divisor) of the differences between the elements of long array a.
- gcHistory - Static variable in class org.plumelib.util.SystemPlume
-
The history of recent garbage collection runs.
- GcHistoryItem(long, long) - Constructor for class org.plumelib.util.SystemPlume.GcHistoryItem
-
Creates a new GcHistoryItem.
- gcPercentage() - Static method in class org.plumelib.util.SystemPlume
-
Calls `gcPercentage(60)`.
- gcPercentage(int) - Static method in class org.plumelib.util.SystemPlume
-
Returns the fraction of time spent garbage collecting, in the past
secondsseconds. - gcUsageMessage(double, int) - Static method in class org.plumelib.util.SystemPlume
-
If the fraction of time spent garbage collecting in the past
secondsseconds is less thancpuThreshold, returns null. - generator - Variable in class org.plumelib.util.RandomSelector
-
The Random instance to use (for reproducibility).
- get(Object) - Method in class org.plumelib.util.ArrayMap
- get(Object) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- get(E) - Method in class org.plumelib.util.UniqueIdMap
-
Get the unique ID for the given object.
- getA() - Method in class org.plumelib.util.WeakIdentityPair
-
Return the first element of the pair, or null if it has been garbage-collected.
- getAnnotations(Class<?>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getAnnotations(), but returns the methods in deterministic order. - getB() - Method in class org.plumelib.util.WeakIdentityPair
-
Return the second element of the pair, or null if it has been garbage-collected.
- getBooleanProperty(Properties, String) - Static method in class org.plumelib.util.UtilPlume
-
Determines whether a property has a string value that represents true: "true", "yes", or "1".
- getBooleanProperty(Properties, String, boolean) - Static method in class org.plumelib.util.UtilPlume
-
Determines whether a property has a string value that represents true: "true", "yes", or "1".
- getBooleanSystemProperty(String) - Static method in class org.plumelib.util.SystemPlume
-
Determines whether a system property has a string value that represents true: "true", "yes", or "1".
- getBooleanSystemProperty(String, boolean) - Static method in class org.plumelib.util.SystemPlume
-
Determines whether a system property has a string value that represents true: "true", "yes", or "1".
- getByteCount(byte) - Static method in class org.plumelib.util.FilesPlume
-
Returns the number of bytes in a UTF-8 character based on the bit pattern of the supplied byte.
- getClassAndUid() - Method in interface org.plumelib.util.UniqueId
-
Returns the simple name of the class and the unique ID of this object.
- getClasses(Class<?>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getClasses(), but returns the classes in deterministic order. - getCollectionCount() - Static method in class org.plumelib.util.SystemPlume
-
Returns the number of garbage collections that have occurred.
- getCollectionTime() - Static method in class org.plumelib.util.SystemPlume
-
Returns the cumulative garbage collection time in milliseconds, across all threads.
- getConstructors(Class<?>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getConstructors(), but returns the methods in deterministic order. - getDeclaredAnnotations(Class<?>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getDeclaredAnnotations(), but returns the methods in deterministic order. - getDeclaredClasses(Class<?>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getDeclaredClasses(), but returns the classes in deterministic order. - getDeclaredConstructors(Class<?>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getDeclaredConstructors(), but returns the methods in deterministic order. - getDeclaredFields(Class<?>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getDeclaredFields(), but returns the methods in deterministic order. - getDeclaredMethods(Class<?>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getDeclaredMethods(), but returns the methods in deterministic order. - getDescription() - Method in exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Retrieves the description of the error.
- getDescription(Pattern) - Method in class org.plumelib.util.EntryReader.Entry
-
Returns a substring of the entry body that matches the specified regular expression.
- getEntry() - Method in class org.plumelib.util.EntryReader
-
Returns the next entry (paragraph) in the file.
- getEnumConstants(Class<T>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getEnumConstants(), but returns the methods in deterministic order. - getFields(Class<?>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getFields(), but returns the methods in deterministic order. - getFileName() - Method in class org.plumelib.util.EntryReader
-
Returns the current filename.
- getFileName() - Method in class org.plumelib.util.FileWriterWithName
-
Returns the name of the file being written by this.
- getFirst() - Method in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
-
Returns the first element of the iterator that was used to construct this.
- getFromSet(Set<? extends Object>, Object) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns the object in the given set that is equal to key.
- getGroupCount(Pattern) - Static method in class org.plumelib.util.RegexUtil
-
Returns the count of groups in the argument.
- getIndex() - Method in exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Retrieves the error index.
- getKey() - Method in class org.plumelib.util.ArrayMap.Entry
- getLast() - Method in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
-
Returns the last element of the iterator that was used to construct this.
- getLineNumber() - Method in class org.plumelib.util.EntryReader
-
Returns the current line number in the current file.
- getLineNumber(LineNumberReader) - Static method in exception org.plumelib.util.FileIOException
-
Infers the line number from the given
reader. - getMessage() - Method in exception org.plumelib.util.FileIOException
- getMessage() - Method in exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Returns a multi-line string containing the description of the syntax error and its index, the erroneous regular-expression pattern, and a visual indication of the error index within the pattern.
- getMethods(Class<?>) - Static method in class org.plumelib.util.ClassDeterministic
-
Like
Class.getMethods(), but returns the methods in deterministic order. - getNextLine() - Method in class org.plumelib.util.EntryReader
-
Reads the next line from the current reader.
- getOrDefault(Object, V) - Method in class org.plumelib.util.ArrayMap
- getOrDefault(Object, V) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- getOrNull(int) - Method in class org.plumelib.util.ArrayMap
-
Returns the value at the given index, or null if the index is -1.
- getPattern() - Method in exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Retrieves the erroneous regular-expression pattern.
- getUid() - Method in interface org.plumelib.util.UniqueId
-
Returns the unique ID of this object.
- getValue() - Method in class org.plumelib.util.ArrayMap.Entry
- getValues() - Method in class org.plumelib.util.RandomSelector
-
Returns values, modifies none.
- GraphPlume - Class in org.plumelib.util
-
Graph utility methods.
- GraphPlume() - Constructor for class org.plumelib.util.GraphPlume
-
This class is a collection of methods; it does not represent anything.
- grow() - Method in class org.plumelib.util.ArrayMap
-
Increases the capacity of the arrays.
- grow() - Method in class org.plumelib.util.ArraySet
-
Increases the capacity of the array.
- grow() - Method in class org.plumelib.util.IdentityArraySet
-
Increases the capacity of the array.
- gt(double, double) - Method in class org.plumelib.util.FuzzyFloat
-
test d1 and d2 for
d1 > d2. - gte(double, double) - Method in class org.plumelib.util.FuzzyFloat
-
test d1 and d2 for
d1 >= d2.
H
- hasDuplicates(boolean[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a contains duplicate elements.
- hasDuplicates(byte[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a contains duplicate elements.
- hasDuplicates(char[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a contains duplicate elements.
- hasDuplicates(double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a contains duplicate elements.
- hasDuplicates(float[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a contains duplicate elements.
- hasDuplicates(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a contains duplicate elements.
- hasDuplicates(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a contains duplicate elements.
- hasDuplicates(short[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a contains duplicate elements.
- hasDuplicates(Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a contains duplicate elements.
- hasDuplicates(String[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a contains duplicate elements.
- hasDuplicates(List<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns true iff the list does not contain duplicate elements.
- hash(double) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hash(double[]) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hash(double[], double[]) - Static method in class org.plumelib.util.UtilPlume
-
Returns a hash of the arguments.
- hash(double, double) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hash(double, double, double) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hash(long) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.use
Long.hashCode() - hash(long[]) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hash(long[], long[]) - Static method in class org.plumelib.util.UtilPlume
-
Returns a hash of the arguments.
- hash(long, long) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hash(long, long, long) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hash(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hash(String[]) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hash(String, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hash(String, String, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- hashCode - Variable in class org.plumelib.util.IPair
-
The cached hash code.
- hashCode - Variable in class org.plumelib.util.WeakIdentityPair
-
The hash code of this.
- hashCode() - Method in class org.plumelib.util.ArrayMap.Entry
- hashCode() - Method in class org.plumelib.util.DeterministicObject
- hashCode() - Method in class org.plumelib.util.Intern.Subsequence
- hashCode() - Method in class org.plumelib.util.IPair
- hashCode() - Method in class org.plumelib.util.MPair
- hashCode() - Method in class org.plumelib.util.Pair
-
Deprecated.
- hashCode() - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- hashCode() - Method in class org.plumelib.util.WeakIdentityPair
- hashCode(Object) - Method in class org.plumelib.util.Intern.DoubleArrayHasher
- hashCode(Object) - Method in class org.plumelib.util.Intern.DoubleHasher
- hashCode(Object) - Method in class org.plumelib.util.Intern.IntArrayHasher
- hashCode(Object) - Method in class org.plumelib.util.Intern.IntegerHasher
- hashCode(Object) - Method in class org.plumelib.util.Intern.LongArrayHasher
- hashCode(Object) - Method in class org.plumelib.util.Intern.LongHasher
- hashCode(Object) - Method in class org.plumelib.util.Intern.ObjectArrayHasher
- hashCode(Object) - Method in class org.plumelib.util.Intern.StringArrayHasher
- hashCode(Object) - Method in class org.plumelib.util.Intern.SubsequenceHasher
- hasMoreElements() - Method in class org.plumelib.util.CollectionsPlume.IteratorEnumeration
- hasNext() - Method in class org.plumelib.util.ArrayMap.ArrayMapIterator
-
Returns true if this has another element.
- hasNext() - Method in class org.plumelib.util.ArraySet.ArraySetIterator
-
Returns true if this has another element.
- hasNext() - Method in class org.plumelib.util.CollectionsPlume.EnumerationIterator
- hasNext() - Method in class org.plumelib.util.CollectionsPlume.FilteredIterator
- hasNext() - Method in class org.plumelib.util.CollectionsPlume.MergedIterator
- hasNext() - Method in class org.plumelib.util.CollectionsPlume.MergedIterator2
- hasNext() - Method in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
- hasNext() - Method in class org.plumelib.util.CombinationIterator
- hasNext() - Method in class org.plumelib.util.EntryReader
-
Returns whether or not there is another line to read.
- hasNext() - Method in class org.plumelib.util.IdentityArraySet.ArraySetIterator
-
Returns true if this has another element.
- hasNext() - Method in class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
- hasNext() - Method in class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
- hasNext() - Method in class org.plumelib.util.OrderedPairIterator
- hasNoDuplicates(boolean[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a does not contain duplicate elements.
- hasNoDuplicates(byte[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a does not contain duplicate elements.
- hasNoDuplicates(char[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a does not contain duplicate elements.
- hasNoDuplicates(double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a does not contain duplicate elements.
- hasNoDuplicates(float[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a does not contain duplicate elements.
- hasNoDuplicates(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a does not contain duplicate elements.
- hasNoDuplicates(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a does not contain duplicate elements.
- hasNoDuplicates(short[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a does not contain duplicate elements.
- hasNoDuplicates(Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a does not contain duplicate elements.
- hasNoDuplicates(String[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true iff a does not contain duplicate elements.
- hasNoDuplicates(List<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns true iff the list does not contain duplicate elements.
- hotspotMBean - Static variable in class org.plumelib.util.DumpHeap
-
The HotSpot Diagnostic MBean.
I
- IdentityArraySet<E extends @UnknownSignedness Object> - Class in org.plumelib.util
-
A set backed by an array.
- IdentityArraySet() - Constructor for class org.plumelib.util.IdentityArraySet
-
Constructs an empty
IdentityArraySetwith the default initial capacity. - IdentityArraySet(int) - Constructor for class org.plumelib.util.IdentityArraySet
-
Constructs an empty
IdentityArraySetwith the specified initial capacity. - IdentityArraySet(E[], int) - Constructor for class org.plumelib.util.IdentityArraySet
-
Private constructor.
- IdentityArraySet(Collection<? extends E>) - Constructor for class org.plumelib.util.IdentityArraySet
-
Constructs a new
IdentityArraySetwith the same elements as the given collection. - IdentityArraySet.ArraySetIterator - Class in org.plumelib.util
-
An iterator over the IdentityArraySet.
- IdentityMostlySingletonSet<T> - Class in org.plumelib.util
-
An arbitrary-size set that is very efficient (more efficient than HashSet) for 0 and 1 elements.
- IdentityMostlySingletonSet() - Constructor for class org.plumelib.util.IdentityMostlySingletonSet
-
Create an IdentityMostlySingletonSet.
- IdentityMostlySingletonSet(T) - Constructor for class org.plumelib.util.IdentityMostlySingletonSet
-
Create an IdentityMostlySingletonSet containing one value.
- immutableTypeNames - Static variable in class org.plumelib.util.ImmutableTypes
-
The names of the immutable types.
- ImmutableTypes - Class in org.plumelib.util
-
Records all the immutable types in the JDK, and can be queried.
- ImmutableTypes() - Constructor for class org.plumelib.util.ImmutableTypes
-
Do not instantiate.
- includeRegex - Variable in class org.plumelib.util.EntryReader
-
Regular expression that specifies an include file.
- incrementMap(Map<K, Integer>, K) - Static method in class org.plumelib.util.CollectionsPlume
-
Increment the Integer which is indexed by key in the Map.
- incrementMap(Map<K, Integer>, K, int) - Static method in class org.plumelib.util.CollectionsPlume
-
Increment the Integer which is indexed by key in the Map.
- indentLines(int, Object) - Static method in class org.plumelib.util.StringsPlume
-
Returns the printed representation of a value, with each line indented by
indentspaces. - indentLines(int, Object) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- indentLinesExceptFirst(int, Object) - Static method in class org.plumelib.util.StringsPlume
-
Returns the printed representation of a value, with each line (except the first) indented by
indentspaces. - indentLinesExceptFirst(int, Object) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- index - Variable in class org.plumelib.util.ArrayMap.ArrayMapIterator
-
The first unread index; the index of the next value to return.
- index - Variable in class org.plumelib.util.ArrayMap.Entry
-
The index.
- index - Variable in class org.plumelib.util.ArraySet.ArraySetIterator
-
The first unread index; the index of the next value to return.
- index - Variable in class org.plumelib.util.IdentityArraySet.ArraySetIterator
-
The first unread index; the index of the next value to return.
- indexOf(int[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array.
- indexOf(int[], int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the array that matches the given array elementwise.
- indexOf(int[], int, int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array, within the given boundaries.
- indexOf(long[], long) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array.
- indexOf(long[], long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the array that matches the given array elementwise.
- indexOf(long[], long, int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array, within the given boundaries.
- indexOf(boolean[], boolean) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array.
- indexOf(boolean[], boolean[]) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the array that matches the given array elementwise.
- indexOf(boolean[], boolean, int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array, within the given boundaries.
- indexOf(double[], double) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array.
- indexOf(double[], double) - Method in class org.plumelib.util.FuzzyFloat
-
Searches for the first occurrence of elt in a.
- indexOf(double[], double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the array that matches the given array elementwise.
- indexOf(double[], double[]) - Method in class org.plumelib.util.FuzzyFloat
-
Searches for the first subsequence of
athat matchessubelementwise. - indexOf(Object) - Method in class org.plumelib.util.ArraySet
-
Returns the index of the given value, or -1 if it does not appear.
- indexOf(Object) - Method in class org.plumelib.util.IdentityArraySet
-
Returns the index of the given value, or -1 if it does not appear.
- indexOf(Object[], Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the array that matches the given array elementwise, testing for equality using the equals method.
- indexOf(Object[], List<? extends Object>) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the array that matches the given list elementwise, testing for equality using the equals method.
- indexOf(T[], Object) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array, testing for equality using the equals method.
- indexOf(T[], Object, int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array, within the given boundaries, testing for equality using the equals method.
- indexOf(List<?>, Object, int) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns the first index of the given value in the list, starting at the given index.
- indexOf(List<? extends Object>, Object, int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the list, within the given boundaries, testing for equality using the equals method.
- indexOf(List<? extends Object>, Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the list that matches the given array elementwise, testing for equality using the equals method.
- indexOf(List<? extends Object>, Object) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the list, testing for equality using the equals method.
- indexOf(List<T>, List<T>) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the list that matches the given list elementwise, testing for equality using the equals method.
- indexOfEq(Object[], Object) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array, testing for equality using == (not the equals method).
- indexOfEq(Object[], Object, int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array, within the given boundaries, testing for equality using == (not the equals method).
- indexOfEq(Object[], Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the array that matches the given array elementwise, testing for equality using == (not the equals method).
- indexOfEq(Object[], List<T>) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the array that matches the given list elementwise, testing for equality using == (not the equals method).
- indexOfEq(List<? extends Object>, Object) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the list, testing for equality using == (not the equals method).
- indexOfEq(List<? extends Object>, Object, int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the list, within the given boundaries, testing for equality using == (not the equals method).
- indexOfEq(List<T>, Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the list that matches the given array elementwise, testing for equality using == (not the equals method).
- indexOfEq(List<T>, List<T>) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first subsequence of the list that matches the given list elementwise, testing for equality using == (not the equals method).
- indexOfKey(Object) - Method in class org.plumelib.util.ArrayMap
-
Returns the index of the given key, or -1 if it does not appear.
- indexOfValue(Object) - Method in class org.plumelib.util.ArrayMap
-
Returns the index of the given value, or -1 if it does not appear.
- inferLineSeparator(File) - Static method in class org.plumelib.util.FilesPlume
-
Tries to infer the line separator used in a file.
- inferLineSeparator(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- inferLineSeparator(String) - Static method in class org.plumelib.util.FilesPlume
-
Tries to infer the line separator used in a file.
- inferLineSeparator(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- initializeFields() - Static method in class org.plumelib.util.DumpHeap
-
Initialize the fields of this class.
- initialSizeModificationCount - Variable in class org.plumelib.util.ArrayMap.ArrayMapIterator
-
The modification count when the iterator is created, for fail-fast.
- initialSizeModificationCount - Variable in class org.plumelib.util.ArraySet.ArraySetIterator
-
The modification count when the iterator is created, for fail-fast.
- initialSizeModificationCount - Variable in class org.plumelib.util.IdentityArraySet.ArraySetIterator
-
The modification count when the iterator is created, for fail-fast.
- instance - Static variable in class org.plumelib.util.ToStringComparator
-
The unique instance (this class is a singleton).
- IntArrayComparatorLengthFirst() - Constructor for class org.plumelib.util.ArraysPlume.IntArrayComparatorLengthFirst
-
Deprecated.
- IntArrayComparatorLexical() - Constructor for class org.plumelib.util.ArraysPlume.IntArrayComparatorLexical
-
Deprecated.
- IntArrayHasher() - Constructor for class org.plumelib.util.Intern.IntArrayHasher
-
Create a new IntArrayHasher.
- intArrays() - Static method in class org.plumelib.util.Intern
-
Returns all the interned int arrays.
- IntegerHasher() - Constructor for class org.plumelib.util.Intern.IntegerHasher
-
Create a new IntegerHasher.
- integers() - Static method in class org.plumelib.util.Intern
-
Returns all the interned integers.
- intern(double) - Static method in class org.plumelib.util.Intern
-
Interns a double A no-op.
- intern(double[]) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) a double[].
- intern(int[]) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) an int[].
- intern(long) - Static method in class org.plumelib.util.Intern
-
Interns a long.
- intern(long[]) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) a long[].
- intern(Object[]) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) an Object[].
- intern(String[]) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) a String[].
- intern(String) - Static method in class org.plumelib.util.Intern
-
Interns a String.
- intern(Object) - Static method in class org.plumelib.util.Intern
-
Convenience method to intern an Object when we don't know its run-time type.
- intern(Double) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) a Double.
- intern(Integer) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) an Integer.
- intern(Long) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) a Long.
- Intern - Class in org.plumelib.util
-
Utilities for interning objects.
- Intern() - Constructor for class org.plumelib.util.Intern
-
This class is a collection of methods; it does not represent anything.
- Intern.DoubleArrayHasher - Class in org.plumelib.util
-
Hasher object which hashes and compares double[] objects according to their contents.
- Intern.DoubleHasher - Class in org.plumelib.util
-
Hasher object which hashes and compares Doubles.
- Intern.IntArrayHasher - Class in org.plumelib.util
-
Hasher object which hashes and compares int[] objects according to their contents.
- Intern.IntegerHasher - Class in org.plumelib.util
-
Hasher object which hashes and compares Integers.
- Intern.LongArrayHasher - Class in org.plumelib.util
-
Hasher object which hashes and compares long[] objects according to their contents.
- Intern.LongHasher - Class in org.plumelib.util
-
Hasher object which hashes and compares Longs.
- Intern.ObjectArrayHasher - Class in org.plumelib.util
-
Hasher object which hashes and compares Object[] objects according to their contents.
- Intern.StringArrayHasher - Class in org.plumelib.util
-
Hasher object which hashes and compares String[] objects according to their contents.
- Intern.Subsequence<T extends @Interned Object> - Class in org.plumelib.util
-
A subsequence view on a sequence.
- Intern.SubsequenceHasher<T extends @Interned Object> - Class in org.plumelib.util
-
Hasher object which hashes and compares sequences according to their contents.
- internedDouble(double) - Static method in class org.plumelib.util.Intern
-
Returns an interned Double with value i.
- internedDouble(String) - Static method in class org.plumelib.util.Intern
-
Returns an interned Double with value parsed from the string.
- internedDoubleArrays - Static variable in class org.plumelib.util.Intern
-
All the interned Double arrays.
- internedDoubleNaN - Static variable in class org.plumelib.util.Intern
-
The interned NaN.
- internedDoubles - Static variable in class org.plumelib.util.Intern
-
All the interned Doubles.
- internedDoubleSubsequence - Static variable in class org.plumelib.util.Intern
-
All the interned Double subsequences.
- internedDoubleZero - Static variable in class org.plumelib.util.Intern
-
The interned Double zero.
- internedIntArrays - Static variable in class org.plumelib.util.Intern
-
All the interned Int arrays.
- internedInteger(int) - Static method in class org.plumelib.util.Intern
-
Returns an interned Integer with value i.
- internedInteger(String) - Static method in class org.plumelib.util.Intern
-
Returns an interned Integer with value parsed from the string.
- internedIntegers - Static variable in class org.plumelib.util.Intern
-
All the interned Integers.
- internedIntSubsequence - Static variable in class org.plumelib.util.Intern
-
All the interned Int subsequences.
- internedLong(long) - Static method in class org.plumelib.util.Intern
-
Returns an interned Long with value i.
- internedLong(String) - Static method in class org.plumelib.util.Intern
-
Returns an interned Long with value parsed from the string.
- internedLongArrays - Static variable in class org.plumelib.util.Intern
-
All the interned Long arrays.
- internedLongs - Static variable in class org.plumelib.util.Intern
-
All the interned Longs.
- internedLongSubsequence - Static variable in class org.plumelib.util.Intern
-
All the interned Long subsequences.
- internedObjectArrays - Static variable in class org.plumelib.util.Intern
-
All the interned Object arrays.
- internedObjectSubsequence - Static variable in class org.plumelib.util.Intern
-
All the interned Object subsequences.
- internedStringArrays - Static variable in class org.plumelib.util.Intern
-
All the interned String arrays.
- internedStringSubsequence - Static variable in class org.plumelib.util.Intern
-
All the interned String subsequences.
- internStrings(String[]) - Static method in class org.plumelib.util.Intern
-
Replace each element of the array by its interned version.
- internSubsequence(double[], int, int) - Static method in class org.plumelib.util.Intern
-
Returns a subsequence of seq from start to end that is interned.
- internSubsequence(int[], int, int) - Static method in class org.plumelib.util.Intern
-
Returns an interned subsequence of seq from start (inclusive) to end (exclusive).
- internSubsequence(long[], int, int) - Static method in class org.plumelib.util.Intern
-
Returns a subsequence of seq from start to end that is interned.
- internSubsequence(Object[], int, int) - Static method in class org.plumelib.util.Intern
-
Returns a subsequence of seq from start to end that is interned.
- internSubsequence(String[], int, int) - Static method in class org.plumelib.util.Intern
-
Returns a subsequence of seq from start to end that is interned.
- intersectionCardinality(BitSet, BitSet) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns the cardinality of the intersection of the two BitSets.
- intersectionCardinality(BitSet, BitSet) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.use CollectionsPlume.intersectionCardinality
- intersectionCardinality(BitSet, BitSet, BitSet) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns the cardinality of the intersection of the three BitSets.
- intersectionCardinality(BitSet, BitSet, BitSet) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.use CollectionsPlume.intersectionCardinality
- intersectionCardinalityAtLeast(BitSet, BitSet, int) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns true if the cardinality of the intersection of the two BitSets is at least the given value.
- intersectionCardinalityAtLeast(BitSet, BitSet, int) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.use CollectionsPlume.intersectionCardinalityAtLeast
- intersectionCardinalityAtLeast(BitSet, BitSet, BitSet, int) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns true if the cardinality of the intersection of the three BitSets is at least the given value.
- intersectionCardinalityAtLeast(BitSet, BitSet, BitSet, int) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.use CollectionsPlume.intersectionCardinalityAtLeast
- invalidT - Variable in class org.plumelib.util.CollectionsPlume.FilteredIterator
-
A marker object, distinct from any object that the iterator can return.
- IPair<V1,
V2> - Class in org.plumelib.util -
Immutable pair class.
- IPair(V1, V2) - Constructor for class org.plumelib.util.IPair
-
Creates a new immutable pair.
- isBlank(String) - Static method in class org.plumelib.util.StringsPlume
-
Returns true if the string contains only white space codepoints, otherwise false.
- isElemMatch(double[], double[]) - Method in class org.plumelib.util.FuzzyFloat
-
Determines whether or not a1 and a2 are set equivalent (contain only the same elements).
- isEmpty() - Method in class org.plumelib.util.AbstractMostlySingletonSet
- isEmpty() - Method in class org.plumelib.util.ArrayMap
- isEmpty() - Method in class org.plumelib.util.ArraySet
- isEmpty() - Method in class org.plumelib.util.ArraysPlume.ListOrArray
-
Returns true if this represents an empty collection.
- isEmpty() - Method in class org.plumelib.util.IdentityArraySet
- isEmpty() - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- isImmutable(String) - Static method in class org.plumelib.util.ImmutableTypes
-
Returns true iff the class of the given name is immutable.
- isInterned(Object) - Static method in class org.plumelib.util.Intern
-
Returns true if the argument is interned (is canonical among all objects equal to itself).
- isNull() - Method in class org.plumelib.util.ArraysPlume.ListOrArray
-
Returns true if this represents a null value.
- isPartitioningFor(List<T>) - Method in class org.plumelib.util.ArraysPlume.Partitioning
-
True if this is a partitioning for
elts. - isRegex(char) - Static method in class org.plumelib.util.RegexUtil
-
Returns true if the argument is a syntactically valid regular expression.
- isRegex(String) - Static method in class org.plumelib.util.RegexUtil
-
Returns true if the argument is a syntactically valid regular expression.
- isRegex(String, int) - Static method in class org.plumelib.util.RegexUtil
-
Returns true if the argument is a syntactically valid regular expression with at least the given number of groups.
- isSorted(List<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns true if the given list is sorted.
- isSortedDescending(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns whether the array is sorted in descending order.
- isSortedDescending(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns whether the array is sorted in descending order.
- isSortedNoDuplicates(List<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns true if the given list is sorted and has no duplicates
- isSubarray(int[], int[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first.
- isSubarray(long[], long[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first.
- isSubarray(boolean[], boolean[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first.
- isSubarray(double[], double[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first.
- isSubarray(Object[], Object[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using the equals method.
- isSubarray(Object[], List<? extends Object>, int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using the equals method.
- isSubarray(List<? extends Object>, Object[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using the equals method.
- isSubarray(List<T>, List<T>, int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using the equals method.
- isSubarrayEq(Object[], Object[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using == (not the equals method).
- isSubarrayEq(Object[], List<T>, int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using == (not the equals method).
- isSubarrayEq(List<T>, Object[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using == (not the equals method).
- isSubarrayEq(List<T>, List<T>, int) - Static method in class org.plumelib.util.ArraysPlume
-
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using == (not the equals method).
- isSubset(long[], long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns whether smaller is a subset of bigger.
- isSubset(double[], double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns whether smaller is a subset of bigger.
- isSubset(double[], double[]) - Method in class org.plumelib.util.FuzzyFloat
-
Determines whether smaller is a subset of bigger.
- isSubset(String[], String[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns whether smaller is a subset of bigger.
- isWhitespaceOnly(InputStream, int) - Static method in class org.plumelib.util.FilesPlume
-
Returns true if the first
readLimitbytes of the input stream consist only of whitespace. - it - Static variable in class org.plumelib.util.ArraysPlume.DoubleArrayComparatorLexical
-
The canonical DoubleArrayComparatorLexical.
- it - Static variable in class org.plumelib.util.ArraysPlume.IntArrayComparatorLengthFirst
-
The canonical IntArrayComparatorLengthFirst.
- it - Static variable in class org.plumelib.util.ArraysPlume.IntArrayComparatorLexical
-
The canonical IntArrayComparatorLexical.
- it - Static variable in class org.plumelib.util.ArraysPlume.LongArrayComparatorLengthFirst
-
The canonical LongArrayComparatorLengthFirst.
- it - Static variable in class org.plumelib.util.ArraysPlume.LongArrayComparatorLexical
-
The canonical LongArrayComparatorLexical.
- it - Static variable in class org.plumelib.util.ArraysPlume.ObjectArrayComparatorLengthFirst
-
The canonical ObjectArrayComparatorLengthFirst.
- it - Static variable in class org.plumelib.util.ArraysPlume.ObjectArrayComparatorLexical
-
The canonical ObjectArrayComparatorLexical.
- it - Static variable in class org.plumelib.util.ArraysPlume.StringArrayComparatorLexical
-
The canonical StringArrayComparatorLexical.
- it - Static variable in class org.plumelib.util.EntryReader.DummyReader
-
The canonical DummyReader.
- it - Static variable in class org.plumelib.util.StringsPlume.ObjectComparator
-
The canonical ObjectComparator.
- iterator() - Method in class org.plumelib.util.AbstractMostlySingletonSet
- iterator() - Method in class org.plumelib.util.ArrayMap.EntrySet
- iterator() - Method in class org.plumelib.util.ArrayMap.KeySet
- iterator() - Method in class org.plumelib.util.ArrayMap.Values
- iterator() - Method in class org.plumelib.util.ArraySet
- iterator() - Method in class org.plumelib.util.EntryReader
-
Returns a line-by-line iterator for this file.
- iterator() - Method in class org.plumelib.util.IdentityArraySet
- IteratorEnumeration(Iterator<T>) - Constructor for class org.plumelib.util.CollectionsPlume.IteratorEnumeration
-
Create an Enumeration that contains the elements returned by the given Iterator.
- iterators - Variable in class org.plumelib.util.CombinationIterator
-
Iterators for each list of candidate values.
- iteratorToIterable(Iterator<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Converts an Iterator to an Iterable.
- itor - Variable in class org.plumelib.util.CollectionsPlume.FilteredIterator
-
The iterator that this object is filtering.
- itor - Variable in class org.plumelib.util.CollectionsPlume.IteratorEnumeration
-
The iterator that this object wraps.
- itor - Variable in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
-
The wrapped iterator.
- itor1 - Variable in class org.plumelib.util.CollectionsPlume.MergedIterator2
-
The first of the two iterators that this object merges.
- itor1 - Variable in class org.plumelib.util.OrderedPairIterator
-
The iterator for first elements of pairs.
- itor2 - Variable in class org.plumelib.util.CollectionsPlume.MergedIterator2
-
The second of the two iterators that this object merges.
- itor2 - Variable in class org.plumelib.util.OrderedPairIterator
-
The iterator for second elements of pairs.
- itorOfItors - Variable in class org.plumelib.util.CollectionsPlume.MergedIterator
-
The iterators that this object merges.
J
- javaSource(File) - Static method in class org.plumelib.util.FilesPlume
-
Returns a string version of the filename that can be used in Java source.
- javaSource(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- join(T[], CharSequence) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.use
UtilPlume.join(CharSequence, Object...)which has the arguments in the other order - join(CharSequence, Iterable<? extends Object>) - Static method in class org.plumelib.util.StringsPlume
-
Concatenate the string representations of the objects, placing the delimiter between them.
- join(CharSequence, T...) - Static method in class org.plumelib.util.StringsPlume
-
Concatenate the string representations of the array elements, placing the delimiter between them.
- join(CharSequence, T...) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- join(CharSequence, Iterable<? extends Object>) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- join(Iterable<? extends Object>, CharSequence) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.use
UtilPlume.join(CharSequence, Iterable)which has the arguments in the other order - joinLines(Iterable<? extends Object>) - Static method in class org.plumelib.util.StringsPlume
-
Concatenate the string representations of the objects, placing the system-specific line separator between them.
- joinLines(T...) - Static method in class org.plumelib.util.StringsPlume
-
Concatenate the string representations of the objects, placing the system-specific line separator between them.
- joinLines(T...) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- joinLines(Iterable<? extends Object>) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
K
- keepProbability - Variable in class org.plumelib.util.MultiRandSelector
-
Likelihood to select each element.
- keepProbability - Variable in class org.plumelib.util.RandomSelector
-
The percentage of elements to keep.
- KeyIterator() - Constructor for class org.plumelib.util.ArrayMap.KeyIterator
-
Creates a new KeyIterator.
- keys - Variable in class org.plumelib.util.ArrayMap
-
The keys.
- keySet - Variable in class org.plumelib.util.ArrayMap
-
A view of the keys.
- keySet() - Method in class org.plumelib.util.ArrayMap
- keySet() - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- KeySet() - Constructor for class org.plumelib.util.ArrayMap.KeySet
-
Creates a new KeySet.
L
- leastUpperBound() - Method in class org.plumelib.util.ArraysPlume.ListOrArray
-
Returns the least upper bound of the classes of the elements of this.
- length(Object) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the length of the argument array.
- LimitedSizeIntSet - Class in org.plumelib.util
-
LimitedSizeIntSet stores up to some maximum number of unique values.
- LimitedSizeIntSet(int) - Constructor for class org.plumelib.util.LimitedSizeIntSet
-
Create a new LimitedSizeIntSet that can hold maxValues values.
- LimitedSizeLongSet - Class in org.plumelib.util
-
LimitedSizeLongSet stores up to some maximum number of unique values.
- LimitedSizeLongSet(int) - Constructor for class org.plumelib.util.LimitedSizeLongSet
-
Create a new LimitedSizeLongSet that can hold maxValues values.
- LimitedSizeSet<T extends @Nullable Object> - Class in org.plumelib.util
-
LimitedSizeSet stores up to some maximum number of unique values.
- LimitedSizeSet(int) - Constructor for class org.plumelib.util.LimitedSizeSet
-
Create a new LimitedSizeSet that can hold maxValues values.
- lineNumber - Variable in class org.plumelib.util.EntryReader.Entry
-
Line number of first line of entry.
- lineNumber - Variable in exception org.plumelib.util.FileIOException
-
The line being read when the IOException occurred.
- lineNumberFileReader(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- lineNumberFileReader(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- lineSep - Static variable in class org.plumelib.util.CollectionsPlume
-
The system-specific line separator string.
- lineSep - Static variable in class org.plumelib.util.EntryReader
-
Platform-specific line separator.
- lineSep - Static variable in class org.plumelib.util.FilesPlume
-
The system-specific line separator string.
- lineSep - Static variable in class org.plumelib.util.StringsPlume
-
The system-specific line separator string.
- listFilter(Collection<T>, Predicate<? super T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Deprecated.
- listIntersection(Collection<T>, Collection<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a new list that is the intersection of the given collections.
- listOf(E, E) - Static method in class org.plumelib.util.CollectionsPlume
-
Creates an immutable list containing two elements.
- ListOrArray(List<T>) - Constructor for class org.plumelib.util.ArraysPlume.ListOrArray
-
Creates a ListOrArray that wraps a list.
- ListOrArray(T[]) - Constructor for class org.plumelib.util.ArraysPlume.ListOrArray
-
Creates a ListOrArray that wraps an array.
- listsOfCandidates - Variable in class org.plumelib.util.CombinationIterator
-
Lists of candidate values for each position in generated lists.
- listToString(List<? extends Object>) - Static method in class org.plumelib.util.StringsPlume
-
For use by toStringAndClass.
- listToStringAndClass(List<? extends Object>) - Static method in class org.plumelib.util.StringsPlume
-
Gives a string representation of the value and its class.
- listUnion(Collection<T>, Collection<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a new list that is the union of the given collections.
- logicalAnd(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns the logical and of its arguments.
- logicalAnd(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns the logical and of its arguments.
- logicalOr(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns the logical or of its arguments.
- logicalOr(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns the logical or of its arguments.
- logicalXor(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns the logical xor of its arguments.
- logicalXor(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns the logical xor of its arguments.
- LongArrayComparatorLengthFirst() - Constructor for class org.plumelib.util.ArraysPlume.LongArrayComparatorLengthFirst
-
Deprecated.
- LongArrayComparatorLexical() - Constructor for class org.plumelib.util.ArraysPlume.LongArrayComparatorLexical
-
Deprecated.
- LongArrayHasher() - Constructor for class org.plumelib.util.Intern.LongArrayHasher
-
Create a new LongArrayHasher.
- longArrays() - Static method in class org.plumelib.util.Intern
-
Returns all the interned long arrays.
- LongHasher() - Constructor for class org.plumelib.util.Intern.LongHasher
-
Create a new LongHasher.
- longs() - Static method in class org.plumelib.util.Intern
-
Returns all the interned longs.
- lpad(String, int) - Static method in class org.plumelib.util.StringsPlume
-
Returns a string of the specified length, truncated if necessary (in which case the last 3 non-truncated characters are replaced by "..."), and padded with spaces to the left if necessary.
- lpad(String, int) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- lpad(String, int, char) - Static method in class org.plumelib.util.StringsPlume
-
Returns a string of the specified length, truncated if necessary (in which case the last 3 non-truncated characters are replaced by "..."), and padded with `c` to the left if necessary.
- lpad(String, int, char, boolean) - Static method in class org.plumelib.util.StringsPlume
-
Returns a string of the specified length, truncated if necessary (in which case the last 3 non-truncated characters are replaced by "..."), and padded with spaces to the left if necessary.
- lshift(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns x << y, the left-shift operation applied to its arguments.
- lshift(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns x << y, the left-shift operation applied to its arguments.
- lt(double, double) - Method in class org.plumelib.util.FuzzyFloat
-
Test d1 and d2 for
d1 < d2. - lte(double, double) - Method in class org.plumelib.util.FuzzyFloat
-
Test d1 and d2 for
d1 <= d2.
M
- main(String[]) - Static method in class org.plumelib.util.EntryReader
-
Simple usage example.
- makeArrayList(Enumeration<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a vector containing the elements of the enumeration.
- makeNonSingleton() - Method in class org.plumelib.util.IdentityMostlySingletonSet
-
Switch the representation of this from SINGLETON to ANY.
- makeNonSingleton() - Method in class org.plumelib.util.MostlySingletonSet
-
Switch the representation of this from SINGLETON to ANY.
- map - Variable in class org.plumelib.util.MultiRandSelector
-
Maps from partition representatives to the RandomSelector to use on that partition.
- map - Variable in class org.plumelib.util.UniqueIdMap
-
A mapping from objects to their IDs.
- map - Variable in class org.plumelib.util.UnmodifiableIdentityHashMap
-
The wrapped map.
- mapCapacity(int) - Static method in class org.plumelib.util.CollectionsPlume
-
Given an expected number of elements, returns the capacity that should be passed to a HashMap or HashSet constructor, so that the set or map will not resize.
- mapCapacity(Collection<?>) - Static method in class org.plumelib.util.CollectionsPlume
-
Given a collection, returns the capacity that should be passed to a HashMap or HashSet constructor, so that the set or map will not resize.
- mapCapacity(Map<?, ?>) - Static method in class org.plumelib.util.CollectionsPlume
-
Given a map, returns the capacity that should be passed to a HashMap or HashSet constructor, so that the set or map will not resize.
- mapCapacity(T[]) - Static method in class org.plumelib.util.CollectionsPlume
-
Given an array, returns the capacity that should be passed to a HashMap or HashSet constructor, so that the set or map will not resize.
- mapList(Function<? super FROM, ? extends TO>, FROM[]) - Static method in class org.plumelib.util.CollectionsPlume
-
Applies the function to each element of the given array, producing a list of the results.
- mapList(Function<? super FROM, ? extends TO>, Iterable<FROM>) - Static method in class org.plumelib.util.CollectionsPlume
-
Applies the function to each element of the given iterable, producing a new list of the results.
- mapToString(Appendable, Map<K, V>, String) - Static method in class org.plumelib.util.CollectionsPlume
-
Write a multi-line representation of the map into the given Appendable (e.g., a StringBuilder).
- mapToString(Map<K, V>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a multi-line string representation of a map.
- mapToStringAndClass(Map<? extends Object, ? extends Object>) - Static method in class org.plumelib.util.StringsPlume
-
Convert a map to a string, printing the runtime class of keys and values.
- mapToStringAndClass(Map<? extends Object, ? extends Object>) - Static method in class org.plumelib.util.UtilPlume
- mark(int) - Method in class org.plumelib.util.EntryReader.DummyReader
- mark(int) - Method in class org.plumelib.util.EntryReader
- markSupported() - Method in class org.plumelib.util.EntryReader.DummyReader
- matchesNoRegex(Collection<String>, Collection<String>) - Static method in class org.plumelib.util.RegexUtil
-
Return the strings that are matched by no regex.
- matchesSomeRegex(Collection<String>, Collection<String>) - Static method in class org.plumelib.util.RegexUtil
-
Return the strings such that any one of the regexes matches it.
- MathPlume - Class in org.plumelib.util
-
Mathematical utilities.
- MathPlume() - Constructor for class org.plumelib.util.MathPlume
-
This class is a collection of methods; it does not represent anything.
- MathPlume.MissingNumbersIteratorInt - Class in org.plumelib.util
-
This iterator returns all the numbers *not* in its argument array (which must be non-empty) but in the argument's range; that is, bigger than its argument's minimum value and smaller than its argument's maximum value.
- MathPlume.MissingNumbersIteratorLong - Class in org.plumelib.util
-
This iterator returns all the numbers *not* in its argument array (which must be non-empty) but in the argument's range; that is, bigger than its argument's minimum value and smaller than its argument's maximum value.
- max(double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the largest value in the array.
- max(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the largest value in the array.
- max(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the largest value in the array.
- max(Double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the largest value in the array.
- max(Integer[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the largest value in the array.
- max(Long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the largest value in the array.
- maxRatio - Variable in class org.plumelib.util.FuzzyFloat
-
Maximum ratio between two floats, such that this class considers them equal.
- maxSize() - Method in class org.plumelib.util.LimitedSizeIntSet
-
An upper bound on how many distinct elements can be individually represented in the set.
- maxSize() - Method in class org.plumelib.util.LimitedSizeLongSet
-
An upper bound on how many distinct elements can be individually represented in the set.
- maxSize() - Method in class org.plumelib.util.LimitedSizeSet
-
An upper bound on how many distinct elements can be individually represented in the set.
- merge(int, List<LimitedSizeIntSet>) - Static method in class org.plumelib.util.LimitedSizeIntSet
-
Merges a list of
LimitedSizeIntSetobjects into a single object that represents the values seen by the entire list. - merge(int, List<LimitedSizeLongSet>) - Static method in class org.plumelib.util.LimitedSizeLongSet
-
Merges a list of
LimitedSizeLongSetobjects into a single object that represents the values seen by the entire list. - merge(int, List<LimitedSizeSet<? extends T>>) - Static method in class org.plumelib.util.LimitedSizeSet
-
Merges a list of
LimitedSizeSet<T>objects into a single object that represents the values seen by the entire list. - merge(K, V, BiFunction<? super V, ? super V, ? extends V>) - Method in class org.plumelib.util.ArrayMap
- merge(K, V, BiFunction<? super V, ? super V, ? extends V>) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- MergedIterator(Iterator<Iterator<T>>) - Constructor for class org.plumelib.util.CollectionsPlume.MergedIterator
-
Create an iterator that returns the elements of the given iterators, in turn.
- MergedIterator2(Iterator<T>, Iterator<T>) - Constructor for class org.plumelib.util.CollectionsPlume.MergedIterator2
-
Create an iterator that returns the elements of
itor1then those ofitor2. - methodComparator - Static variable in class org.plumelib.util.ClassDeterministic
-
Compares Method objects by signature: compares name, number of parameters, parameter type names, declaring class, and return type (which is necessary to distinguish bridge methods).
- MethodComparator() - Constructor for class org.plumelib.util.ClassDeterministic.MethodComparator
-
Create a new MethodComparator.
- min(double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the smallest value in the array.
- min(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the smallest value in the array.
- min(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the smallest value in the array.
- min(Double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the smallest value in the array.
- min(Integer[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the smallest value in the array.
- min(Long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the smallest value in the array.
- minAndMax(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a two-element array containing the smallest and largest values in the array.
- minAndMax(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a two-element array containing the smallest and largest values in the array.
- minRatio - Variable in class org.plumelib.util.FuzzyFloat
-
Minimum ratio between two floats, such that this class considers them equal.
- missingNumbers(int[]) - Static method in class org.plumelib.util.MathPlume
-
Returns an array containing all the numbers not in its argument array (which must be non-empty) but in the argument's range; that is, bigger than its argument's minimum value and smaller than its argument's maximum value.
- missingNumbers(long[]) - Static method in class org.plumelib.util.MathPlume
-
Returns an array containing all the numbers not in its argument array (which must be non-empty) but in the argument's range; that is, bigger than its argument's minimum value and smaller than its argument's maximum value.
- MissingNumbersIteratorInt(int[], boolean) - Constructor for class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
-
An iterator over all the numbers not in the argument array, but within its range.
- MissingNumbersIteratorInt(Iterator<Integer>, boolean) - Constructor for class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
-
An iterator over all the numbers not in the argument iterator, but within its range.
- MissingNumbersIteratorLong(long[], boolean) - Constructor for class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
-
An iterator over all the numbers not in its original argument array, but within its range.
- MissingNumbersIteratorLong(Iterator<Long>, boolean) - Constructor for class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
-
An iterator over all the numbers not in its argument iterator, but within its range.
- mod(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns x % y, the modulus operation applied to its arguments.
- mod(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns x % y, the modulus operation applied to its arguments.
- modNonnegative(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns z such that
(z == x mod y) && (0 <= z < abs(y)). - modNonnegative(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns z such that
(z == x mod y) && (0 <= z < abs(y)). - modPositive(int, int) - Static method in class org.plumelib.util.MathPlume
-
Deprecated.
- modPositive(long, long) - Static method in class org.plumelib.util.MathPlume
-
Deprecated.
- modulus(int[]) - Static method in class org.plumelib.util.MathPlume
-
Returns an array of two integers (r,m) such that each number in NUMS is equal to r (mod m).
- modulus(long[]) - Static method in class org.plumelib.util.MathPlume
-
Returns an array of two integers (r,m) such that each number in NUMS is equal to r (mod m).
- modulusInt(Iterator<Integer>) - Static method in class org.plumelib.util.MathPlume
-
The iterator produces Integer values.
- modulusLong(Iterator<Long>) - Static method in class org.plumelib.util.MathPlume
-
The iterator produces Long values.
- modulusStrict(int[], boolean) - Static method in class org.plumelib.util.MathPlume
-
Returns an array of two integers (r,m) such that each number in NUMS is equal to r (mod m).
- modulusStrict(long[], boolean) - Static method in class org.plumelib.util.MathPlume
-
Returns an array of two integers (r,m) such that each number in NUMS is equal to r (mod m).
- modulusStrictInt(Iterator<Integer>, boolean) - Static method in class org.plumelib.util.MathPlume
-
The iterator produces Integer values.
- modulusStrictLong(Iterator<Long>, boolean) - Static method in class org.plumelib.util.MathPlume
-
The iterator produces Long values.
- MostlySingletonSet<T> - Class in org.plumelib.util
-
A set that is more efficient than HashSet for 0 and 1 elements.
- MostlySingletonSet() - Constructor for class org.plumelib.util.MostlySingletonSet
-
Create a MostlySingletonSet.
- MostlySingletonSet(T) - Constructor for class org.plumelib.util.MostlySingletonSet
-
Create a MostlySingletonSet containing one value.
- MPair<V1,
V2> - Class in org.plumelib.util -
Mutable pair class.
- MPair(V1, V2) - Constructor for class org.plumelib.util.MPair
-
Creates a new mutable pair.
- mul(double, double) - Static method in class org.plumelib.util.MathPlume
-
Multiplies its arguments.
- mul(int, int) - Static method in class org.plumelib.util.MathPlume
-
Multiplies its arguments.
- mul(long, long) - Static method in class org.plumelib.util.MathPlume
-
Multiplies its arguments.
- MultiRandSelector<T extends @Nullable Object> - Class in org.plumelib.util
-
Performs uniform random selection over an iterator, where the objects in the iterator may be partitioned so that the random selection chooses the same number from each group.
- MultiRandSelector(double, Random, Partitioner<T, T>) - Constructor for class org.plumelib.util.MultiRandSelector
-
Create a MultiRandSelector that chooses each element with probability
keepProbability., using the given Random. - MultiRandSelector(double, Partitioner<T, T>) - Constructor for class org.plumelib.util.MultiRandSelector
-
Create a MultiRandSelector that chooses each element with probability
keepProbability. - MultiRandSelector(int, Random, Partitioner<T, T>) - Constructor for class org.plumelib.util.MultiRandSelector
-
Create a MultiRandSelector that chooses
numEltsfrom each partition, using the given Random. - MultiRandSelector(int, Partitioner<T, T>) - Constructor for class org.plumelib.util.MultiRandSelector
-
Create a MultiRandSelector that chooses
numEltselements from each bucket. - MultiRandSelector(Random, Partitioner<T, T>) - Constructor for class org.plumelib.util.MultiRandSelector
-
Helper constructor to create a not-fully-initialized MultiRandSelector.
N
- nCopies(int, T) - Static method in class org.plumelib.util.ArraysPlume
-
Returns an array consisting of n copies of the specified object.
- ne(double, double) - Method in class org.plumelib.util.FuzzyFloat
-
Test d1 and d2 for non-equality using the current ratio.
- negate(double) - Static method in class org.plumelib.util.MathPlume
-
Negates its argument.
- negate(int) - Static method in class org.plumelib.util.MathPlume
-
Negates its argument.
- negate(long) - Static method in class org.plumelib.util.MathPlume
-
Negates its argument.
- newArrayList(T) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a singleton ArrayList containing the given element.
- newArrayMapOrHashMap(int) - Static method in class org.plumelib.util.ArrayMap
-
Returns a new ArrayMap or HashMap with the given capacity.
- newArrayMapOrHashMap(Map<K, V>) - Static method in class org.plumelib.util.ArrayMap
-
Returns a new ArrayMap or HashMap with the given elements.
- newArrayMapOrLinkedHashMap(int) - Static method in class org.plumelib.util.ArrayMap
-
Returns a new ArrayMap or LinkedHashMap with the given capacity.
- newArrayMapOrLinkedHashMap(Map<K, V>) - Static method in class org.plumelib.util.ArrayMap
-
Returns a new ArrayMap or LinkedHashMap with the given elements.
- newArraySetOrHashSet(int) - Static method in class org.plumelib.util.ArraySet
-
Returns a new ArraySet or HashSet with the given capacity.
- newArraySetOrHashSet(Collection<E>) - Static method in class org.plumelib.util.ArraySet
-
Returns a new ArraySet or HashSet with the given elements.
- newArraySetOrLinkedHashSet(int) - Static method in class org.plumelib.util.ArraySet
-
Returns a new ArraySet or LinkedHashSet with the given capacity.
- newArraySetOrLinkedHashSet(Collection<E>) - Static method in class org.plumelib.util.ArraySet
-
Returns a new ArraySet or LinkedHashSet with the given elements.
- newBufferedFileOutputStream(String, boolean) - Static method in class org.plumelib.util.FilesPlume
-
Returns a BufferedOutputStream for the file, accounting for the possibility that the file is compressed.
- newBufferedFileReader(File) - Static method in class org.plumelib.util.FilesPlume
-
Returns a BufferedReader for the file, accounting for the possibility that the file is compressed.
- newBufferedFileReader(File, String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a BufferedReader for the file, accounting for the possibility that the file is compressed.
- newBufferedFileReader(String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a BufferedReader for the file, accounting for the possibility that the file is compressed.
- newBufferedFileReader(String, String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a BufferedReader for the file, accounting for the possibility that the file is compressed.
- newBufferedFileWriter(String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a BufferedWriter for the file, accounting for the possibility that the file is compressed.
- newBufferedFileWriter(String, boolean) - Static method in class org.plumelib.util.FilesPlume
-
Returns a BufferedWriter for the file, accounting for the possibility that the file is compressed.
- newFileInputStream(File) - Static method in class org.plumelib.util.FilesPlume
-
Returns an InputStream for the file, accounting for the possibility that the file is compressed.
- newFileInputStream(Path) - Static method in class org.plumelib.util.FilesPlume
-
Returns an InputStream for the file, accounting for the possibility that the file is compressed.
- newFileOutputStream(File) - Static method in class org.plumelib.util.FilesPlume
-
Returns an OutputStream for the file, accounting for the possibility that the file is compressed.
- newFileOutputStream(Path) - Static method in class org.plumelib.util.FilesPlume
-
Returns an OutputStream for the file, accounting for the possibility that the file is compressed.
- newFileOutputStream(Path, boolean) - Static method in class org.plumelib.util.FilesPlume
-
Returns an OutputStream for the file, accounting for the possibility that the file is compressed.
- newFileReader(File) - Static method in class org.plumelib.util.FilesPlume
-
Returns a Reader for the file, accounting for the possibility that the file is compressed.
- newFileReader(File, String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a Reader for the file, accounting for the possibility that the file is compressed.
- newFileReader(String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a Reader for the file, accounting for the possibility that the file is compressed.
- newFileReader(Path) - Static method in class org.plumelib.util.FilesPlume
-
Returns a Reader for the file, accounting for the possibility that the file is compressed.
- newFileReader(Path, String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a Reader for the file, accounting for the possibility that the file is compressed.
- newFileWriter(File) - Static method in class org.plumelib.util.FilesPlume
-
Returns a Writer for the file, accounting for the possibility that the file is compressed.
- newFileWriter(File, String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a Writer for the file, accounting for the possibility that the file is compressed.
- newFileWriter(String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a Writer for the file, accounting for the possibility that the file is compressed.
- newFileWriter(Path) - Static method in class org.plumelib.util.FilesPlume
-
Returns a Writer for the file, accounting for the possibility that the file is compressed.
- newFileWriter(Path, String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a Writer for the file, accounting for the possibility that the file is compressed.
- newLineNumberFileReader(File) - Static method in class org.plumelib.util.FilesPlume
-
Returns a LineNumberReader for the file, accounting for the possibility that the file is compressed.
- newLineNumberFileReader(String) - Static method in class org.plumelib.util.FilesPlume
-
Returns a LineNumberReader for the file, accounting for the possibility that the file is compressed.
- next() - Method in class org.plumelib.util.ArrayMap.EntryIterator
- next() - Method in class org.plumelib.util.ArrayMap.KeyIterator
- next() - Method in class org.plumelib.util.ArrayMap.ValueIterator
- next() - Method in class org.plumelib.util.ArraySet.ArraySetIterator
- next() - Method in class org.plumelib.util.CollectionsPlume.EnumerationIterator
- next() - Method in class org.plumelib.util.CollectionsPlume.FilteredIterator
- next() - Method in class org.plumelib.util.CollectionsPlume.MergedIterator
- next() - Method in class org.plumelib.util.CollectionsPlume.MergedIterator2
- next() - Method in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
- next() - Method in class org.plumelib.util.CombinationIterator
- next() - Method in class org.plumelib.util.EntryReader
-
Returns the next line in the multi-file.
- next() - Method in class org.plumelib.util.IdentityArraySet.ArraySetIterator
- next() - Method in class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
- next() - Method in class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
- next() - Method in class org.plumelib.util.OrderedPairIterator
- next1 - Variable in class org.plumelib.util.OrderedPairIterator
-
The next element to be read by itor1.
- next2 - Variable in class org.plumelib.util.OrderedPairIterator
-
The next element to be read by itor2.
- nextElement() - Method in class org.plumelib.util.CollectionsPlume.IteratorEnumeration
- nextUid - Variable in class org.plumelib.util.UniqueIdMap
-
The unique ID for the next-created object.
- nextValue - Variable in class org.plumelib.util.CombinationIterator
-
The next value to return, or null if to more values.
- noDuplicates(boolean[]) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.use
hasNoDuplicates - noDuplicates(byte[]) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.use
hasNoDuplicates - noDuplicates(char[]) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.use
hasNoDuplicates - noDuplicates(double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.use
hasNoDuplicates - noDuplicates(float[]) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.use
hasNoDuplicates - noDuplicates(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.use
hasNoDuplicates - noDuplicates(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.use
hasNoDuplicates - noDuplicates(short[]) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.use
hasNoDuplicates - noDuplicates(Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.use
hasNoDuplicates - noDuplicates(String[]) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.use
hasNoDuplicates - noDuplicates(List<T>) - Static method in class org.plumelib.util.ArraysPlume
-
Deprecated.
- noDuplicates(List<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Deprecated.
- nonmodulusNonstrict(int[]) - Static method in class org.plumelib.util.MathPlume
-
Returns a tuple of (r,m) where no number in NUMS is equal to r (mod m) but for every number in NUMS, at least one is equal to every non-r remainder.
- nonmodulusNonstrict(long[]) - Static method in class org.plumelib.util.MathPlume
-
Returns a tuple of (r,m) where no number in NUMS is equal to r (mod m) but for every number in NUMS, at least one is equal to every non-r remainder.
- nonmodulusStrict(int[]) - Static method in class org.plumelib.util.MathPlume
-
Returns a tuple of (r,m) where no number in NUMS is equal to r (mod m) but all missing numbers in their range are.
- nonmodulusStrict(long[]) - Static method in class org.plumelib.util.MathPlume
-
Returns a tuple of (r,m) where no number in NUMS is equal to r (mod m) but all missing numbers in their range are.
- nonmodulusStrictInt(Iterator<Integer>) - Static method in class org.plumelib.util.MathPlume
-
Returns a tuple of (r,m) where no number in NUMS is equal to r (mod m) but all missing numbers in their range are.
- nonmodulusStrictIntInternal(Iterator<Integer>) - Static method in class org.plumelib.util.MathPlume
-
Helper for
MathPlume.nonmodulusStrict(int[]). - nonmodulusStrictLong(Iterator<Long>) - Static method in class org.plumelib.util.MathPlume
-
Returns a tuple of (r,m) where no number in NUMS is equal to r (mod m) but all missing numbers in their range are.
- nonmodulusStrictLongInternal(Iterator<Long>) - Static method in class org.plumelib.util.MathPlume
-
Helper for
MathPlume.nonmodulusStrict(long[]). - noStringMatchesAnyRegex(Collection<String>, Collection<String>) - Static method in class org.plumelib.util.RegexUtil
-
Return true if no string is matched by any regex.
- nothing - Variable in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
-
A marker object, distinct from any object that the iterator can return.
- nplural(int, String) - Static method in class org.plumelib.util.StringsPlume
-
Returns either "n noun" or "n nouns" depending on n.
- nplural(int, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- NullableStringComparator() - Constructor for class org.plumelib.util.StringsPlume.NullableStringComparator
-
Deprecated.Create a new NullableStringComparator.
- NullableStringComparator() - Constructor for class org.plumelib.util.UtilPlume.NullableStringComparator
-
Deprecated.Create a new NullableStringComparator.
- nullRep() - Method in class org.plumelib.util.LimitedSizeIntSet
-
Null the representation, which happens when a client tries to add more elements to this set than it can contain (which is the integer that was passed to the constructor when creating this set).
- nullRep() - Method in class org.plumelib.util.LimitedSizeLongSet
-
Null the representation, which happens when a client tries to add more elements to this set than it can contain (which is the integer that was passed to the constructor when creating this set).
- nullRep() - Method in class org.plumelib.util.LimitedSizeSet
-
Null the representation, which happens when a client tries to add more elements to this set than it can contain (which is the integer that was passed to the constructor when creating this set).
- numDoubleArrays() - Static method in class org.plumelib.util.Intern
-
Returns the number of interned double arrays.
- numDoubles() - Static method in class org.plumelib.util.Intern
-
Returns the number of interned doubles.
- numElts - Variable in class org.plumelib.util.MultiRandSelector
-
Number of elements to select.
- numElts - Variable in class org.plumelib.util.RandomSelector
-
The number of objects to choose, or -1.
- numIntArrays() - Static method in class org.plumelib.util.Intern
-
Returns the number of interned int arrays.
- numIntegers() - Static method in class org.plumelib.util.Intern
-
Returns the number of interned integers.
- numLongArrays() - Static method in class org.plumelib.util.Intern
-
Returns the number of interned long arrays.
- numLongs() - Static method in class org.plumelib.util.Intern
-
Returns the number of interned longs.
- numObjectArrays() - Static method in class org.plumelib.util.Intern
-
Returns the number of interned object arrays.
- nums - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
-
The numbers not to include in the iterator.
- nums - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
-
The numbers not to include in the iterator.
- numsItor - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
-
The numbers not to include in the iterator.
- numsItor - Variable in class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
-
The numbers not to include in the iterator.
- numStringArrays() - Static method in class org.plumelib.util.Intern
-
Returns the number of interned string arrays.
- numValues - Variable in class org.plumelib.util.LimitedSizeIntSet
-
The number of active elements (equivalently, the first unused index).
- numValues - Variable in class org.plumelib.util.LimitedSizeLongSet
-
The number of active elements (equivalently, the first unused index).
- numValues - Variable in class org.plumelib.util.LimitedSizeSet
-
The number of active elements (equivalently, the first unused index).
O
- ObjectArrayComparatorLengthFirst() - Constructor for class org.plumelib.util.ArraysPlume.ObjectArrayComparatorLengthFirst
-
Deprecated.
- ObjectArrayComparatorLexical() - Constructor for class org.plumelib.util.ArraysPlume.ObjectArrayComparatorLexical
-
Deprecated.
- ObjectArrayHasher() - Constructor for class org.plumelib.util.Intern.ObjectArrayHasher
-
Create a new ObjectArrayHasher.
- objectArrays() - Static method in class org.plumelib.util.Intern
-
Returns all the interned object arrays.
- objectComparator - Static variable in class org.plumelib.util.ArraysPlume
-
Sorts arbitrary objects; used to determine equal.
- ObjectComparator() - Constructor for class org.plumelib.util.StringsPlume.ObjectComparator
-
Deprecated.
- ObjectComparator() - Constructor for class org.plumelib.util.UtilPlume.ObjectComparator
-
Deprecated.Create a new ObjectComparator.
- observed - Variable in class org.plumelib.util.RandomSelector
-
The number of objects observed.
- of(A, B) - Static method in class org.plumelib.util.Pair
-
Deprecated.Factory method with short name and no need to name type parameters.
- of(T1, T2) - Static method in class org.plumelib.util.IPair
-
Creates a new immutable pair.
- of(T1, T2) - Static method in class org.plumelib.util.MPair
-
Creates a new mutable pair.
- of(T1, T2) - Static method in class org.plumelib.util.WeakIdentityPair
-
Creates a new weakly-held immutable pair.
- OrderedPairIterator<T extends @Nullable Object> - Class in org.plumelib.util
-
Given two sorted iterators, this class returns a new iterator that pairs equal elements of the inputs, according to the sort order or the given comparator.
- OrderedPairIterator(Iterator<T>, Iterator<T>) - Constructor for class org.plumelib.util.OrderedPairIterator
-
Create an iterator that returns pairs, where each pair contains has an element from each iterator and the two elements are equal.
- OrderedPairIterator(Iterator<T>, Iterator<T>, Comparator<T>) - Constructor for class org.plumelib.util.OrderedPairIterator
-
Create an iterator that returns pairs, where each pair contains has an element from each iterator and the two elements are equal according to the comparator.
- org.plumelib.util - package org.plumelib.util
-
Plume-lib Util: Utility libraries for Java
P
- Pair<T1 extends @Nullable Object,
T2 extends @Nullable Object> - Class in org.plumelib.util - Pair(T1, T2) - Constructor for class org.plumelib.util.Pair
-
Deprecated.Make a new pair.
- partialFnCompose(int[], int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the composition of the given two (possibly partial) functions, all of which are represented as arrays.
- partitionedSet() - Method in class org.plumelib.util.ArraysPlume.Partitioning
-
The set that has been partitioned.
- Partitioner<ELEMENT extends @Nullable Object,
CLASS extends @Nullable Object> - Interface in org.plumelib.util -
A Partitioner accepts Objects and assigns them to an equivalence class.
- Partitioning() - Constructor for class org.plumelib.util.ArraysPlume.Partitioning
-
Empty constructor.
- Partitioning(ArraysPlume.Partitioning<T>) - Constructor for class org.plumelib.util.ArraysPlume.Partitioning
-
Copy constructor.
- partitionInto(Collection<T>, int) - Static method in class org.plumelib.util.ArraysPlume
-
Partition a set of non-null elements into exactly k subsets.
- partitionInto(Queue<T>, int) - Static method in class org.plumelib.util.ArraysPlume
-
Partition a set of elements into exactly k subsets.
- partitionIntoHelper(Queue<T>, List<ArraysPlume.Partitioning<T>>, int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a set of partitionings, each of size numEmptyParts + numNonemptyParts.
- pow(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns of value of the first argument raised to the power of the second argument.
- pow(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns of value of the first argument raised to the power of the second argument.
- powFast(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns of value of the first argument raised to the power of the second argument.
- powFast(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns the first argument raised to the power of the second argument.
- prefix - Variable in class org.plumelib.util.FilesPlume.WildcardFilter
-
The text before the wildcard.
- prefix - Variable in class org.plumelib.util.UtilPlume.WildcardFilter
-
Deprecated.The text before the wildcard.
- prefixLines(String, Object) - Static method in class org.plumelib.util.StringsPlume
-
Returns the printed represenation of a value, with each line prefixed by another string.
- prefixLines(String, Object) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- prefixLinesExceptFirst(String, Object) - Static method in class org.plumelib.util.StringsPlume
-
Returns the printed represenation of a value, with each line (except the first) prefixed by another string.
- prefixLinesExceptFirst(String, Object) - Static method in class org.plumelib.util.UtilPlume
- print(Map<T, List<T>>, PrintStream, int) - Static method in class org.plumelib.util.GraphPlume
-
Print a representation of the graph to ps, indented by intent spaces.
- propertyIsTrue(Properties, String) - Static method in class org.plumelib.util.UtilPlume
- pse - Variable in exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
The PatternSyntaxException that this is a wrapper around.
- pushbackLine - Variable in class org.plumelib.util.EntryReader
-
Line that is pushed back to be reread.
- put(int, K, V) - Method in class org.plumelib.util.ArrayMap
-
Adds the (key, value) mapping to this.
- put(K, V) - Method in class org.plumelib.util.ArrayMap
- put(K, V) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- putAll(Map<? extends K, ? extends V>) - Method in class org.plumelib.util.ArrayMap
- putAll(Map<? extends K, ? extends V>) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- putback(String) - Method in class org.plumelib.util.EntryReader
-
Puts the specified line back in the input.
- putIfAbsent(K, V) - Method in class org.plumelib.util.ArrayMap
- putIfAbsent(K, V) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
R
- r - Static variable in class org.plumelib.util.CollectionsPlume
-
The random generator.
- r - Variable in class org.plumelib.util.MultiRandSelector
-
The Random instance to use.
- randomElements(Iterator<T>, int) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a List containing numElts randomly chosen elements from the iterator, or all the elements of the iterator if there are fewer.
- randomElements(Iterator<T>, int, Random) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a List containing numElts randomly chosen elements from the iterator, or all the elements of the iterator if there are fewer.
- RandomSelector<T> - Class in org.plumelib.util
-
RandomSelector selects k elements uniformly at random from an arbitrary iterator, using O(k) space.
- RandomSelector(double, Random) - Constructor for class org.plumelib.util.RandomSelector
-
Creates a new RandomSelector.
- RandomSelector(int) - Constructor for class org.plumelib.util.RandomSelector
-
Creates a new RandomSelector.
- RandomSelector(int, Random) - Constructor for class org.plumelib.util.RandomSelector
-
Creates a new RandomSelector.
- read() - Method in class org.plumelib.util.EntryReader.DummyReader
- read() - Method in class org.plumelib.util.EntryReader
- read(char[]) - Method in class org.plumelib.util.EntryReader.DummyReader
- read(char[], int, int) - Method in class org.plumelib.util.EntryReader.DummyReader
- read(char[], int, int) - Method in class org.plumelib.util.EntryReader
- read(CharBuffer) - Method in class org.plumelib.util.EntryReader.DummyReader
- readCodePoint(InputStream) - Static method in class org.plumelib.util.FilesPlume
-
Reads a Unicode code point from an input stream.
- readerContents(Reader) - Static method in class org.plumelib.util.FilesPlume
-
Reads the entire contents of the reader and returns it as a string.
- readerContents(Reader) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- readers - Variable in class org.plumelib.util.EntryReader
-
Stack of readers.
- readFile(File) - Static method in class org.plumelib.util.FilesPlume
-
Deprecated.
- readFile(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- readLine() - Method in class org.plumelib.util.EntryReader
-
Read a line, ignoring comments and processing includes.
- readObject(File) - Static method in class org.plumelib.util.FilesPlume
-
Reads an Object from a File.
- readObject(File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- ready() - Method in class org.plumelib.util.EntryReader.DummyReader
- regexError(String) - Static method in class org.plumelib.util.RegexUtil
-
Returns null if the argument is a syntactically valid regular expression.
- regexError(String, int) - Static method in class org.plumelib.util.RegexUtil
-
Returns null if the argument is a syntactically valid regular expression with at least the given number of groups.
- regexErrorMessage(String, int, int) - Static method in class org.plumelib.util.RegexUtil
-
Generates an error message for s when expectedGroups are needed, but s only has actualGroups.
- regexException(String) - Static method in class org.plumelib.util.RegexUtil
-
Returns null if the argument is a syntactically valid regular expression.
- regexException(String, int) - Static method in class org.plumelib.util.RegexUtil
-
Returns null if the argument is a syntactically valid regular expression with at least the given number of groups.
- RegexUtil - Class in org.plumelib.util
-
Utility methods for regular expressions, most notably for testing whether a string is a regular expression.
- RegexUtil() - Constructor for class org.plumelib.util.RegexUtil
-
This class is a collection of methods; it does not represent anything.
- RegexUtil.CheckedPatternSyntaxException - Exception in org.plumelib.util
-
A checked version of
PatternSyntaxException. - remove() - Method in class org.plumelib.util.ArrayMap.ArrayMapIterator
-
Removes the previously-returned element.
- remove() - Method in class org.plumelib.util.ArraySet.ArraySetIterator
-
Removes the previously-returned element.
- remove() - Method in class org.plumelib.util.CollectionsPlume.EnumerationIterator
- remove() - Method in class org.plumelib.util.CollectionsPlume.FilteredIterator
- remove() - Method in class org.plumelib.util.CollectionsPlume.MergedIterator
- remove() - Method in class org.plumelib.util.CollectionsPlume.MergedIterator2
- remove() - Method in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
- remove() - Method in class org.plumelib.util.CombinationIterator
- remove() - Method in class org.plumelib.util.EntryReader
-
remove() is not supported.
- remove() - Method in class org.plumelib.util.IdentityArraySet.ArraySetIterator
-
Removes the previously-returned element.
- remove() - Method in class org.plumelib.util.MathPlume.MissingNumbersIteratorInt
- remove() - Method in class org.plumelib.util.MathPlume.MissingNumbersIteratorLong
- remove() - Method in class org.plumelib.util.OrderedPairIterator
- remove(Object) - Method in class org.plumelib.util.ArrayMap.EntrySet
- remove(Object) - Method in class org.plumelib.util.ArrayMap.KeySet
- remove(Object) - Method in class org.plumelib.util.ArrayMap
- remove(Object) - Method in class org.plumelib.util.ArraySet
- remove(Object) - Method in class org.plumelib.util.IdentityArraySet
- remove(Object) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- remove(Object, Object) - Method in class org.plumelib.util.ArrayMap
- remove(Object, Object) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- remove(Object) - Method in class org.plumelib.util.AbstractMostlySingletonSet
- removeAll(Collection<?>) - Method in class org.plumelib.util.AbstractMostlySingletonSet
- removeAll(Collection<?>) - Method in class org.plumelib.util.ArraySet
- removeAll(Collection<?>) - Method in class org.plumelib.util.IdentityArraySet
- removed - Variable in class org.plumelib.util.ArrayMap.ArrayMapIterator
-
True if remove() has been called since the last call to next().
- removed - Variable in class org.plumelib.util.ArraySet.ArraySetIterator
-
True if remove() has been called since the last call to next().
- removed - Variable in class org.plumelib.util.IdentityArraySet.ArraySetIterator
-
True if remove() has been called since the last call to next().
- removeDuplicates(List<T>) - Static method in class org.plumelib.util.CollectionsPlume
- RemoveFirstAndLastIterator(Iterator<T>) - Constructor for class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
-
Create an iterator just like
itor, except without its first and last elements. - removeIndex(int) - Method in class org.plumelib.util.ArrayMap
-
Remove the mapping at the given index.
- removeIndex(int) - Method in class org.plumelib.util.ArraySet
-
Remove the element at the given index.
- removeIndex(int) - Method in class org.plumelib.util.IdentityArraySet
-
Remove the element at the given index.
- removeWhitespaceAfter(String, String) - Static method in class org.plumelib.util.StringsPlume
-
Remove all whitespace after instances of delimiter.
- removeWhitespaceAfter(String, String) - Static method in class org.plumelib.util.UtilPlume
- removeWhitespaceAround(String, String) - Static method in class org.plumelib.util.StringsPlume
-
Remove all whitespace before or after instances of delimiter.
- removeWhitespaceAround(String, String) - Static method in class org.plumelib.util.UtilPlume
- removeWhitespaceBefore(String, String) - Static method in class org.plumelib.util.StringsPlume
-
Remove all whitespace before instances of delimiter.
- removeWhitespaceBefore(String, String) - Static method in class org.plumelib.util.UtilPlume
- replace(K, V) - Method in class org.plumelib.util.ArrayMap
- replace(K, V) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- replace(K, V, V) - Method in class org.plumelib.util.ArrayMap
- replace(K, V, V) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- replaceAll(String, Pattern, String) - Static method in class org.plumelib.util.StringsPlume
-
Replaces every (non-overlapping) match for a regexp.
- replaceAll(BiFunction<? super K, ? super V, ? extends V>) - Method in class org.plumelib.util.ArrayMap
- replaceAll(BiFunction<? super K, ? super V, ? extends V>) - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- replacePrefix(String, String, String) - Static method in class org.plumelib.util.StringsPlume
-
Returns the target with an occurrence of oldStr at the start replaced by newStr.
- replacePrefix(String, String, String) - Static method in class org.plumelib.util.UtilPlume
- replaceString(String, String, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- replaceSuffix(String, String, String) - Static method in class org.plumelib.util.StringsPlume
-
Returns the target with an occurrence of oldStr at the end replaced by newStr.
- replaceSuffix(String, String, String) - Static method in class org.plumelib.util.UtilPlume
- repNulled() - Method in class org.plumelib.util.LimitedSizeIntSet
-
Returns true if more elements have been added than this set can contain (which is the integer that was passed to the constructor when creating this set).
- repNulled() - Method in class org.plumelib.util.LimitedSizeLongSet
-
Returns true if more elements have been added than this set can contain (which is the integer that was passed to the constructor when creating this set).
- repNulled() - Method in class org.plumelib.util.LimitedSizeSet
-
Returns true if more elements have been added than this set can contain (which is the integer that was passed to the constructor when creating this set).
- repr() - Method in class org.plumelib.util.ArrayMap
-
Returns the internal representation, printed.
- repr() - Method in class org.plumelib.util.ArraySet
-
Returns the internal representation, printed.
- repr() - Method in class org.plumelib.util.IdentityArraySet
-
Returns the internal representation, printed.
- reset() - Method in class org.plumelib.util.EntryReader.DummyReader
- reset() - Method in class org.plumelib.util.EntryReader
- retainAll(Collection<?>) - Method in class org.plumelib.util.AbstractMostlySingletonSet
- return1() - Method in class org.plumelib.util.OrderedPairIterator
-
Returns an element of the first iterator, paired with null.
- return2() - Method in class org.plumelib.util.OrderedPairIterator
-
Returns a pair of null and an element of the second iterator.
- returnboth() - Method in class org.plumelib.util.OrderedPairIterator
-
Returns a pair containing an element from each iterator.
- rpad(double, int) - Static method in class org.plumelib.util.StringsPlume
-
Converts the double to a String, then formats it using
StringsPlume.rpad(String,int). - rpad(double, int) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- rpad(int, int) - Static method in class org.plumelib.util.StringsPlume
-
Converts the int to a String, then formats it using
StringsPlume.rpad(String,int). - rpad(int, int) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- rpad(String, int) - Static method in class org.plumelib.util.StringsPlume
-
Returns a string of the specified length, truncated if necessary (in which case the last 3 non-truncated characters are replaced by "..."), and padded with spaces to the right if necessary.
- rpad(String, int) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- rpad(String, int, char) - Static method in class org.plumelib.util.StringsPlume
-
Returns a string of the specified length, truncated if necessary (in which case the last 3 non-truncated characters are replaced by "..."), and padded with the given character to the right if necessary.
- rpad(String, int, char, boolean) - Static method in class org.plumelib.util.StringsPlume
-
Returns a string of the specified length, truncated if necessary (in which case the last 3 non-truncated characters are replaced by "..."), and padded with the given character to the right if necessary.
- rshiftSigned(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns x >> y, the signed right-shift operation applied to its arguments.
- rshiftSigned(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns x >> y, the signed right-shift operation applied to its arguments.
- rshiftUnsigned(int, int) - Static method in class org.plumelib.util.MathPlume
-
Returns x >>> y, the unsigned right-shift operation applied to its arguments.
- rshiftUnsigned(long, long) - Static method in class org.plumelib.util.MathPlume
-
Returns x >>> y, the unsigned right-shift operation applied to its arguments.
- runtime - Static variable in class org.plumelib.util.SystemPlume
-
The Runtime instance for the current execution.
S
- sameContents(T[], T[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns true if the arrays contain the same contents, treated as a set (order and duplicates do not matter).
- second - Variable in class org.plumelib.util.IPair
-
The second element of the pair.
- second - Variable in class org.plumelib.util.MPair
-
The second element of the pair.
- seq - Variable in class org.plumelib.util.Intern.Subsequence
-
The full sequence.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.ComparableArrayComparatorLengthFirst
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.ComparableArrayComparatorLexical
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.DoubleArrayComparatorLexical
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.IntArrayComparatorLengthFirst
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.IntArrayComparatorLexical
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.LongArrayComparatorLengthFirst
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.LongArrayComparatorLexical
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.ObjectArrayComparatorLengthFirst
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.ObjectArrayComparatorLexical
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.Partitioning
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.ArraysPlume.StringArrayComparatorLexical
-
Unique identifier for serialization.
- serialVersionUID - Static variable in exception org.plumelib.util.FileIOException
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.FuzzyFloat.DoubleArrayComparatorLexical
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.LimitedSizeIntSet
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.LimitedSizeLongSet
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.LimitedSizeSet
-
Unique identifier for serialization.
- serialVersionUID - Static variable in exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.StringsPlume.NullableStringComparator
-
Deprecated.Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.StringsPlume.ObjectComparator
-
Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.UnmodifiableIdentityHashMap
-
The serial version UID.
- serialVersionUID - Static variable in class org.plumelib.util.UtilPlume.NullableStringComparator
-
Deprecated.Unique identifier for serialization.
- serialVersionUID - Static variable in class org.plumelib.util.UtilPlume.ObjectComparator
-
Deprecated.Unique identifier for serialization.
- set - Variable in class org.plumelib.util.AbstractMostlySingletonSet
-
The wrapped set, non-null when the state is ANY.
- setDefaultMaybe(Properties, String, String) - Static method in class org.plumelib.util.UtilPlume
-
Set the property only if it was not previously set.
- setEntryStartStop(String, String) - Method in class org.plumelib.util.EntryReader
-
Set the regular expressions for the start and stop of long entries (multiple lines that are read as a group by getEntry()).
- setEntryStartStop(Pattern, Pattern) - Method in class org.plumelib.util.EntryReader
-
Set the regular expressions for the start and stop of long entries (multiple lines that are read as a group by getEntry()).
- setLineNumber(int) - Method in class org.plumelib.util.EntryReader
-
Set the current line number in the current file.
- setnext1() - Method in class org.plumelib.util.OrderedPairIterator
-
Set the next1 variable.
- setnext2() - Method in class org.plumelib.util.OrderedPairIterator
-
Set the next2 variable.
- setRelativeRatio(double) - Method in class org.plumelib.util.FuzzyFloat
-
Set all the fields of this class.
- setValue(V) - Method in class org.plumelib.util.ArrayMap.Entry
- shortEntry - Variable in class org.plumelib.util.EntryReader.Entry
-
True if this is a short entry (blank-line-separated).
- sign(int) - Static method in class org.plumelib.util.MathPlume
-
Returns the sign of its argument.
- SINGLETON - Enum constant in enum org.plumelib.util.AbstractMostlySingletonSet.State
-
A singleton set.
- size - Variable in class org.plumelib.util.ArrayMap
-
The number of used mappings in the representation of this.
- size - Variable in class org.plumelib.util.ArraySet
-
The number of used slots in the representation of this.
- size - Variable in class org.plumelib.util.IdentityArraySet
-
The number of used slots in the representation of this.
- size() - Method in class org.plumelib.util.AbstractMostlySingletonSet
- size() - Method in class org.plumelib.util.ArrayMap.EntrySet
- size() - Method in class org.plumelib.util.ArrayMap.KeySet
- size() - Method in class org.plumelib.util.ArrayMap
- size() - Method in class org.plumelib.util.ArrayMap.Values
- size() - Method in class org.plumelib.util.ArraySet
- size() - Method in class org.plumelib.util.ArraysPlume.ListOrArray
-
Returns the size of the collection this represents.
- size() - Method in class org.plumelib.util.IdentityArraySet
- size() - Method in class org.plumelib.util.LimitedSizeIntSet
-
A lower bound on the number of elements in the set.
- size() - Method in class org.plumelib.util.LimitedSizeLongSet
-
A lower bound on the number of elements in the set.
- size() - Method in class org.plumelib.util.LimitedSizeSet
-
A lower bound on the number of elements in the set.
- size() - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- sizeModificationCount - Variable in class org.plumelib.util.ArrayMap
-
The number of times this map's size has been modified by adding or removing an element (changing the value associated with a key does not count as a change).
- sizeModificationCount - Variable in class org.plumelib.util.ArraySet
-
The number of times this set's size has been modified by adding or removing an element.
- sizeModificationCount - Variable in class org.plumelib.util.IdentityArraySet
-
The number of times this set's size has been modified by adding or removing an element.
- skip(long) - Method in class org.plumelib.util.EntryReader.DummyReader
- skip(long) - Method in class org.plumelib.util.EntryReader
- sleep(long) - Static method in class org.plumelib.util.SystemPlume
-
Like Thread.sleep, but does not throw any checked exceptions, so it is easier for clients to use.
- sleep(long) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- sort() - Method in class org.plumelib.util.ArraySet
-
Sorts the internal representation of this.
- sort(Comparator<? super E>) - Method in class org.plumelib.util.ArraySet
-
Sorts the internal representation of this, using the given comparator.
- sorted(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns whether the array is sorted.
- sorted(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns whether the array is sorted.
- sorted(Iterable<T>) - Static method in class org.plumelib.util.ToStringComparator
-
Returns a copy of the input, sorted according to the elements'
toString(). - sortedKeySet(Map<K, V>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a sorted version of m.keySet().
- sortedKeySet(Map<K, V>, Comparator<K>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a sorted version of m.keySet().
- sortedSetContainsAll(SortedSet<T>, SortedSet<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns true if the two sets contain the same elements in the same order.
- sortedSetEquals(SortedSet<T>, SortedSet<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns true if the two sets contain the same elements in the same order.
- sortList(List<T>, Comparator<? super T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns the sorted version of the list.
- split(String, char) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- split(String, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- splitLines(String) - Static method in class org.plumelib.util.StringsPlume
-
Returns an array of Strings, one for each line in the argument.
- splitLines(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- stackTraceToString(Throwable) - Static method in class org.plumelib.util.UtilPlume
-
Returns a String representation of the stack trace (the backtrace) of the given Throwable.
- start - Variable in class org.plumelib.util.Intern.Subsequence
-
The start index, inclusive.
- state - Variable in class org.plumelib.util.AbstractMostlySingletonSet
-
The current state.
- State() - Constructor for enum org.plumelib.util.AbstractMostlySingletonSet.State
- streamCopy(InputStream, OutputStream) - Static method in class org.plumelib.util.FilesPlume
-
Copy the contents of the input stream to the output stream.
- streamCopy(InputStream, OutputStream) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- streamLines(InputStream) - Static method in class org.plumelib.util.FilesPlume
-
Reads all lines from the stream and returns them in a
List<String>. - streamLines(InputStream) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- streamString(InputStream) - Static method in class org.plumelib.util.FilesPlume
-
Returns a String containing all the characters from the input stream.
- streamString(InputStream) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- StringArrayComparatorLexical() - Constructor for class org.plumelib.util.ArraysPlume.StringArrayComparatorLexical
-
Deprecated.
- StringArrayHasher() - Constructor for class org.plumelib.util.Intern.StringArrayHasher
-
Create a new StringArrayHasher.
- stringArrays() - Static method in class org.plumelib.util.Intern
-
Returns all the interned string arrays.
- StringsPlume - Class in org.plumelib.util
-
Utility functions that manipulate Strings: replacement; prefixing and indentation; splitting and joining; quoting and escaping; whitespace; comparisons; StringTokenizer; debugging variants of toString; diagnostic output; miscellaneous.
- StringsPlume() - Constructor for class org.plumelib.util.StringsPlume
-
This class is a collection of methods; it does not represent anything.
- StringsPlume.NullableStringComparator - Class in org.plumelib.util
-
Deprecated.use
Comparator.nullsFirst(Comparator.naturalOrder()) - StringsPlume.ObjectComparator - Class in org.plumelib.util
-
Orders Objects according to their
toString()representation. - subarray(boolean[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a subarray of the given array.
- subarray(byte[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a subarray of the given array.
- subarray(char[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a subarray of the given array.
- subarray(double[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a subarray of the given array.
- subarray(float[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a subarray of the given array.
- subarray(int[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a subarray of the given array.
- subarray(long[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a subarray of the given array.
- subarray(short[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a subarray of the given array.
- subarray(Object[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a subarray of the given array.
- subarray(String[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a subarray of the given array.
- subarray(List<T>, int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a sublist of the given list.
- Subsequence(T, int, int) - Constructor for class org.plumelib.util.Intern.Subsequence
-
Creates a subsequence view.
- SubsequenceHasher() - Constructor for class org.plumelib.util.Intern.SubsequenceHasher
-
Create a new SubsequenceHasher.
- subsequentTimestamp - Variable in class org.plumelib.util.SystemPlume.GcHistoryItem
-
When the subsequent collection happened.
- suffix - Variable in class org.plumelib.util.FilesPlume.WildcardFilter
-
The text after the wildcard.
- suffix - Variable in class org.plumelib.util.UtilPlume.WildcardFilter
-
Deprecated.The text after the wildcard.
- sum(double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the sum of an array of doubles.
- sum(double[][]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the sum of all the elements of a 2d array of doubles.
- sum(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the sum of an array of integers.
- sum(int[][]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns the sum of all the elements of a 2d array of integers.
- SystemPlume - Class in org.plumelib.util
-
Utility methods relating to the JVM runtime system: sleep and garbage collection.
- SystemPlume() - Constructor for class org.plumelib.util.SystemPlume
-
This class is a collection of methods; it does not represent anything.
- SystemPlume.GcHistoryItem - Class in org.plumelib.util
-
A triple of (timestamp, collection time, subsequent timestamp).
T
- theArray - Variable in class org.plumelib.util.ArraysPlume.ListOrArray
-
The array that this object wraps, or null.
- theArrayMap() - Method in class org.plumelib.util.ArrayMap.Entry
-
Returns the ArrayMap associated with this entry.
- theList - Variable in class org.plumelib.util.ArraysPlume.ListOrArray
-
The list that this object wraps, or null.
- timestamp - Variable in class org.plumelib.util.SystemPlume.GcHistoryItem
-
When the collection happened.
- toArray() - Method in class org.plumelib.util.AbstractMostlySingletonSet
- toArray() - Method in class org.plumelib.util.ArrayMap.KeySet
- toArray() - Method in class org.plumelib.util.ArrayMap.Values
- toArray() - Method in class org.plumelib.util.ArraysPlume.ListOrArray
-
Returns an array with the same contents as this.
- toArray(S[]) - Method in class org.plumelib.util.AbstractMostlySingletonSet
- toArray(T[]) - Method in class org.plumelib.util.ArrayMap.KeySet
- toArray(T[]) - Method in class org.plumelib.util.ArrayMap.Values
- tokens(String) - Static method in class org.plumelib.util.StringsPlume
-
Returns a ArrayList of the Strings returned by
StringTokenizer(String)with the given arguments. - tokens(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- tokens(String, String) - Static method in class org.plumelib.util.StringsPlume
-
Returns a ArrayList of the Strings returned by
StringTokenizer(String,String)with the given arguments. - tokens(String, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- tokens(String, String, boolean) - Static method in class org.plumelib.util.StringsPlume
-
Returns a ArrayList of the Strings returned by
StringTokenizer(String,String,boolean)with the given arguments. - tokens(String, String, boolean) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- toString() - Method in class org.plumelib.util.AbstractMostlySingletonSet
- toString() - Method in class org.plumelib.util.ArraysPlume.ListOrArray
- toString() - Method in class org.plumelib.util.FileWriterWithName
-
Returns the name of the file being written by this.
- toString() - Method in class org.plumelib.util.Intern.Subsequence
- toString() - Method in class org.plumelib.util.IPair
- toString() - Method in class org.plumelib.util.LimitedSizeIntSet
- toString() - Method in class org.plumelib.util.LimitedSizeLongSet
- toString() - Method in class org.plumelib.util.LimitedSizeSet
- toString() - Method in class org.plumelib.util.MPair
- toString() - Method in class org.plumelib.util.Pair
-
Deprecated.
- toString() - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- toString() - Method in class org.plumelib.util.WeakIdentityPair
- toString(Object) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a string representation of the contents of the specified array.
- toString(Collection<? extends Object>, boolean) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a string representation of the collection.
- toString(Collection<? extends Object>) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a string representation of the collection.
- toString(Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a string representation of the array.
- toString(Object[], boolean) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a string representation of the array.
- toStringAndClass(Object) - Static method in class org.plumelib.util.StringsPlume
-
Gives a string representation of the value and its class.
- toStringAndClass(Object) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- toStringAndClass(Object, boolean) - Static method in class org.plumelib.util.StringsPlume
-
Gives a string representation of the value and its class.
- toStringComparator - Static variable in class org.plumelib.util.ClassDeterministic
-
Compares objects by the result of toString().
- ToStringComparator - Class in org.plumelib.util
-
A comparator that orders values based on the lexicographic ordering of their toString().
- ToStringComparator() - Constructor for class org.plumelib.util.ClassDeterministic.ToStringComparator
-
Create a new ToStringComparator.
- ToStringComparator() - Constructor for class org.plumelib.util.ToStringComparator
-
Creates a ToStringComparator.
- toStringDebug() - Method in class org.plumelib.util.ArraysPlume.ListOrArray
-
Returns a verbose representation of this, for debugging.
- toStringQuoted(Collection<? extends Object>) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a string representation of the collection.
- toStringQuoted(Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Returns a string representation of the array.
- toStringTruncated(Object, int) - Static method in class org.plumelib.util.StringsPlume
-
If the string representation of the given object is greater than the given length, truncate it to that length.
- toTArray(List<T>) - Static method in class org.plumelib.util.ArraysPlume
-
Call this method in order to suppress compiler warnings.
- transform(Iterable<FROM>, Function<? super FROM, ? extends TO>) - Static method in class org.plumelib.util.CollectionsPlume
-
Applies the function to each element of the given iterable, producing a new list of the results.
U
- uid - Variable in class org.plumelib.util.DeterministicObject
-
The unique ID for this object.
- unescapeJava(String) - Static method in class org.plumelib.util.StringsPlume
-
Convert a string from Java source code format (with escape sequences) into the string it would represent at run time.
- unescapeJava(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- unescapeNonJava(String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- UniqueId - Interface in org.plumelib.util
-
An interface for objects that have a unique ID (unique identifier).
- UniqueIdMap<E> - Class in org.plumelib.util
-
Provides a unique ID for classes that you cannot modify.
- UniqueIdMap() - Constructor for class org.plumelib.util.UniqueIdMap
-
Create a new UniqueIdMap.
- UnmodifiableIdentityHashMap<K,
V> - Class in org.plumelib.util -
A wrapper around an
IdentityHashMapthat makes it unmodifiable. - UnmodifiableIdentityHashMap(IdentityHashMap<K, V>) - Constructor for class org.plumelib.util.UnmodifiableIdentityHashMap
-
Create an UnmodifiableIdentityHashMap.
- usedMemory() - Static method in class org.plumelib.util.SystemPlume
-
Returns the amount of used memory in the JVM.
- usedMemory() - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- usedMemory(boolean) - Static method in class org.plumelib.util.SystemPlume
-
Returns the amount of used memory in the JVM.
- usedMemory(boolean) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- userHome - Static variable in class org.plumelib.util.FilesPlume
-
The user's home directory.
- userHome - Static variable in class org.plumelib.util.UtilPlume
-
The user's home directory.
- UtilPlume - Class in org.plumelib.util
-
Utility methods that do not belong elsewhere in the plume package: BitSet; hashing; ProcessBuilder; properties; Throwable.
- UtilPlume() - Constructor for class org.plumelib.util.UtilPlume
-
This class is a collection of methods; it does not represent anything.
- UtilPlume.NullableStringComparator - Class in org.plumelib.util
-
Deprecated.
- UtilPlume.ObjectComparator - Class in org.plumelib.util
-
Deprecated.
- UtilPlume.WildcardFilter - Class in org.plumelib.util
-
Deprecated.
V
- value - Variable in class org.plumelib.util.AbstractMostlySingletonSet
-
The current value, non-null when the state is SINGLETON.
- ValueIterator() - Constructor for class org.plumelib.util.ArrayMap.ValueIterator
-
Creates a new ValueIterator.
- valueOf(String) - Static method in enum org.plumelib.util.AbstractMostlySingletonSet.State
-
Returns the enum constant of this type with the specified name.
- values - Variable in class org.plumelib.util.ArrayMap
-
The values.
- values - Variable in class org.plumelib.util.ArraySet
-
The values.
- values - Variable in class org.plumelib.util.IdentityArraySet
-
The values.
- values - Variable in class org.plumelib.util.LimitedSizeIntSet
-
If null, then at least numValues distinct values have been seen.
- values - Variable in class org.plumelib.util.LimitedSizeLongSet
-
If null, then at least numValues distinct values have been seen.
- values - Variable in class org.plumelib.util.LimitedSizeSet
-
If null, then at least
LimitedSizeSet.numValuesdistinct values have been seen (andLimitedSizeSet.numValuesequals themaxValuesargument to the constructor). - values - Variable in class org.plumelib.util.RandomSelector
-
The values chosen.
- values() - Static method in enum org.plumelib.util.AbstractMostlySingletonSet.State
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Method in class org.plumelib.util.ArrayMap
- values() - Method in class org.plumelib.util.UnmodifiableIdentityHashMap
- Values() - Constructor for class org.plumelib.util.ArrayMap.Values
-
Creates a new Values.
- valuesCollection - Variable in class org.plumelib.util.ArrayMap
-
The view of the values.
- valuesIter() - Method in class org.plumelib.util.MultiRandSelector
-
Returns an iterator of all objects selected.
W
- WeakIdentityPair<V1 extends @NonNull Object,
V2 extends @NonNull Object> - Class in org.plumelib.util -
Immutable pair class with weakly-held values.
- WeakIdentityPair(V1, V2) - Constructor for class org.plumelib.util.WeakIdentityPair
-
Deprecated.use
of(T1, T2) - WildcardFilter(String) - Constructor for class org.plumelib.util.FilesPlume.WildcardFilter
-
Create a filter that accepts files whose name matches the given wildcard.
- WildcardFilter(String) - Constructor for class org.plumelib.util.UtilPlume.WildcardFilter
-
Deprecated.Create a filter that accepts files whose name matches the given wildcard.
- withoutDuplicates(List<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a copy of the list with duplicates removed, but retaining the original order.
- withoutDuplicatesComparable(List<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a list with the same contents as its argument, but without duplicates.
- withoutDuplicatesSorted(List<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a list with the same contents as its argument, but sorted and without duplicates.
- wrap(IdentityHashMap<K, V>) - Static method in class org.plumelib.util.UnmodifiableIdentityHashMap
-
Create an
UnmodifiableIdentityHashMapwrapper for a map. - writeFile(File, String) - Static method in class org.plumelib.util.FilesPlume
-
Creates a file with the given name and writes the specified string to it.
- writeFile(File, String) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
- writeObject(Object, File) - Static method in class org.plumelib.util.FilesPlume
-
Writes an Object to a File.
- writeObject(Object, File) - Static method in class org.plumelib.util.UtilPlume
-
Deprecated.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
StringsPlume.abbreviateNumber(long)