A B C D E F G H I J K L M N O P Q R S T U V W X Z

A

AbstractMap2<X,Y,V> - Class in com.myjavatools.lib.foundation
AbstractMap2 is a partial implementation of two-parameter map.
AbstractMap2() - Constructor for class com.myjavatools.lib.foundation.AbstractMap2
Default constructor
AbstractMap2.Entry<X,Y,V> - Class in com.myjavatools.lib.foundation
An entry of a two-parameter map.
AbstractMap2.Entry(X, Y, V) - Constructor for class com.myjavatools.lib.foundation.AbstractMap2.Entry
Constructor
accept(T) - Method in class com.myjavatools.lib.foundation.Filter
checks whether an object is accepted by the filter
addAll(Collection<T>, Iterable<T>) - Static method in class com.myjavatools.lib.foundation.Objects
Adds all elements of iterable to a collection.
adjustSizeByMooreLaw(int, int) - Static method in class com.myjavatools.lib.Files
Adjusts buffer size according to Moore's law
and(Filter<T>...) - Static method in class com.myjavatools.lib.foundation.Filter
Creates conjunction of filters.
and(Logical.LogicalConstant, Logical.LogicalConstant) - Static method in class com.myjavatools.lib.human.Logical
Conjunction of two logical values
and(Predicate<T>, Predicate<T>) - Static method in class com.myjavatools.lib.human.Logical
Conjunction of two predicates
appendBytesToFile(char[], String) - Static method in class com.myjavatools.lib.Files
Appends bytes to the end of a file
appendBytesToFile(byte[], String) - Static method in class com.myjavatools.lib.Files
Appends bytes to a file
appendToFile(CharSequence, String) - Static method in class com.myjavatools.lib.Files
Appends a char sequence to the end of a file
appendToFile(char[], String) - Static method in class com.myjavatools.lib.Files
Appends chars to the end of a file
appendToFile(byte[], String) - Static method in class com.myjavatools.lib.Files
Appends bytes to the end of a file
apply(T) - Method in class com.myjavatools.lib.foundation.Filter
Filter.apply() is the same as accept();
apply(X) - Method in class com.myjavatools.lib.foundation.Function
the only method you should implement
apply(List<? extends X>) - Method in class com.myjavatools.lib.foundation.Function
applies Function to a List
apply(Iterator<? extends X>) - Method in class com.myjavatools.lib.foundation.Function
applies Function to an Iterator
apply(Iterable<? extends X>) - Method in class com.myjavatools.lib.foundation.Function
applies Function to an Iterable
apply(X, Y) - Method in class com.myjavatools.lib.foundation.Function2
the only method you should implement
arrayToMap(Object[]) - Static method in class com.myjavatools.lib.foundation.Maps
makes a Map from an array key-value pairs
asProperties(String[]) - Static method in class com.myjavatools.lib.Strings
Create Properties from an array of key-value pairs

B

bark(String) - Static method in class com.myjavatools.lib.Tools
Displays an error message
Bytes - Class in com.myjavatools.lib
 
Bytes() - Constructor for class com.myjavatools.lib.Bytes
 
bytes(InputStream) - Static method in class com.myjavatools.lib.Files
returns an Iterable<Byte> enclosure that scans over the bytes returned by InputStream
bytes(File) - Static method in class com.myjavatools.lib.Files
returns an Iterable<Byte> that scans over the bytes in a File

C

cat(Iterable<? extends Iterator<? extends T>>) - Static method in class com.myjavatools.lib.foundation.Iterators
Creates an Iterator view of an Iterable consisting of Iterators
cat(Iterator<? extends T>...) - Static method in class com.myjavatools.lib.foundation.Iterators
Creates an Iterator view of a sequence of Iterators
cat(Iterable<? extends T>...) - Static method in class com.myjavatools.lib.foundation.Iterators
Concatenates vararg Iterables into one List
cat(Collection<? extends T>...) - Static method in class com.myjavatools.lib.foundation.Iterators
Concatenates vararg Collections into one Collection
cat(Collection<Collection<? extends T>>) - Static method in class com.myjavatools.lib.foundation.Iterators
Concatenates a collection of collections into one Collection
chars(Reader) - Static method in class com.myjavatools.lib.Files
returns an Iterable<Character> enclosure that scans over the characters returned by Reader
chars(File) - Static method in class com.myjavatools.lib.Files
returns an Iterable<Character> that scans over the characters in a File
chars(CharSequence) - Static method in class com.myjavatools.lib.foundation.Iterators
Deprecated. This iterable has been moved to Strings
chars(CharSequence) - Static method in class com.myjavatools.lib.Strings
returns an iterable good for using in a foreach loop
clear() - Method in interface com.myjavatools.lib.Files.BufferingFilter
clears the filter buffer
clear() - Method in class com.myjavatools.lib.foundation.AbstractMap2
Removes all mappings from this map. This implementation calls entrySet().clear().
clear() - Method in interface com.myjavatools.lib.foundation.Map2
Removes all mappings from this map.
close(Object[]) - Method in class com.myjavatools.lib.FormattedWriter
Writes the tail to formatted output and closes it
close() - Method in class com.myjavatools.lib.FormattedWriter
Writes the tail to formatted output and closes it
com.myjavatools.lib - package com.myjavatools.lib
The package contains utility tools that help solve ubiquitous problems while doing Java programming.
com.myjavatools.lib.foundation - package com.myjavatools.lib.foundation
com.myjavatools.lib.foundation deals with very general notions: Function, Filter (Predicate), and their applications to Collections framework classes.
com.myjavatools.lib.human - package com.myjavatools.lib.human
 
