- a - Variable in class org.plumelib.util.Pair
-
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
-
- 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'.
- accept(File, String) - Method in class org.plumelib.util.UtilPlume.WildcardFilter
-
- acceptIter(Iterator<T>) - Method in class org.plumelib.util.MultiRandSelector
-
Use all the iterator's elements in the pool to select from.
- 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(T) - Method in class org.plumelib.util.LimitedSizeSet
-
Add an element to this set.
- addAll(LimitedSizeIntSet) - Method in class org.plumelib.util.LimitedSizeIntSet
-
Add all elements of s
to this set.
- addAll(LimitedSizeLongSet) - Method in class org.plumelib.util.LimitedSizeLongSet
-
Add all elements of s
to this set.
- addAll(LimitedSizeSet<? extends T>) - Method in class org.plumelib.util.LimitedSizeSet
-
Add all elements of s
to this set.
- allNull(Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return true if all elements of a are null.
- allNull(List<?>) - Static method in class org.plumelib.util.ArraysPlume
-
Return true if all elements of a are null.
- anyNull(Object[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return true if a contains null.
- anyNull(List<?>) - Static method in class org.plumelib.util.ArraysPlume
-
Return true if a contains null.
- appendProperty(Properties, String, String) - Static method in class org.plumelib.util.UtilPlume
-
Set the property to its previous value concatenated to the given value.
- ArraysPlume - Class in org.plumelib.util
-
Utilities for manipulating arrays and collections.
- ArraysPlume.ComparableArrayComparatorLengthFirst<T extends java.lang.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 java.lang.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.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.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 String
if 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) String
if it is a regex with at least the
given number of groups, otherwise throws an error.
- assignToBucket(ELEMENT) - Method in interface org.plumelib.util.Partitioner
-
Returns a key representing the bucket containing obj.
- b - Variable in class org.plumelib.util.Pair
-
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
-
- 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
-
Returns a BufferedOutputStream for the file, accounting for the possibility that the file is
compressed.
- bufferedFileReader(String) - Static method in class org.plumelib.util.UtilPlume
-
Returns a BufferedReader for the file, accounting for the possibility that the file is
compressed.
- bufferedFileReader(File) - Static method in class org.plumelib.util.UtilPlume
-
Returns a BufferedReader for the file, accounting for the possibility that the file is
compressed.
- bufferedFileReader(String, String) - Static method in class org.plumelib.util.UtilPlume
-
Returns a BufferedReader for the file, accounting for the possibility that the file is
compressed.
- bufferedFileReader(File, String) - Static method in class org.plumelib.util.UtilPlume
-
Returns a BufferedReader for the file, accounting for the possibility that the file is
compressed.
- bufferedFileWriter(String) - Static method in class org.plumelib.util.UtilPlume
-
Returns a BufferedWriter for the file, accounting for the possibility that the file is
compressed.
- bufferedFileWriter(String, boolean) - Static method in class org.plumelib.util.UtilPlume
-
Returns a BufferedWriter for the file, accounting for the possibility that the file is
compressed.
- canCreateAndWrite(File) - Static method in class org.plumelib.util.UtilPlume
-
Returns true if the file exists and is writable, or if the file can be created.
- CheckedPatternSyntaxException(PatternSyntaxException) - Constructor for exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Constructs a new CheckedPatternSyntaxException equivalent to the given PatternSyntaxException
.
- CheckedPatternSyntaxException(String, String, int) - Constructor for exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Constructs a new CheckedPatternSyntaxException.
- ClassDeterministic - Class in org.plumelib.util
-
Deterministic versions of java.lang.Class
methods, which return arrays in sorted order.
- clear() - Method in class org.plumelib.util.WeakHasherMap
-
Removes all mappings from this map.
- clear() - Method in class org.plumelib.util.WeakIdentityHashMap
-
Removes all mappings from this map.
- clone() - Method in class org.plumelib.util.LimitedSizeIntSet
-
- clone() - Method in class org.plumelib.util.LimitedSizeLongSet
-
- clone() - Method in class org.plumelib.util.LimitedSizeSet
-
- CollectionsPlume - Class in org.plumelib.util
-
Utility functions for Collections, ArrayList, Iterator, and Map.
- CollectionsPlume.EnumerationIterator<T> - Class in org.plumelib.util
-
Converts an Enumeration into an Iterator.
- CollectionsPlume.FilteredIterator<T> - 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.
- 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
-
- ComparableArrayComparatorLengthFirst() - Constructor for class org.plumelib.util.ArraysPlume.ComparableArrayComparatorLengthFirst
-
- ComparableArrayComparatorLexical() - Constructor for class org.plumelib.util.ArraysPlume.ComparableArrayComparatorLexical
-
- 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(double[], double[]) - Method in class org.plumelib.util.ArraysPlume.DoubleArrayComparatorLexical
-
Compare two arrays lexically (element-by-element).
- 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.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(double[], double[]) - Method in class org.plumelib.util.FuzzyFloat.DoubleArrayComparatorLexical
-
Lexically compares o1 and o2 as double arrays.
- compare(String, String) - Method in class org.plumelib.util.StringsPlume.NullableStringComparator
-
- compare(Object, Object) - Method in class org.plumelib.util.StringsPlume.ObjectComparator
-
- compare(Object, Object) - Method in class org.plumelib.util.ToStringComparator
-
- compare(String, String) - Method in class org.plumelib.util.UtilPlume.NullableStringComparator
-
Deprecated.
- compare(Object, Object) - Method in class org.plumelib.util.UtilPlume.ObjectComparator
-
Deprecated.
- concat(T[], T[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both arguments, in order.
- concat(T[], List<T>) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both arguments, in order.
- concat(List<T>, T[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both arguments, in order.
- concat(List<T>, List<T>) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both arguments, in order.
- concat(String[], String[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both argument arrays, in order.
- concat(byte[], byte[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both argument arrays, in order.
- concat(boolean[], boolean[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both argument arrays, in order.
- concat(char[], char[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both argument arrays, in order.
- concat(double[], double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both argument arrays, in order.
- concat(float[], float[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both argument arrays, in order.
- concat(int[], int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both argument arrays, in order.
- concat(long[], long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both argument arrays, in order.
- concat(short[], short[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array that contains all the elements of both argument arrays, in order.
- contains(int) - Method in class org.plumelib.util.LimitedSizeIntSet
-
Return true if this set contains the given element.
- contains(long) - Method in class org.plumelib.util.LimitedSizeLongSet
-
Return true if this set contains the given element.
- contains(T) - Method in class org.plumelib.util.LimitedSizeSet
-
Return true if this set contains the given element.
- containsKey(Object) - Method in class org.plumelib.util.WeakHasherMap
-
Returns true
if this map contains a mapping for the specified key.
- containsKey(Object) - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns true
if this map contains a mapping for the specified key.
- containsValue(Object) - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns true
if this map maps one or more keys to the specified value.
- count(String, int) - Static method in class org.plumelib.util.StringsPlume
-
Return the number of times the character appears in the string.
- count(String, String) - Static method in class org.plumelib.util.StringsPlume
-
Return the number of times the second string appears in the first.
- count(String, int) - Static method in class org.plumelib.util.UtilPlume
-
- count(String, String) - Static method in class org.plumelib.util.UtilPlume
-
- 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
-
- countLines(String) - Static method in class org.plumelib.util.UtilPlume
-
Count the number of lines in the specified file.
- 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 start
over dims
dimensions, for dims
> 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.
- createTempDir(String, String) - Static method in class org.plumelib.util.UtilPlume
-
Creates an empty directory in the default temporary-file directory, using the given prefix and
suffix to generate its name.
- elementRange(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the difference between the smallest and largest array elements.
- elementRange(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the difference between the smallest and largest array elements.
- Entry(String, String, String, long, boolean) - Constructor for class org.plumelib.util.EntryReader.Entry
-
Create an entry.
- EntryReader - Class in org.plumelib.util
-
Class that reads records or "entries" from a file.
- EntryReader(InputStream, String, String, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create a EntryReader that uses the given character set.
- EntryReader(InputStream, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create a EntryReader that does not support comments or include directives.
- EntryReader(InputStream, String, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create a EntryReader.
- EntryReader(InputStream, String) - Constructor for class org.plumelib.util.EntryReader
-
Create a EntryReader that uses the default character set and does not support comments or
include directives.
- EntryReader(InputStream) - Constructor for class org.plumelib.util.EntryReader
-
Create a EntryReader that does not support comments or include directives.
- EntryReader(Reader, String, String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create a EntryReader.
- EntryReader(Reader) - Constructor for class org.plumelib.util.EntryReader
-
Create a 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) - Constructor for class org.plumelib.util.EntryReader
-
Create a EntryReader that does not support comments or include directives.
- EntryReader(Path, String) - Constructor for class org.plumelib.util.EntryReader
-
Create a 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) - Constructor for class org.plumelib.util.EntryReader
-
Create a EntryReader that does not support comments or include directives.
- EntryReader(File, String) - Constructor for class org.plumelib.util.EntryReader
-
Create a 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) - Constructor for class org.plumelib.util.EntryReader
-
Create a EntryReader that does not support comments or include directives.
- EntryReader(String, String) - Constructor for class org.plumelib.util.EntryReader
-
Create a EntryReader that does not support comments or include directives.
- EntryReader.Entry - Class in org.plumelib.util
-
Descriptor for an entry (record, paragraph, etc.).
- entrySet() - Method in class org.plumelib.util.WeakHasherMap
-
Returns a Set
view of the mappings in this map.
- entrySet() - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns a collection view of the mappings contained in this map.
- entryStartRegex - Variable in class org.plumelib.util.EntryReader
-
Regular expression that starts a long entry.
- entryStopRegex - Variable in class org.plumelib.util.EntryReader
-
See entryStartRegex
.
- EnumerationIterator(Enumeration<T>) - Constructor for class org.plumelib.util.CollectionsPlume.EnumerationIterator
-
Create an Iterator that yields the elements of the given Enumeration.
- 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.UtilPlume
-
Return true iff files have the same contents.
- equalFiles(String, String, boolean) - Static method in class org.plumelib.util.UtilPlume
-
Return true iff the files have the same contents.
- equals(Object, Object) - Method in interface org.plumelib.util.Hasher
-
The equality function over the objects being hashed.
- equals(Object) - Method in class org.plumelib.util.Pair
-
- equals(Object) - Method in class org.plumelib.util.WeakIdentityPair
-
- escapeJava(String) - Static method in class org.plumelib.util.StringsPlume
-
Escapes a String so that it is expressible in Java source code.
- escapeJava(Character) - Static method in class org.plumelib.util.StringsPlume
-
- escapeJava(char) - Static method in class org.plumelib.util.StringsPlume
-
- escapeJava(String) - Static method in class org.plumelib.util.UtilPlume
-
- escapeJava(Character) - Static method in class org.plumelib.util.UtilPlume
-
- escapeJava(char) - Static method in class org.plumelib.util.UtilPlume
-
- 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
-
- escapeNonJava(String) - Static method in class org.plumelib.util.UtilPlume
-
- escapeNonJava(Character) - Static method in class org.plumelib.util.UtilPlume
-
- expandFilename(File) - Static method in class org.plumelib.util.UtilPlume
-
Does tilde expansion on a file name (to the user's home directory).
- expandFilename(String) - Static method in class org.plumelib.util.UtilPlume
-
Does tilde expansion on a file name (to the user's home directory).
- fileInputStream(Path) - Static method in class org.plumelib.util.UtilPlume
-
Returns an InputStream for the file, accounting for the possibility that the file is
compressed.
- fileInputStream(File) - Static method in class org.plumelib.util.UtilPlume
-
Returns an InputStream for the file, accounting for the possibility that the file is
compressed.
- 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(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, 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, String, int) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(LineNumberReader, Throwable) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(String, LineNumberReader) - 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, String) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- FileIOException(LineNumberReader, String, Throwable) - 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, 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(LineNumberReader, File, Throwable) - Constructor for exception org.plumelib.util.FileIOException
-
Create a FileIOException.
- fileLines(String) - Static method in class org.plumelib.util.UtilPlume
-
- filename - Variable in class org.plumelib.util.EntryReader.Entry
-
Filename in which the entry was found.
- fileName - Variable in exception org.plumelib.util.FileIOException
-
The file being read when the IOException occurred.
- fileReader(String) - Static method in class org.plumelib.util.UtilPlume
-
Returns a Reader for the file, accounting for the possibility that the file is compressed.
- fileReader(Path) - Static method in class org.plumelib.util.UtilPlume
-
Returns a Reader for the file, accounting for the possibility that the file is compressed.
- fileReader(Path, String) - Static method in class org.plumelib.util.UtilPlume
-
Returns a Reader for the file, accounting for the possibility that the file is compressed.
- fileReader(File) - Static method in class org.plumelib.util.UtilPlume
-
Returns a Reader for the file, accounting for the possibility that the file is compressed.
- fileReader(File, String) - Static method in class org.plumelib.util.UtilPlume
-
Returns a Reader for the file, accounting for the possibility that the file is compressed.
- FileWriterWithName - Class in org.plumelib.util
-
- 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.
- 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.
- Filter<T> - 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 itor
that match the given Filter.
- firstLine - Variable in class org.plumelib.util.EntryReader.Entry
-
First line of the entry.
- fnCompose(int[], int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the composition of the given two functions, all of which are represented as arrays.
- fnIdentity(int) - Static method in class org.plumelib.util.ArraysPlume
-
Return an array [0..length).
- fnInverse(int[], int) - Static method in class org.plumelib.util.ArraysPlume
-
Return 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
-
Return true iff the array does not contain -1.
- 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.
- gc() - Static method in class org.plumelib.util.SystemPlume
-
Perform garbage collection.
- gc() - Static method in class org.plumelib.util.UtilPlume
-
- gcd(int, int) - Static method in class org.plumelib.util.MathPlume
-
Return the greatest common divisor of the two arguments.
- gcd(int[]) - Static method in class org.plumelib.util.MathPlume
-
Return the greatest common divisor of the elements of int array a.
- gcd(long, long) - Static method in class org.plumelib.util.MathPlume
-
Return the greatest common divisor of the two arguments.
- gcd(long[]) - Static method in class org.plumelib.util.MathPlume
-
Return the greatest common divisor of the elements of long array a.
- gcd(double, double) - Static method in class org.plumelib.util.MathPlume
-
Return the greatest common divisor of the two arguments.
- gcd(double[]) - Static method in class org.plumelib.util.MathPlume
-
Return the greatest common divisor of the elements of double array a.
- gcdDifferences(int[]) - Static method in class org.plumelib.util.MathPlume
-
Return 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
-
Return the gcd (greatest common divisor) of the differences between the elements of long array
a.
- gcdDifferences(double[]) - Static method in class org.plumelib.util.MathPlume
-
Return the gcd (greatest common divisor) of the differences between the elements of double
array a.
- gcPercentage() - Static method in class org.plumelib.util.SystemPlume
-
Returns the percentage of time spent garbage collecting, in the past minute.
- gcPercentage(int) - Static method in class org.plumelib.util.SystemPlume
-
Returns the percentage of time spent garbage collecting, in the past seconds
seconds.
- get(E) - Method in class org.plumelib.util.UniqueIdMap
-
Get the unique ID for the given object.
- get(Object) - Method in class org.plumelib.util.WeakHasherMap
-
Returns the value to which this map maps the specified key
.
- get(Object) - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns the value to which the specified key is mapped in this weak hash map, or null
if the map contains no mapping for this key.
- 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.
- 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.
- 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(Pattern) - Method in class org.plumelib.util.EntryReader.Entry
-
Return a substring of the entry body that matches the specified regular expression.
- getDescription() - Method in exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Retrieves the description of the error.
- 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
-
Return the name of the file being written by this.
- getFirst() - Method in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
-
Return the first element of the iterator that was used to construct this.
- getFromSet(Set<?>, Object) - Static method in class org.plumelib.util.CollectionsPlume
-
Return the object in this set that is equal to key.
- getIndex() - Method in exception org.plumelib.util.RegexUtil.CheckedPatternSyntaxException
-
Retrieves the error index.
- getLast() - Method in class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
-
Return the last element of the iterator that was used to construct this.
- getLineNumber() - Method in class org.plumelib.util.EntryReader
-
Return the current line number in the current file.
- 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.
- 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.
- getValues() - Method in class org.plumelib.util.RandomSelector
-
Returns values, modifies none.
- GraphPlume - Class in org.plumelib.util
-
Graph utility methods.
- 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
.
- 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
-
- 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
-
Return the printed representation of a value, with line indented by indent
spaces.
- indentLines(int, Object) - Static method in class org.plumelib.util.UtilPlume
-
- indentLinesExceptFirst(int, Object) - Static method in class org.plumelib.util.StringsPlume
-
Return the printed representation of a value, with each line (except the first) indented by
indent
spaces.
- indentLinesExceptFirst(int, Object) - Static method in class org.plumelib.util.UtilPlume
-
- 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, 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<? 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, testing for equality using
the equals method.
- indexOf(int[], int) - 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 occurrence of the given element in the array.
- 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.
- 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.
- indexOf(boolean[], boolean) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array.
- indexOf(double[], double) - Static method in class org.plumelib.util.ArraysPlume
-
Searches for the first occurrence of the given element in the array.
- 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.
- 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(List<?>, 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(Object[], List<?>) - 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(List<?>, List<?>) - 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.
- 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(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(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(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(double[], double) - Method in class org.plumelib.util.FuzzyFloat
-
Searches for the first occurrence of elt in a.
- indexOf(double[], double[]) - Method in class org.plumelib.util.FuzzyFloat
-
Searches for the first subsequence of a
that matches sub
elementwise.
- 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, 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, 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(List<?>, 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(Object[], List<?>) - 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<?>, List<?>) - 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).
- inferLineSeparator(String) - Static method in class org.plumelib.util.UtilPlume
-
Tries to infer the line separator used in a file.
- inferLineSeparator(File) - Static method in class org.plumelib.util.UtilPlume
-
Tries to infer the line separator used in a file.
- 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
-
- IntArrayComparatorLexical() - Constructor for class org.plumelib.util.ArraysPlume.IntArrayComparatorLexical
-
- Intern - Class in org.plumelib.util
-
Utilities for interning objects.
- intern(String) - Static method in class org.plumelib.util.Intern
-
Interns a String.
- intern(long) - Static method in class org.plumelib.util.Intern
-
Interns a long.
- intern(double) - Static method in class org.plumelib.util.Intern
-
Interns a double A no-op.
- 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(int[]) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) an int[].
- intern(long[]) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) a long[].
- intern(Double) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) a Double.
- intern(double[]) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) a double[].
- intern(String[]) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) a String[].
- intern(Object[]) - Static method in class org.plumelib.util.Intern
-
Intern (canonicalize) an Object[].
- 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.
- 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.
- 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.
- 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.
- internStrings(String[]) - Static method in class org.plumelib.util.Intern
-
Replace each element of the array by its interned version.
- internSubsequence(int[], int, int) - Static method in class org.plumelib.util.Intern
-
Return 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(double[], 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.UtilPlume
-
Returns the cardinality of the intersection of the two BitSets.
- intersectionCardinality(BitSet, BitSet, BitSet) - Static method in class org.plumelib.util.UtilPlume
-
Returns the cardinality of the intersection of the three BitSets.
- intersectionCardinalityAtLeast(BitSet, BitSet, int) - Static method in class org.plumelib.util.UtilPlume
-
Returns true if the cardinality of the intersection of the two BitSets is at least the given
value.
- intersectionCardinalityAtLeast(BitSet, BitSet, BitSet, int) - Static method in class org.plumelib.util.UtilPlume
-
Returns true if the cardinality of the intersection of the three BitSets is at least the given
value.
- 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.WeakHasherMap
-
Returns true
if this map contains no key-value mappings.
- isEmpty() - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns true
if this map contains no key-value mappings.
- 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
-
Return true if the argument is interned (is canonical among all objects equal to itself).
- 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.
- isRegex(char) - Static method in class org.plumelib.util.RegexUtil
-
Returns true if the argument is a syntactically valid regular expression.
- 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.
- 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<?>, 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<?>, 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<?>, List<?>, 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(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(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(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.
- 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<?>, 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<?>, 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<?>, List<?>, 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
-
Return whether smaller is a subset of bigger.
- isSubset(double[], double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return whether smaller is a subset of bigger.
- isSubset(String[], String[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return 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.
- iterator() - Method in class org.plumelib.util.EntryReader
-
Return a line-by-line iterator for this file.
- IteratorEnumeration(Iterator<T>) - Constructor for class org.plumelib.util.CollectionsPlume.IteratorEnumeration
-
Create an Enumeration that contains the elements returned by the given Iterator.
- iteratorToIterable(Iterator<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Converts an Iterator to an Iterable.
- 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.
- mapList(Function<? super FROM, TO>, Collection<FROM>) - Static method in class org.plumelib.util.CollectionsPlume
-
Applies the function to each element of the given collection, producing a list of the results.
- mapToString(Map<K, V>) - Static method in class org.plumelib.util.CollectionsPlume
-
Returns a multi-line string representation of a map.
- 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).
- mapToStringAndClass(Map<?, ?>) - Static method in class org.plumelib.util.StringsPlume
-
Convert a map to a string, printing the runtime class of keys and values.
- mapToStringAndClass(Map<?, ?>) - Static method in class org.plumelib.util.UtilPlume
-
- mark(int) - Method in class org.plumelib.util.EntryReader
-
- MathPlume - Class in org.plumelib.util
-
Mathematical utilities.
- max(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the largest value in the array.
- max(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the largest value in the array.
- max(double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the largest value in the array.
- max(Integer[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the largest value in the array.
- max(Long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the largest value in the array.
- max(Double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the largest value in the array.
- 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 LimitedSizeIntSet
objects 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 LimitedSizeLongSet
objects 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.
- 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 itor1
then those of itor2
.
- min(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the smallest value in the array.
- min(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the smallest value in the array.
- min(double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the smallest value in the array.
- min(Integer[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the smallest value in the array.
- min(Long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the smallest value in the array.
- min(Double[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return the smallest value in the array.
- minAndMax(int[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return a two-element array containing the smallest and largest values in the array.
- minAndMax(long[]) - Static method in class org.plumelib.util.ArraysPlume
-
Return a two-element array containing the smallest and largest values in the array.
- missingNumbers(int[]) - Static method in class org.plumelib.util.MathPlume
-
Return 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
-
Return 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.
- 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
-
Return z such that (z == x mod y) && (0 <= z < abs(y))
.
- modNonnegative(long, long) - Static method in class org.plumelib.util.MathPlume
-
Return z such that (z == x mod y) && (0 <= z < abs(y))
.
- modPositive(int, int) - Static method in class org.plumelib.util.MathPlume
-
- modPositive(long, long) - Static method in class org.plumelib.util.MathPlume
-
- modulus(int[]) - Static method in class org.plumelib.util.MathPlume
-
Return 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
-
Return 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
-
Return 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
-
Return 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.
- 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.
- mul(double, double) - Static method in class org.plumelib.util.MathPlume
-
Multiplies its arguments.
- MultiRandSelector<T> - 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(int, Partitioner<T, T>) - Constructor for class org.plumelib.util.MultiRandSelector
-
Create a MultiRandSelector that chooses numElts
elements from each bucket.
- 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 numElts
from each partition, using the given
Random.
- 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.
- randomElements(Iterator<T>, int) - Static method in class org.plumelib.util.CollectionsPlume
-
Return 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
-
Return 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(int) - Constructor for class org.plumelib.util.RandomSelector
-
- RandomSelector(int, Random) - Constructor for class org.plumelib.util.RandomSelector
-
- RandomSelector(double, Random) - Constructor for class org.plumelib.util.RandomSelector
-
- read() - Method in class org.plumelib.util.EntryReader
-
- read(char[], int, int) - Method in class org.plumelib.util.EntryReader
-
- readerContents(Reader) - Static method in class org.plumelib.util.UtilPlume
-
Reads the entire contents of the reader and returns it as a string.
- readFile(File) - Static method in class org.plumelib.util.UtilPlume
-
Reads the entire contents of the file and returns it as a string.
- 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.UtilPlume
-
Reads an Object from a File.
- 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.
- 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.CheckedPatternSyntaxException - Exception in org.plumelib.util
-
A checked version of PatternSyntaxException
.
- 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.OrderedPairIterator
-
- remove(Object) - Method in class org.plumelib.util.WeakHasherMap
-
Removes the mapping for the given key
from this map, if present.
- remove(Object) - Method in class org.plumelib.util.WeakIdentityHashMap
-
Removes the mapping for this key from this map if present.
- removeDuplicates(List<T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Return a copy of the list with duplicates removed.
- RemoveFirstAndLastIterator(Iterator<T>) - Constructor for class org.plumelib.util.CollectionsPlume.RemoveFirstAndLastIterator
-
Create an iterator just like itor
, except without its first and last elements.
- 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
-
- 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
-
- 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).
- reset() - Method in class org.plumelib.util.EntryReader
-
- rpad(String, int) - Static method in class org.plumelib.util.StringsPlume
-
Returns a string of the specified length, truncated if necessary, and padded with spaces to the
right if necessary.
- rpad(int, int) - Static method in class org.plumelib.util.StringsPlume
-
- rpad(double, int) - Static method in class org.plumelib.util.StringsPlume
-
- rpad(String, int) - Static method in class org.plumelib.util.UtilPlume
-
- rpad(int, int) - Static method in class org.plumelib.util.UtilPlume
-
- rpad(double, int) - Static method in class org.plumelib.util.UtilPlume
-
- 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.
- 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.
- setRelativeRatio(double) - Method in class org.plumelib.util.FuzzyFloat
-
Set all the fields of this class.
- 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.
- 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.WeakHasherMap
-
Returns the number of key-value mappings in this map.
- size() - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns the number of key-value mappings in this map.
- 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
-
- 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().
- sortList(List<T>, Comparator<? super T>) - Static method in class org.plumelib.util.CollectionsPlume
-
Return the sorted version of the list.
- split(String, char) - Static method in class org.plumelib.util.UtilPlume
-
- split(String, String) - Static method in class org.plumelib.util.UtilPlume
-
- splitLines(String) - Static method in class org.plumelib.util.StringsPlume
-
Return an array of Strings, one for each line in the argument.
- splitLines(String) - Static method in class org.plumelib.util.UtilPlume
-
- stackTraceToString(Throwable) - Static method in class org.plumelib.util.UtilPlume
-
Return a String representation of the stack trace (the backtrace) of the given Throwable.
- streamCopy(InputStream, OutputStream) - Static method in class org.plumelib.util.UtilPlume
-
Copy the contents of the input stream to the output stream.
- streamLines(InputStream) - Static method in class org.plumelib.util.UtilPlume
-
Reads all lines from the stream and returns them in a List<String>
.
- streamString(InputStream) - Static method in class org.plumelib.util.UtilPlume
-
Return a String containing all the characters from the input stream.
- StringArrayComparatorLexical() - Constructor for class org.plumelib.util.ArraysPlume.StringArrayComparatorLexical
-
- 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.NullableStringComparator - Class in org.plumelib.util
-
Same as built-in String comparison, but accept null arguments, and place them at the beginning.
- StringsPlume.ObjectComparator - Class in org.plumelib.util
-
Attempt to order Objects.
- subarray(Object[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a subarray of the given array.
- subarray(List<T>, int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a sublist of the given list.
- subarray(String[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a subarray of the given array.
- subarray(byte[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a subarray of the given array.
- subarray(boolean[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a subarray of the given array.
- subarray(char[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a subarray of the given array.
- subarray(double[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a subarray of the given array.
- subarray(float[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a subarray of the given array.
- subarray(int[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a subarray of the given array.
- subarray(long[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a subarray of the given array.
- subarray(short[], int, int) - Static method in class org.plumelib.util.ArraysPlume
-
Return a subarray of the given array.
- 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.
- 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.
- SystemPlume - Class in org.plumelib.util
-
Utility methods relating to the JVM runtime system: sleep and garbage collection.