commandLineArg(String) - Static method in class com.myjavatools.lib.Tools
Wraps command line argument into quotes if it contains spaces
compare(File, File) - Static method in class com.myjavatools.lib.Files
Compare two files
compose(Function<W, ? extends X>) - Method in class com.myjavatools.lib.foundation.Function
Returns a composition f.g : W->Y of two functions, g:W->X and f(which is this Function): X->Y.
compose(Function<X, ? extends Y>, Function<? super Y, ? extends Z>) - Static method in class com.myjavatools.lib.foundation.Function
Returns a compostion f.g : X->Z of two functions, f: X->Y and g: Y->Z.
compose(Function2<X, Y, ? extends Z>, Function<? super Z, ? extends T>) - Static method in class com.myjavatools.lib.foundation.Function2
Returns a compostion f.g : XxY->T of a two-parameter function, f: XxY->Z and g: Z->T.
compose(Function<A, ? extends X>, Function<B, ? extends Y>, Function2<? super X, ? super Y, ? extends Z>) - Static method in class com.myjavatools.lib.foundation.Function2
Returns a compostion (f,g).h : AxB->Z of a two-parameter function, h: XxY->Z and two single-parameter functions, f:A->Z and g:B->Y.
compose(Map<X, ? extends Y>, Map<Y, Z>) - Static method in class com.myjavatools.lib.foundation.Maps
composes two Maps (like functions, see Functions#compose)
compose(Map<X, ? extends Y>, Function<Y, Z>) - Static method in class com.myjavatools.lib.foundation.Maps
Composes a Map and a Function (see Functions#compose) by applying function to all the values in the map.
CompoundIterable<T> - Class in com.myjavatools.lib.foundation
CompoundIterable is an Iterable that is composed of several other iterable.
CompoundIterable(Iterable<? extends T>...) - Constructor for class com.myjavatools.lib.foundation.CompoundIterable
builds a CompoundIterable from a vararg list of Iterable components
CompoundIterable(Iterable<? extends Iterable<? extends T>>) - Constructor for class com.myjavatools.lib.foundation.CompoundIterable
builds a CompoundIterable from an Iterable container of Iterable components
containsKey(Object) - Method in class com.myjavatools.lib.foundation.KeyValueArrayMap
Returns true if this map contains a mapping for the specified key.
containsKey(Object) - Method in class com.myjavatools.lib.foundation.KeyValuePairsMap
Returns true if this map contains a mapping for the specified key.
containsKeyPair(Object, Object) - Method in class com.myjavatools.lib.foundation.AbstractMap2
Returns true if this map contains a mapping for the specified key pair. This implementation iterates over entrySet() searching for an entry with the specified keys.
containsKeyPair(Object, Object) - Method in class com.myjavatools.lib.foundation.IndexedMap2
Returns true if this map contains a mapping for the specified key pair. This implementation iterates over entrySet() searching for an entry with the specified keys. This implementation uses index to check for key pair presence.
containsKeyPair(Object, Object) - Method in interface com.myjavatools.lib.foundation.Map2
Returns true if this map contains a mapping for the specified key pair.
containsValue(Object) - Method in class com.myjavatools.lib.foundation.AbstractMap2
copy(String, String, String) - Static method in class com.myjavatools.lib.Files
copies a file or a directory from one directory to another
copy(File, File, String) - Static method in class com.myjavatools.lib.Files
copy copies a file or a directory from one directory to another
copy(String, String) - Static method in class com.myjavatools.lib.Files
copy copies a file or a directory to another
copy(File, File) - Static method in class com.myjavatools.lib.Files
 
countChar(CharSequence, char) - Static method in class com.myjavatools.lib.Strings
Counts the number of occurrences of char c in CharSequence s.
countLeadingSpaces(CharSequence) - Static method in class com.myjavatools.lib.Strings
Counts leading spaces in a char sequence
countTrailingSpaces(CharSequence) - Static method in class com.myjavatools.lib.Strings
Counts trailing spaces in a char sequence
crc32(byte[]) - Static method in class com.myjavatools.lib.Bytes
Calculates crc32 on a byte array
crc32(byte[], int, int) - Static method in class com.myjavatools.lib.Bytes
Calculates crc32 on a byte array
crc32(CharSequence) - Static method in class com.myjavatools.lib.Strings
Calculates crc32 on a char sequence
curry1(X) - Method in class com.myjavatools.lib.foundation.AbstractMap2
Currying by first argument. This implementation builds the map on every call.
curry1(X) - Method in class com.myjavatools.lib.foundation.Function2
Curries the function by the first argument.
curry1(X) - Method in class com.myjavatools.lib.foundation.IndexedMap2
Currying by first argument. Produces a map that for each Y key2 returns the same value as get(key1, key2) would return. If key1 is not present in the set of keys, an empty map is returned. This implementation builds the map on every call. This implementation uses the index to return a Map<Y,V> view of Map<Y,Entry<X,Y,Z>> map that is stored in index.
curry1(X) - Method in interface com.myjavatools.lib.foundation.Map2
Currying by first argument.
curry2(Y) - Method in class com.myjavatools.lib.foundation.AbstractMap2
Currying by second argument. This implementation builds the map on every call.
curry2(Y) - Method in class com.myjavatools.lib.foundation.Function2
Curries the function by the second argument.
curry2(Y) - Method in class com.myjavatools.lib.foundation.IndexedMap2
Currying by second argument. Produces a map that for each X key1 returns the same value as get(key1, key2) would return. If key2 is not present in the set of keys, an empty map is returned. This implementation builds the map on every call. This implementation uses the index to return a Map<X,V> view of Map<Y,Entry<X,Y,Z>> map that is stored in index.
curry2(Y) - Method in interface com.myjavatools.lib.foundation.Map2
Currying by second argument.

D

decode(InputStream, String) - Static method in class com.myjavatools.lib.Strings
Decodes a stream using specified encoding
decode(byte[], String) - Static method in class com.myjavatools.lib.Strings
Decodes an array of bytes using specified encoding
decodeJavaString(CharSequence) - Static method in class com.myjavatools.lib.Strings
Decodes (and unescapes) a Java string.
deleteFile(String) - Static method in class com.myjavatools.lib.Files
Deletes a file or a directory (with all its contents, they say it is dangerous)
deleteFile(File) - Static method in class com.myjavatools.lib.Files
Deletes a file or a directory (with all its contents, they say it is dangerous)
DIRECTORY_FILTER - Static variable in class com.myjavatools.lib.Files
directoryFilter is a FileFilter that accepts directories only
dirname(File) - Static method in class com.myjavatools.lib.Files
Calculates directory path for a file (like in Perl)
dirname(String) - Static method in class com.myjavatools.lib.Files
Calculates directory path by file path (like in Perl)
downloadFile(URL, String) - Static method in class com.myjavatools.lib.Web
Downloads a file from a specified URL
downloadFile(String, String) - Static method in class com.myjavatools.lib.Web
Downloads a file from a specified URL

E

encode(CharSequence, String) - Static method in class com.myjavatools.lib.Strings
Encodes a char sequence using specified encoding
ensureSlot1(X) - Method in class com.myjavatools.lib.foundation.IndexedMap2
 
ensureSlot2(Y) - Method in class com.myjavatools.lib.foundation.IndexedMap2
 
entrySet() - Method in class com.myjavatools.lib.foundation.AbstractMap2
Returns a set view of the mappings contained in this map.
entrySet() - Method in class com.myjavatools.lib.foundation.IndexedHashMap2
Returns a set view of the mappings contained in this map. Each element in the returned set is a Map2.Entry. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. This implementation uses HashSet for storing entries.
entrySet() - Method in class com.myjavatools.lib.foundation.IndexedTreeMap2
Returns a set view of the mappings contained in this map. Each element in the returned set is a Map2.Entry. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. This implementation uses TreeSet for storing entries.
entrySet() - Method in class com.myjavatools.lib.foundation.KeyValueArrayMap
Returns a set view of the mappings contained in this map.
entrySet() - Method in class com.myjavatools.lib.foundation.KeyValuePairsMap
Returns a set view of the mappings contained in this map.
entrySet() - Method in interface com.myjavatools.lib.foundation.Map2
Returns a set view of the mappings contained in this map.
equal(File, File) - Static method in class com.myjavatools.lib.Files
compares two files or directories, recursively
equal(Object, Object) - Static method in class com.myjavatools.lib.foundation.AbstractMap2
 
equal(Object, Object) - Static method in class com.myjavatools.lib.foundation.Objects
The method that everyone needs and nobody wants to make public.
equals(Object) - Method in class com.myjavatools.lib.foundation.AbstractMap2.Entry
 
equals(Object) - Method in class com.myjavatools.lib.foundation.AbstractMap2
Compares the specified object with this map for equality.
equals(Object) - Method in class com.myjavatools.lib.foundation.Pair
equals method
ESCAPED - Static variable in class com.myjavatools.lib.Strings
Characters used in escapes "\\\"\'nrtfb"
ESCAPEE - Static variable in class com.myjavatools.lib.Strings
Characters that should be escaped in Java or C code "\\\"\'\n\r\t\f\b"
extractValue(CharSequence, CharSequence) - Static method in class com.myjavatools.lib.Strings
Extracts value from a char sequence of format NAME="VALUE"

F

fatalError(boolean, String) - Static method in class com.myjavatools.lib.Tools
Reports a fatal error to sderr and exits, upon a condition
fatalError(String) - Static method in class com.myjavatools.lib.Tools
Reports a fatal error to sderr and exits
fatalError(Exception) - Static method in class com.myjavatools.lib.Tools
Reports a fatal exception to stderr and exits
fatalError(String, Exception) - Static method in class com.myjavatools.lib.Tools
Reports an error message and an exception to sderr and exits
fileFilter - Static variable in class com.myjavatools.lib.Files
fileFilter is a FileFilter that accepts files only
filename(String) - Static method in class com.myjavatools.lib.Files
Calculates filename by file path (like in Perl)
Files - Class in com.myjavatools.lib
Files is a utility class that contains static methods for handling files and directories
Files() - Constructor for class com.myjavatools.lib.Files
 
files(File) - Static method in class com.myjavatools.lib.Files
Returns an Iterable<File> that scans all files in the folder
Files.BufferingFilter - Interface in com.myjavatools.lib
Description: Buffering filter stores some data, and these data can be retrieved later.
Files.ByteFilter - Interface in com.myjavatools.lib
Description: The interface is used to define filters for filtering data in pipes.
fill(char, int) - Static method in class com.myjavatools.lib.Strings
Fills a string with a character
filter(byte[], int) - Method in interface com.myjavatools.lib.Files.ByteFilter
filters data coming from input
Filter<T> - Class in com.myjavatools.lib.foundation
Filter is a Function that returns Boolean values; boolean accept() is an alias for Function.apply().
Filter() - Constructor for class com.myjavatools.lib.foundation.Filter
 
filter(Iterator<T>) - Method in class com.myjavatools.lib.foundation.Filter
Returns filtered iterator
filter(Iterable<T>) - Method in class com.myjavatools.lib.foundation.Filter
filters an Iterable
find(File, Pattern) - Static method in class com.myjavatools.lib.Files
Lists recursively files and directories with name matching a regexp
find(String, Pattern) - Static method in class com.myjavatools.lib.Files
Lists recursively files and directories with name matching a regexp
find(String, String) - Static method in class com.myjavatools.lib.Files
Lists recursively files and directories with name matching a regexp
FIND_ALL - Static variable in class com.myjavatools.lib.Files
 
FIND_DIRECTORY - Static variable in class com.myjavatools.lib.Files
 
FIND_FILE - Static variable in class com.myjavatools.lib.Files
 
findDiff(CharSequence, CharSequence) - Static method in class com.myjavatools.lib.Strings
Finds index of the first difference between two char sequences
findLatest(String, String, int) - Static method in class com.myjavatools.lib.Files
Finds latest file or directory or one of these which name matches a pattern
findLatest(String, String) - Static method in class com.myjavatools.lib.Files
Finds latest file or directory which name matches a pattern
findLatestDirectory(String, String) - Static method in class com.myjavatools.lib.Files
Finds latest directory which name matches a pattern
findLatestFile(String, String) - Static method in class com.myjavatools.lib.Files
Finds latest file which name matches a pattern
forFunction(Function<Map.Entry<X, Y>, Z>) - Static method in class com.myjavatools.lib.foundation.Function2
Creates a two-parameter function for a function defined on pairs.
forMap(Map<X, Y>) - Static method in class com.myjavatools.lib.foundation.Function
turns a Map into a Function
forMap(Map<? super X, Y>, Y) - Static method in class com.myjavatools.lib.foundation.Function
Returns a function defied by a map and a default value
forMap(Map<X, Map<Y, Z>>, Z) - Static method in class com.myjavatools.lib.foundation.Function2
Creates a two-parameter function for a "cascade map".
forMap(Map<X, Map<Y, Z>>) - Static method in class com.myjavatools.lib.foundation.Function2
Creates a two-parameter function for a "cascade map".
format(String, Object...) - Static method in class com.myjavatools.lib.Strings
Deprecated. use MessageFormat.format(String, Object...)

Examples:
  • format("{0} Monkeys", new Long(12)) returns "12 Monkeys".
  • format("{0} is {1}", "Life", "struggle") returns "Life is struggle".
  • format("{0} + {1} = {2}", new Byte(2), new Byte(2), new Long(5)) returns "2 + 2 = 5".
  • FormattedWriter - Class in com.myjavatools.lib
     
    FormattedWriter(Writer, String) - Constructor for class com.myjavatools.lib.FormattedWriter
    Creates a writer that formats its output according to the format specified
    FormattedWriter(Writer, String, String, String) - Constructor for class com.myjavatools.lib.FormattedWriter
    Creates a writer that formats its output according to head, body and tail formats specified
    FormattedWriter(OutputStream, String) - Constructor for class com.myjavatools.lib.FormattedWriter
    Creates a writer that formats its output according to the format specified
    FormattedWriter(OutputStream, String, String, String) - Constructor for class com.myjavatools.lib.FormattedWriter
    Creates a writer that formats its output according to head, body and tail formats specified
    freeMemory() - Static method in class com.myjavatools.lib.Tools
    Collects garbage, reports back
    Function<X,Y> - Class in com.myjavatools.lib.foundation
    Function is an abstract class that represents the mathematical notion of function: X -> Y.
    Function() - Constructor for class com.myjavatools.lib.foundation.Function
     
    function(Map<X, Y>) - Static method in class com.myjavatools.lib.foundation.Function
    Deprecated. use forMap instead
    function(Map<? super X, Y>, Y) - Static method in class com.myjavatools.lib.foundation.Function
    Deprecated. use forMap instead.
    Function2<X,Y,Z> - Class in com.myjavatools.lib.foundation
    Function2 is an abstract class that represents the mathematical notion of two-parameter function: X x Y -> Z.
    Function2() - Constructor for class com.myjavatools.lib.foundation.Function2
     

    G

    gc() - Static method in class com.myjavatools.lib.Tools
    Collects garbage, reports back
    get(X, Y) - Method in class com.myjavatools.lib.foundation.AbstractMap2
    Returns the value to which this map maps the specified key pair, and null if the map contains no mapping for these keys. This implementation iterates over entrySet() searching for an entry with the specified pair of keys.
    get(X, Y) - Method in class com.myjavatools.lib.foundation.IndexedMap2
    Returns the value to which this map maps the specified key pair, and null if the map contains no mapping for these keys. This implementation iterates over entrySet() searching for an entry with the specified pair of keys. This implementation uses two indexes.
    get(X, Y) - Method in interface com.myjavatools.lib.foundation.Map2
    Returns the value to which this map maps the specified key pair, and null if the map contains no mapping for these keys.
    getBody() - Method in class com.myjavatools.lib.FormattedWriter
    Gets body format string
    getBuffer() - Method in interface com.myjavatools.lib.Files.BufferingFilter
    gets data stored as a result of filtering; no assumption regarding the nature of the data.
    getBytes() - Method in class com.myjavatools.lib.ZipInput
    retrieves the contents of current ZipEntry data
    getChars(String) - Method in class com.myjavatools.lib.ZipInput
    gets the contents of current ZipEntry data as characters
    getCharsetByEncoding(String) - Static method in class com.myjavatools.lib.Web
    Deprecated. should use java.nio.Charset
    getCommandOutput(String) - Static method in class com.myjavatools.lib.Tools
    returns as string the output of a command
    getcwd() - Static method in class com.myjavatools.lib.Files
    Gets current directory path
    getEncodingByCharset(String) - Static method in class com.myjavatools.lib.Web
    gets Java encoding given an IANA charset
    getEntry(Object, Object) - Method in class com.myjavatools.lib.foundation.IndexedMap2
     
    getEntry() - Method in class com.myjavatools.lib.ZipInput
    gets current ZipEntry
    getEntryName() - Method in class com.myjavatools.lib.ZipInput
    gets the name of current ZipEntry
    getEntrySize() - Method in class com.myjavatools.lib.ZipInput
    gets the size of current entry data
    getEntryTime() - Method in class com.myjavatools.lib.ZipInput
    gets timestamp of current zip entry
    getEnv() - Static method in class com.myjavatools.lib.Tools
    gets values of all environment variables
    getFullPath(File) - Static method in class com.myjavatools.lib.Files
    Calculates full path of a file
    getFullPath(String) - Static method in class com.myjavatools.lib.Files
    Calculates full path of a file by its path
    getHead() - Method in class com.myjavatools.lib.FormattedWriter
    Gets head format string
    getHtmlCharset(CharSequence) - Static method in class com.myjavatools.lib.Web
    Detects charset from html contents
    getHtmlEncoding(CharSequence) - Static method in class com.myjavatools.lib.Web
    gets Java encoding of HTML contents
    getKey() - Method in class com.myjavatools.lib.foundation.Pair
    key getter (to implement Map.Entry)
    getKey1() - Method in class com.myjavatools.lib.foundation.AbstractMap2.Entry
    getKey1() - Method in interface com.myjavatools.lib.foundation.Map2.Entry
     
    getKey2() - Method in class com.myjavatools.lib.foundation.AbstractMap2.Entry
    getKey2() - Method in interface com.myjavatools.lib.foundation.Map2.Entry
     
    getKeys() - Method in class com.myjavatools.lib.human.HumanInterface
     
    getPackageName(String, String) - Static method in class com.myjavatools.lib.Files
    Calculates a java package name by directory name and base directory name
    getTail() - Method in class com.myjavatools.lib.FormattedWriter
    gets tail format string
    getUrlInputStream(URL) - Static method in class com.myjavatools.lib.Web
    gets an input stream for a given url
    getValue() - Method in class com.myjavatools.lib.foundation.AbstractMap2.Entry
    getValue() - Method in interface com.myjavatools.lib.foundation.Map2.Entry
     
    getValue() - Method in class com.myjavatools.lib.foundation.Pair
    value getter (to implement Map.Entry)
    getXmlCharset(CharSequence) - Static method in class com.myjavatools.lib.Web
    Detects charset from xml contents
    getXmlEncoding(CharSequence) - Static method in class com.myjavatools.lib.Web
    gets Java encoding of XML data
    grep(T[], CharSequence) - Static method in class com.myjavatools.lib.Strings
    Perl operation grep.
    grep(T[], Pattern) - Static method in class com.myjavatools.lib.Strings
    Perl operation grep.

    H

    handleGetObject(String) - Method in class com.myjavatools.lib.human.HumanInterface
     
    hasAlpha(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Checks whether a CharSequence contains any latin letters.
    hashCode() - Method in class com.myjavatools.lib.foundation.AbstractMap2.Entry
     
    hashCode() - Method in class com.myjavatools.lib.foundation.AbstractMap2
     
    hashCode(Map.Entry) - Static method in class com.myjavatools.lib.foundation.Pair
     
    hashCode() - Method in class com.myjavatools.lib.foundation.Pair
    some hashcode for Pair made from left and right hash codes
    hasNext() - Method in class com.myjavatools.lib.foundation.Iterators.EmptyIterator
     
    hexDump(byte[]) - Static method in class com.myjavatools.lib.Strings
    Hexadecimal dump of a byte array.
    hexDump(char[]) - Static method in class com.myjavatools.lib.Strings
    Hexadecimal dump of a char array Produces neatly arranged lines of bot hex and ascii representation of bytes from the array.
    hexDump(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Hexadecimal dump of a CharSequence Produces neatly arranged lines of bot hex and ascii representation of bytes from the array.
    HTML_CHARSET_PATTERN - Static variable in class com.myjavatools.lib.Web
     
    htmlEncode(CharSequence) - Static method in class com.myjavatools.lib.Strings
    encodes a CharSequence into an HTML-acceptable format
    HumanInterface - Class in com.myjavatools.lib.human
    Title: My Java Tools Library
    HumanInterface() - Constructor for class com.myjavatools.lib.human.HumanInterface
     
    humanTime(long) - Static method in class com.myjavatools.lib.human.HumanInterface
    turns time into an approximate humanized value
    humanTime(long, String) - Static method in class com.myjavatools.lib.human.HumanInterface
    turns time into an approximate humanized value
    humanWhen(long) - Static method in class com.myjavatools.lib.human.HumanInterface
    turns timestamp into an approximate form used by humans
    humanWhen(long, String) - Static method in class com.myjavatools.lib.human.HumanInterface
    turns timestamp into an approximate form used by humans

    I

    id() - Static method in class com.myjavatools.lib.foundation.Function
     
    IndexedHashMap2<X,Y,V> - Class in com.myjavatools.lib.foundation
    IndexedHashMap2 is an class that implements a two-parameter map with indexes for both parameters; entries are stored in a HashMap.
    IndexedHashMap2() - Constructor for class com.myjavatools.lib.foundation.IndexedHashMap2
     
    IndexedMap2<X,Y,V> - Class in com.myjavatools.lib.foundation
    IndexedMap2 is an abstract class that implements a two-parameter map with indexes for both parameters.
    IndexedMap2() - Constructor for class com.myjavatools.lib.foundation.IndexedMap2
    Default constructor.
    IndexedTreeMap2<X,Y,V> - Class in com.myjavatools.lib.foundation
    IndexedHashMap2 is an class that implements a two-parameter map with indexes for both parameters; entries are stored in a TreeMap.
    IndexedTreeMap2() - Constructor for class com.myjavatools.lib.foundation.IndexedTreeMap2
     
    indexOf(T, T[]) - Static method in class com.myjavatools.lib.foundation.Objects
    Gets the index of the first element of an array that equals to specified object
    indexOf(T, T[], int) - Static method in class com.myjavatools.lib.foundation.Objects
    Gets the index of the next element of an array that equals to specified object
    indexOf(T, List<T>, int) - Static method in class com.myjavatools.lib.foundation.Objects
    Gets the index of the next element of a list that equals to specified object
    indexOf(CharSequence, char, int) - Static method in class com.myjavatools.lib.Strings
    CharSequence version of indexOf
    indexOf(CharSequence, char) - Static method in class com.myjavatools.lib.Strings
    CharSequence version of indexOf
    indexOf(CharSequence, CharSequence, int) - Static method in class com.myjavatools.lib.Strings
    CharSequence version of indexOf
    indexOf(CharSequence, CharSequence) - Static method in class com.myjavatools.lib.Strings
    CharSequence version of indexOf
    inform(String) - Static method in class com.myjavatools.lib.Tools
    Displays an informative message
    install(Class, String, File) - Static method in class com.myjavatools.lib.Files
    installs files from a resource archive Reads a specified resource for aspecified class, unzips it to a specified directory
    install(URL, File) - Static method in class com.myjavatools.lib.Files
    installs files from a URL Reads the contents of the specified URL, unzips it to a specified directory
    install(String, String) - Static method in class com.myjavatools.lib.Files
    installs files from a URL Reads the contents of the specified URL, unzips it to a specified directory
    install(Class, String, String) - Static method in class com.myjavatools.lib.Files
    installs files from a resource archive Reads a specified resource for aspecified class, unzips it to a specified directory
    inverse(Map<X, Y>) - Static method in class com.myjavatools.lib.foundation.Maps
    Inverses a Map
    isAlmostEmpty(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Checks whether a CharSequence does not contain anything except whitespaces and the like.
    isAlpha(char) - Static method in class com.myjavatools.lib.Strings
    Checks whether a character is a latin letter.
    isEmpty() - Method in class com.myjavatools.lib.foundation.AbstractMap2
    isEmpty() - Method in interface com.myjavatools.lib.foundation.Map2
     
    isEmpty(T) - Static method in class com.myjavatools.lib.foundation.Objects
    In a "creative", anti-scientific way checks whether a string or a container is empty.
    isEntryDirectory() - Method in class com.myjavatools.lib.ZipInput
    checks whether current ZipEntry is a directory
    isTrue(String) - Static method in class com.myjavatools.lib.human.HumanInterface
    Extracts logical value from a string
    isVowel(char) - Static method in class com.myjavatools.lib.human.HumanInterface
    Checks whether a character is a latin vowel.
    iterator() - Method in class com.myjavatools.lib.foundation.CompoundIterable
     
    Iterators - Class in com.myjavatools.lib.foundation
    Iterators is a utility class that contains static methods for iterators
    Iterators() - Constructor for class com.myjavatools.lib.foundation.Iterators
     
    Iterators.EmptyIterator<T> - Class in com.myjavatools.lib.foundation
    EmptyIterator is a helper class that does not contain any elements and throws an exception when next() is called.
    Iterators.EmptyIterator(String) - Constructor for class com.myjavatools.lib.foundation.Iterators.EmptyIterator
     
    Iterators.EmptyIterator() - Constructor for class com.myjavatools.lib.foundation.Iterators.EmptyIterator
     

    J

    join(CharSequence, Collection) - Static method in class com.myjavatools.lib.Strings
    Perl operation join.
    join(CharSequence, T...) - Static method in class com.myjavatools.lib.Strings
    Perl operation join.

    K

    keySet1() - Method in class com.myjavatools.lib.foundation.AbstractMap2
     
    keySet1() - Method in class com.myjavatools.lib.foundation.IndexedMap2
    A Map2 has two sets of keys, first component and second component. This implementation returns a Set that subclasses AbstractSet and is based on the map's entrySet.
    keySet1() - Method in interface com.myjavatools.lib.foundation.Map2
    A Map2 has two sets of keys, first component and second component.
    keySet2() - Method in class com.myjavatools.lib.foundation.AbstractMap2
     
    keySet2() - Method in class com.myjavatools.lib.foundation.IndexedMap2
    A Map2 has two sets of keys, first component and second component. This implementation returns a Set that subclasses AbstractSet and is based on the map's entrySet.
    keySet2() - Method in interface com.myjavatools.lib.foundation.Map2
    A Map2 has two sets of keys, first component and second component.
    KeyValueArrayMap<X,Y> - Class in com.myjavatools.lib.foundation
    KeyValueArrayMap is a helper class that implements Map which is based on a key/value array Note that this class does not take any additional memory; lazy evaluation uses only the array provided.
    KeyValueArrayMap(Object...) - Constructor for class com.myjavatools.lib.foundation.KeyValueArrayMap
    constructor
    KeyValuePairsMap<X,Y> - Class in com.myjavatools.lib.foundation
    KeyValuePairsMap is a helper class that implements Map which is based on a key/value array Note that this class does not take any additional memory; lazy evaluation uses only the array provided.
    KeyValuePairsMap(Map.Entry<X, Y>...) - Constructor for class com.myjavatools.lib.foundation.KeyValuePairsMap
    constructor

    L

    lastIndexOf(CharSequence, char) - Static method in class com.myjavatools.lib.Strings
    CharSequence version of lastIndexOf
    lastModified(File) - Static method in class com.myjavatools.lib.Files
    Gets file modification date/time as a string
    LazyPair<X,Y> - Class in com.myjavatools.lib.foundation
    LazyPair<Left, Right> is a pair consisting of key and value; its value won't be calculated until requested.
    LazyPair(X, Function<? super X, Y>) - Constructor for class com.myjavatools.lib.foundation.LazyPair
    Constructor; saves argument and function
    left - Variable in class com.myjavatools.lib.foundation.Pair
     
    left() - Method in class com.myjavatools.lib.foundation.Pair
    left getter
    lines(Reader) - Static method in class com.myjavatools.lib.Files
    returns an Iterable<String> enclosure that scans over the lines returned by Reader
    lines(File) - Static method in class com.myjavatools.lib.Files
    returns an Iterable<String> that scans over the lines in a File
    listFiles(File) - Static method in class com.myjavatools.lib.Files
    Lists files in a directory
    listSubdirectories(File) - Static method in class com.myjavatools.lib.Files
    Lists subdirectories of a directory
    localizedCantTellTime(long) - Method in class com.myjavatools.lib.human.HumanInterface
    localized version of stringifier for an unknown time period
    localizedHumanWhen(long, String) - Method in class com.myjavatools.lib.human.HumanInterface
    localized version of humanWhen
    localizedIsTrue(String) - Method in class com.myjavatools.lib.human.HumanInterface
    localized version of isTrue()
    localizedIsVowel(char) - Method in class com.myjavatools.lib.human.HumanInterface
    localized vowel test
    localizedVeryLittleTime(long, HumanInterface.TimeUnit) - Method in class com.myjavatools.lib.human.HumanInterface
    localized version of stringifier for a very small time period
    Logical - Class in com.myjavatools.lib.human
    Logical is a class that represents a multivalued logic the mathematical notion of function: X -> Y.
    Logical() - Constructor for class com.myjavatools.lib.human.Logical
     
    Logical.LogicalConstant - Enum in com.myjavatools.lib.human
     

    M

    main(String[]) - Static method in class com.myjavatools.lib.foundation.Sample1
     
    makeFile(String, String, boolean) - Static method in class com.myjavatools.lib.Files
    Creates or opens a file for output.
    makeFile(String, String) - Static method in class com.myjavatools.lib.Files
    Creates or opens a file for output.
    makeFile(String[], boolean) - Static method in class com.myjavatools.lib.Files
    Creates or opens a file for output.
    makeFile(String...) - Static method in class com.myjavatools.lib.Files
    Creates or opens a file for output.
    makeFile(String, boolean) - Static method in class com.myjavatools.lib.Files
    Creates or opens a file for output.
    makeFile(String) - Static method in class com.myjavatools.lib.Files
    Creates or opens a file for output.
    makeFile(File, boolean) - Static method in class com.myjavatools.lib.Files
    Creates or opens a file for output.
    makeFile(File) - Static method in class com.myjavatools.lib.Files
    Creates or opens a file for output.
    makeFileWriter(String, String) - Static method in class com.myjavatools.lib.Files
    Creates or opens a file for output.
    map(Map<X, Y>, List<? extends X>) - Static method in class com.myjavatools.lib.foundation.Maps
    Maps a List using Map.
    map(Map<X, Y>, Collection<? extends X>) - Static method in class com.myjavatools.lib.foundation.Maps
    Maps a Collection using Map.
    map(Map<X, Y>, Iterator<? extends X>) - Static method in class com.myjavatools.lib.foundation.Maps
    Maps an Iterator using Map.
    map(Map<X, Y>, Iterable<? extends X>) - Static method in class com.myjavatools.lib.foundation.Maps
    Maps an Iterable using Map.
    Map2<X,Y,V> - Interface in com.myjavatools.lib.foundation
    Map2 is an interface that represents a two-parameter map.
    Map2.Entry<X,Y,V> - Interface in com.myjavatools.lib.foundation
    A map entry (key1-key2-value pair).
    Maps - Class in com.myjavatools.lib.foundation
     
    Maps() - Constructor for class com.myjavatools.lib.foundation.Maps
     

    N

    needsEncoding(char) - Static method in class com.myjavatools.lib.Strings
    Checks whether a character needs encoding in Java
    needsEncoding(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Checks whether a CharSequence needs encoding in Java
    next() - Method in class com.myjavatools.lib.foundation.Iterators.EmptyIterator
     
    next() - Method in class com.myjavatools.lib.ZipInput
    moves to next ZipEntry
    not(Filter<T>) - Static method in class com.myjavatools.lib.foundation.Filter
    Creates negation of a filter.
    not(Logical.LogicalConstant) - Static method in class com.myjavatools.lib.human.Logical
    Negation of a logical value
    not(Predicate<T>) - Static method in class com.myjavatools.lib.human.Logical
    Negation of a predicate

    O

    Objects - Class in com.myjavatools.lib.foundation
    Objects is a utility class that contains various unsorted static methods for foundation package
    Objects() - Constructor for class com.myjavatools.lib.foundation.Objects
     
    oneOf(T...) - Static method in class com.myjavatools.lib.foundation.Objects
    Chooses the first non-empty object out of objects in parameter list.
    open(Object[]) - Method in class com.myjavatools.lib.FormattedWriter
    Opens formatted output
    open(Object) - Method in class com.myjavatools.lib.FormattedWriter
    Opens formatted output
    open() - Method in class com.myjavatools.lib.FormattedWriter
    Opens formatted output, no arguments for head format
    or(Filter<T>...) - Static method in class com.myjavatools.lib.foundation.Filter
    Creates disjunction of filters.
    or(Logical.LogicalConstant, Logical.LogicalConstant) - Static method in class com.myjavatools.lib.human.Logical
    Disjunction of two logical values
    or(Predicate<T>, Predicate<T>) - Static method in class com.myjavatools.lib.human.Logical
    Disjunction of two predicates

    P

    p1() - Static method in class com.myjavatools.lib.foundation.Function2
    First component projection.
    p2() - Static method in class com.myjavatools.lib.foundation.Function2
    Second component projection.
    pack(byte[]) - Static method in class com.myjavatools.lib.Strings
    Packs bytes into a string
    Pair<Left,Right> - Class in com.myjavatools.lib.foundation
    Pair<Left, Right> is a class that represents pairs of objects.
    Pair(Left, Right) - Constructor for class com.myjavatools.lib.foundation.Pair
    Constructor, creates a new pair from two objects.
    pairEqual(Map.Entry, Map.Entry) - Static method in class com.myjavatools.lib.foundation.Pair
     
    path(String, String) - Static method in class com.myjavatools.lib.Files
    Having a directory and file path (relative or absolute) calculates full path
    pipe(InputStream, OutputStream, boolean, Files.ByteFilter) - Static method in class com.myjavatools.lib.Files
    pipes data from input stream to output stream, possibly pumping them through the filter (if any)
    pipe(InputStream, OutputStream, boolean) - Static method in class com.myjavatools.lib.Files
    pipes data from input stream to output stream
    pipe(Reader, Writer) - Static method in class com.myjavatools.lib.Files
    pipes data from input stream to output stream
    plurality(String, String) - Static method in class com.myjavatools.lib.human.HumanInterface
    returns plurality representation of a number and its unit
    plurality(String, String, String) - Static method in class com.myjavatools.lib.human.HumanInterface
    returns plurality representation of a number and its unit
    Predicate<T> - Class in com.myjavatools.lib.human
     
    Predicate() - Constructor for class com.myjavatools.lib.human.Predicate
     
    put(X, Y, V) - Method in class com.myjavatools.lib.foundation.AbstractMap2
    Associates the specified value with the specified key pair. This implementation always throws an UnsupportedOperationException.
    put(X, Y, V) - Method in class com.myjavatools.lib.foundation.IndexedMap2
    Associates the specified value with the specified key pair. If the map previously contained a mapping for this key pair, the old value is replaced by the specified value. This implementation always throws an UnsupportedOperationException. This implementation uses and updates two indexes.
    put(X, Y, V) - Method in interface com.myjavatools.lib.foundation.Map2
    Associates the specified value with the specified key pair.
    putAll(Map2<? extends X, ? extends Y, ? extends V>) - Method in class com.myjavatools.lib.foundation.AbstractMap2
    Copies all of the mappings from the specified map to this map. This implementation iterates over the specified map's entrySet() collection, and calls this map's put operation once for each entry returned by the iteration.
    putAll(Map2<? extends X, ? extends Y, ? extends V>) - Method in interface com.myjavatools.lib.foundation.Map2
    Copies all of the mappings from the specified map to this map.

    Q

    quote(String) - Static method in class com.myjavatools.lib.Web
    surrounds a string with single quotes (apostrophes), which is convenient for generating Javascript code, but just senseless otherwise.

    R

    RangeList - Class in com.myjavatools.lib.foundation
    RangeList is a class that represents a list of values in a range.
    RangeList() - Constructor for class com.myjavatools.lib.foundation.RangeList
     
    rangeList(int, int, int) - Static method in class com.myjavatools.lib.foundation.RangeList
    Creates a list of integers
    rangeList(int, int) - Static method in class com.myjavatools.lib.foundation.RangeList
    Creates a list of integers
    rangeList(double, double, double) - Static method in class com.myjavatools.lib.foundation.RangeList
    Creates a list of doubles
    readBytesFromFile(String) - Static method in class com.myjavatools.lib.Files
    Reads the whole input stream into a byte array
    readBytesFromStream(InputStream) - Static method in class com.myjavatools.lib.Files
    Reads the whole input stream into a byte array
    readString(Reader) - Static method in class com.myjavatools.lib.Files
     
    readStringFromFile(File) - Static method in class com.myjavatools.lib.Files
    Reads the whole file into a string
    readStringFromFile(File, String) - Static method in class com.myjavatools.lib.Files
    Reads the whole file into a string
    readStringFromFile(String) - Static method in class com.myjavatools.lib.Files
    Reads the whole file into a string
    relPath(String, String) - Static method in class com.myjavatools.lib.Files
    Calculates relative path
    remove(X, Y) - Method in class com.myjavatools.lib.foundation.AbstractMap2
    Removes the mapping for this key pair from this map if it is present. This implementation iterates over entrySet() searching for an entry with the specified pair of keys.
    remove(X, Y) - Method in class com.myjavatools.lib.foundation.IndexedMap2
    Removes the mapping for this key pair from this map if it is present.

    Returns the value to which the map previously associated the keys, or null if the map contained no mapping for this key pair. This implementation iterates over entrySet() searching for an entry with the specified pair of keys. This implementation uses index to retrieve an entry with the specified pair of keys.

    remove() - Method in class com.myjavatools.lib.foundation.Iterators.EmptyIterator
     
    remove(X, Y) - Method in interface com.myjavatools.lib.foundation.Map2
    Removes the mapping for this key pair from this map if it is present.
    replace(CharSequence, CharSequence, CharSequence, boolean) - Static method in class com.myjavatools.lib.Strings
    Deprecated. since 5.0; use replace() without boolean argument, or replaceAll() see java.lang.String.replaceAll(String,String) and java.lang.String.replaceFirst(String, String)

    Examples:
  • replace("Bokonon loves you", "love", "hate", true) returns "Bokonon hates you";
  • replace("All you need is love, love!", "me", false) returns "All you need is me, love!".
  • replace(CharSequence, CharSequence, CharSequence) - Static method in class com.myjavatools.lib.Strings
    Replaces all instances of subsequence in a char sequence with another subsequence
    replaceAll(CharSequence, CharSequence, CharSequence) - Static method in class com.myjavatools.lib.Strings
    Replaces a subsequence in a char sequence with another subsequence
    resolve(Map<X, Y>, Y) - Static method in class com.myjavatools.lib.foundation.Maps
    finds all map keys that map to a specified value
    resolveToSet(Map<X, Y>, Y) - Static method in class com.myjavatools.lib.foundation.Maps
    Returns a set of keys which are mapped to y by the specified map.
    restrict(Map<X, Y>, Set<? extends X>) - Static method in class com.myjavatools.lib.foundation.Maps
    Restricts a Map to a Collection Resulting Map is a virtual map that has an intersection of map's keyset and keys as a keyset, and maps them to the same values as the original map does.
    restrict(Map<X, Y>, Collection<? extends X>) - Static method in class com.myjavatools.lib.foundation.Maps
    Restricts a Map to a Collection Resulting Map is a virtual map that has an intersection of map's keyset and the set of keys from collection as a keyset, and maps them to the same values as the original map does.
    revert(Map<X, Y>) - Static method in class com.myjavatools.lib.foundation.Maps
    reverts a Map f, producing a new one that maps values of f to sets of keys of f
    right() - Method in class com.myjavatools.lib.foundation.LazyPair
    right getter
    right - Variable in class com.myjavatools.lib.foundation.Pair
     
    right() - Method in class com.myjavatools.lib.foundation.Pair
    right getter
    runCommand(String) - Static method in class com.myjavatools.lib.Tools
    Runs a command in current directory
    runCommand(String, String) - Static method in class com.myjavatools.lib.Tools
    Runs a command in specified directory
    runCommand(String, PrintStream, PrintStream) - Static method in class com.myjavatools.lib.Tools
    Runs a command in current directory
    runCommand(String, String, PrintStream, PrintStream) - Static method in class com.myjavatools.lib.Tools
    Runs a command in specified directory
    runCommand(String, InputStream, PrintStream, PrintStream) - Static method in class com.myjavatools.lib.Tools
    Runs a command in current directory
    runCommand(String, String, InputStream, PrintStream, PrintStream) - Static method in class com.myjavatools.lib.Tools
    Runs a command in specified directory
    runCommand(String, String, Reader, PrintWriter, PrintWriter) - Static method in class com.myjavatools.lib.Tools
    Runs a command in specified directory
    runCommand(String, String, Reader, PrintWriter, PrintWriter, Map<String, String>) - Static method in class com.myjavatools.lib.Tools
     

    S

    Sample1 - Class in com.myjavatools.lib.foundation
     
    Sample1() - Constructor for class com.myjavatools.lib.foundation.Sample1
     
    sendMail(String, String, String, String) - Static method in class com.myjavatools.lib.Web
    sendMail sends emails.
    setLastModified(File, long) - Static method in class com.myjavatools.lib.Files
    Sets the last-modified time of the file or directory named by this abstract pathname.
    setLowestPriority() - Static method in class com.myjavatools.lib.Tools
    sets the lowest priority, Thread.MIN_PRIORITY
    setPriority(int) - Static method in class com.myjavatools.lib.Tools
    sets priority and returns previous priority
    setValue(V) - Method in class com.myjavatools.lib.foundation.AbstractMap2.Entry
    Replaces the value corresponding to this entry with the specified value
    setValue(V) - Method in interface com.myjavatools.lib.foundation.Map2.Entry
    Replaces the value corresponding to this entry with the specified value
    setValue(Right) - Method in class com.myjavatools.lib.foundation.Pair
    value setter - unsupported (immutable class)
    sgmlEntity(char) - Static method in class com.myjavatools.lib.Strings
    Encodes a character by SGML rules It can be a hex representation
    size() - Method in class com.myjavatools.lib.foundation.AbstractMap2
    size() - Method in interface com.myjavatools.lib.foundation.Map2
     
    split(CharSequence, CharSequence) - Static method in class com.myjavatools.lib.Strings
    Perl operation split.
    split(Pattern, CharSequence) - Static method in class com.myjavatools.lib.Strings
     
    splitPath(String) - Static method in class com.myjavatools.lib.Files
    Splits a path into directory name and file name
    startsWith(CharSequence, CharSequence) - Static method in class com.myjavatools.lib.Strings
    CharSequence version of startsWith
    Strings - Class in com.myjavatools.lib
     
    Strings() - Constructor for class com.myjavatools.lib.Strings
     
    swap() - Method in class com.myjavatools.lib.foundation.Function2
    Swaps function arguments.
    swap() - Method in class com.myjavatools.lib.foundation.Pair
    swaps left and right
    synchronize(File, File, String) - Static method in class com.myjavatools.lib.Files
    synchronizes two directories, left/what and right/what
    synchronize(File, File) - Static method in class com.myjavatools.lib.Files
    synchronizes two directories

    T

    textHeight(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Calculates how many lines the text contains.
    textWidth(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Calculates how many horizontal lines will the text take in a textarea.
    timestampToDatetime(long) - Static method in class com.myjavatools.lib.human.HumanInterface
    turns a timestamp into a readable timestamp string (see example)
    toBoolean(String, boolean) - Static method in class com.myjavatools.lib.human.HumanInterface
    Extracts Boolean value from a string
    toBytes(char[]) - Static method in class com.myjavatools.lib.Bytes
    Converts char array to byte array (per-element casting)
    toBytes(long) - Static method in class com.myjavatools.lib.Bytes
    Converts long to byte array (lower bytes first)
    toCEncoding(char) - Static method in class com.myjavatools.lib.Strings
    Converts a character to its C encoding (hex or escaped or intact)
    toCEncoding(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Converts a CharSequence to its C encoding
    toChars(byte[]) - Static method in class com.myjavatools.lib.Bytes
    Converts byte array to char array (per-element casting)
    toFilter(Function<T, Double>) - Static method in class com.myjavatools.lib.foundation.Filter
    creates a filter that accepts only x such that f(x) > 0
    toFunction() - Method in class com.myjavatools.lib.foundation.Function2
    Converts a two-parameter function to a function on pairs, (X x, Y y).
    toHex(byte) - Static method in class com.myjavatools.lib.Strings
    Converts a byte to hex string.
    toHex(int) - Static method in class com.myjavatools.lib.Strings
    Converts an integer to hex string.
    toHex(char, boolean) - Static method in class com.myjavatools.lib.Strings
    Converts a char to hex string
    toHex(char) - Static method in class com.myjavatools.lib.Strings
    Converts a char to hex string
    toHex(CharSequence, boolean) - Static method in class com.myjavatools.lib.Strings
    Converts a CharSequence to hex string (character by character)
    toHexReadable(char[]) - Static method in class com.myjavatools.lib.Strings
    Converts an array of chars to a readable hexadecimal form
    toHexReadable(byte[], int, int) - Static method in class com.myjavatools.lib.Strings
    Converts an array of chars to a readable hexadecimal form
    toHexReadable(byte[]) - Static method in class com.myjavatools.lib.Strings
    Converts an array of bytes to a readable hexadecimal form
    toHexReadable(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Converts a CharSequence to a readable hexadecimal string
    toJavaEncoding(char, boolean, boolean) - Static method in class com.myjavatools.lib.Strings
    Converts a character to its Java encoding (hex or escaped or intact)
    toJavaEncoding(char, boolean) - Static method in class com.myjavatools.lib.Strings
    Converts a character to its Java encoding (hex or escaped or intact)
    toJavaEncoding(char) - Static method in class com.myjavatools.lib.Strings
    Converts a character to its Java encoding (hex or escaped or intact)
    toJavaEncoding(CharSequence, boolean, boolean) - Static method in class com.myjavatools.lib.Strings
    Converts a CharSequence to its Java encoding (hex or escaped or intact, per char)
    toJavaEncoding(CharSequence, boolean) - Static method in class com.myjavatools.lib.Strings
    Converts a CharSequence to its Java encoding (hex or escaped or intact, per char)
    toJavaEncoding(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Converts a CharSequence to its Java encoding (hex or escaped or intact, per char)
    toJavaHexEncoding(char) - Static method in class com.myjavatools.lib.Strings
    Converts a character to its Java hex encoding format: \\uxxxx
    toJavaHexEncoding(char, boolean) - Static method in class com.myjavatools.lib.Strings
    Converts a character to its Java hex encoding format: \\uxxxx
    toJavaOctalEncoding(char) - Static method in class com.myjavatools.lib.Strings
    Converts a character to its Java octal encoding format: \\o[o][o]
    toMap(Set<? extends X>) - Method in class com.myjavatools.lib.foundation.Function
    Restricts this function to a specified Set, returning a map with keys from the set.
    toMap(Collection<? extends X>) - Method in class com.myjavatools.lib.foundation.Function
    Restricts this function to a specified Collection, returning a map on the set of collection entries
    toMap(Set<? extends X>, Set<? extends Y>) - Method in class com.myjavatools.lib.foundation.Function2
    Creates a (virtual) map for a two-parameter function.
    toMap(X, Y) - Static method in class com.myjavatools.lib.foundation.Maps
    makes a singleton Map<X,Y> from a key-value pair
    toMap(X, Y, X, Y) - Static method in class com.myjavatools.lib.foundation.Maps
    makes a Map<X,Y> from two key-value pairs
    toMap(X, Y, X, Y, X, Y) - Static method in class com.myjavatools.lib.foundation.Maps
    makes a Map<X,Y> from three key-value pairs
    toMap(Map.Entry<X, Y>...) - Static method in class com.myjavatools.lib.foundation.Maps
    makes a Map from key-value pairs
    toMap(Object...) - Static method in class com.myjavatools.lib.foundation.Maps
    makes a Map from a vararg of key-value pairs
    Tools - Class in com.myjavatools.lib
     
    Tools() - Constructor for class com.myjavatools.lib.Tools
     
    toPlural(String) - Static method in class com.myjavatools.lib.human.HumanInterface
    returns plural of an English word (too simplistic so far)
    toPropertiesEncoding(char, boolean) - Static method in class com.myjavatools.lib.Strings
    Converts a character to how it should be represented in properties files
    toPropertiesEncoding(char) - Static method in class com.myjavatools.lib.Strings
    Converts a character to how it should be represented in properties files
    toReadable(char[], int, int) - Static method in class com.myjavatools.lib.Strings
    Converts a char array to a readable string.
    toReadable(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Converts a CharSequence to a readable string.
    toSet(T...) - Static method in class com.myjavatools.lib.foundation.Objects
    Deprecated. since 5.0; the usefulness of this method is doubtful
    toSgmlEncoding(char) - Static method in class com.myjavatools.lib.Strings
    Converts a character to its SGML numeric encoding
    toSgmlEncoding(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Encodes a CharSequence by SGML rules (using predefined entities and numeric character encodings when necessary)
    toString() - Method in class com.myjavatools.lib.foundation.AbstractMap2.Entry
     
    toString() - Method in class com.myjavatools.lib.foundation.AbstractMap2
     
    toString(Throwable) - Static method in class com.myjavatools.lib.Strings
    Stringifies a Throwable, together with is stack trace.
    toStrings(Map<K, V>) - Static method in class com.myjavatools.lib.Strings
    Converts a map to string array, "key=value"
    toStrings(List) - Static method in class com.myjavatools.lib.Strings
    Converts a List to string array, per element
    toStrings(Collection) - Static method in class com.myjavatools.lib.Strings
    Converts a Collection to string array, per element
    toStrings(Object[]) - Static method in class com.myjavatools.lib.Strings
    Converts an array to string array, per element
    toStrings(Object) - Static method in class com.myjavatools.lib.Strings
    Deprecated. since 5.0; use typed versions

    Example:
  • toStrings(new Object[] { new Integer(22), new Boolean(false), "wow"}) returns new String[] {"22", "false", "wow"}.
  • toWebReadable(String) - Static method in class com.myjavatools.lib.Web
    converts a string into something that could be literally placed into a web page, that is, replaces CR with CRLF (to be polite with browser's 'view source'), replaces all '<' with "<", and html-encodes (&#dddd;) characters above low-ascii.
    tree(File) - Static method in class com.myjavatools.lib.Files
    Returns an Iterable<File> that scans, recursively, through the directory structure.
    tree(File, FileFilter) - Static method in class com.myjavatools.lib.Files
    Returns an Iterable<File> that scans, recursively, through the directory structure.
    treePostorder(File) - Static method in class com.myjavatools.lib.Files
    Returns an Iterable<File> that scans, recursively, through the directory structure.

    U

    unpack(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Unpacks bytes packed in the char sequence
    unzip(ZipInputStream, File) - Static method in class com.myjavatools.lib.Files
    unzips an input stream to a specified folder
    unzip(InputStream) - Static method in class com.myjavatools.lib.Strings
    Unzips a stream.
    unzip(byte[]) - Static method in class com.myjavatools.lib.Strings
    Unzips an array of bytes.
    unzip(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Unzips a char sequence Does this: CharSequence -> High Unicode bytes -> unzip -> bytes -> UTF8 -> String
    url(String, Collection) - Static method in class com.myjavatools.lib.Web
    produces a GET request string for a uri and a collection of parameters
    url(String, String...) - Static method in class com.myjavatools.lib.Web
    produces a GET request string for a uri and request parameters
    urlEncode(String, String) - Static method in class com.myjavatools.lib.Web
    converts a name-value pair into an element of url string
    USE_NIO - Static variable in class com.myjavatools.lib.Files
    copy copies a file or a directory to another

    V

    valueOf(String) - Static method in enum com.myjavatools.lib.human.Logical.LogicalConstant
    Returns the enum constant of this type with the specified name.
    values() - Method in class com.myjavatools.lib.foundation.AbstractMap2
    Returns a collection view of the values contained in this map. This implementation returns a collection and is based on the map's entrySet.
    values() - Method in interface com.myjavatools.lib.foundation.Map2
    Returns a collection view of the values contained in this map.
    values() - Static method in enum com.myjavatools.lib.human.Logical.LogicalConstant
    Returns an array containing the constants of this enum type, in the order they're declared.

    W

    Web - Class in com.myjavatools.lib
     
    Web() - Constructor for class com.myjavatools.lib.Web
     
    whether(String) - Static method in class com.myjavatools.lib.Tools
    Displays a message and receives user's choice (yes/no)
    wordCount(CharSequence) - Static method in class com.myjavatools.lib.Strings
    Calculates the number of words in the CharSequence.
    write(Object[]) - Method in class com.myjavatools.lib.FormattedWriter
    Writes a body string to formatted output
    write(String) - Method in class com.myjavatools.lib.FormattedWriter
    Writes an arbitrary string to (generally speaking) formatted output
    write(Writer, CharSequence) - Static method in class com.myjavatools.lib.Strings
    Writes CharSequence to Writer (Hello, Sun! Ever heard of CharSequence class?)
    writeBytesToFile(byte[], String) - Static method in class com.myjavatools.lib.Files
    Writes bytes to a file
    writeToFile(CharSequence, String) - Static method in class com.myjavatools.lib.Files
    Creates a file and writes a char sequence into it
    writeToFile(char[], String) - Static method in class com.myjavatools.lib.Files
    Creates a file and writes chars into it
    writeToFile(byte[], String) - Static method in class com.myjavatools.lib.Files
    Creates a file and writes bytes into it
    writeToFile(InputStream, String) - Static method in class com.myjavatools.lib.Files
    Creates a file and copies into it bytes from an input stream

    X

    XML_CHARSET_PATTERN - Static variable in class com.myjavatools.lib.Web
     

    Z

    zip(CharSequence) - Static method in class com.myjavatools.lib.Strings
    zips a char sequence to a string.
    zip2bytes(CharSequence) - Static method in class com.myjavatools.lib.Strings
    zip (like in zip files) a string producing an array of bytes
    zip8bit(CharSequence) - Static method in class com.myjavatools.lib.Strings
    zips a char sequence to a string of lower-byte chars.
    ZipInput - Class in com.myjavatools.lib
    Title: MyJavaTools: ZippedInput
    ZipInput(InputStream) - Constructor for class com.myjavatools.lib.ZipInput
    initializes ZipInput with InputStream
    ZipInput(byte[]) - Constructor for class com.myjavatools.lib.ZipInput
    initializes ZipInput with data
    ZipInput(char[]) - Constructor for class com.myjavatools.lib.ZipInput
    initializes ZipInput with data
    zz(X) - Method in class com.myjavatools.lib.foundation.Function2
     

    A B C D E F G H I J K L M N O P Q R S T U V W X Z