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

accept(T) - Method in class com.myjavatools.lib.foundation.Filter
checks whether an object is accepted by the filter
adjustSizeByMooreLaw(int, int) - Static method in class com.myjavatools.lib.Files
Adjusts buffer size according to Moore's law
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<X>) - Method in class com.myjavatools.lib.foundation.Function
applies Function to a List
apply(Iterator<X>) - Method in class com.myjavatools.lib.foundation.Function
applies Function to an Iterator
apply(Iterable<X>) - Method in class com.myjavatools.lib.foundation.Function
applies Function to an Iterable
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
BigMap - Interface in com.myjavatools.lib
Title: My Java Tools Library.
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<T>>) - Static method in class com.myjavatools.lib.foundation.Iterators
Creates an Iterator view of an Iterable consisting of Iterators
cat(Iterator<T>...) - Static method in class com.myjavatools.lib.foundation.Iterators
Creates an Iterator view of a sequence of Iterators
cat(Iterable<? extends X>...) - 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 List
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
returns an iterable good for using in a foreach loop
clear() - Method in interface com.myjavatools.lib.Files.BufferingFilter
clears the filter buffer
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, 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, Y>, Function<Y, 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(Map<X, Y>, Map<Y, Z>) - Static method in class com.myjavatools.lib.foundation.Maps
composes two Maps (like functions, see Functions#compose)
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 of Iterable components
containsKey(Object) - Method in class com.myjavatools.lib.foundation.FunctionalMap
Returns true if this map contains a mapping for the specified key.
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.
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

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
entrySet() - Method in class com.myjavatools.lib.foundation.FunctionalMap
Returns a set view of the mappings contained in this map.
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.
equal(File, File) - Static method in class com.myjavatools.lib.Files
compares two files or directories, recursively
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
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
    turns a Map into a Function
    function(Map<X, Y>, Y) - Static method in class com.myjavatools.lib.foundation.Function
    Returns a function defied by a map and a default value
    FunctionalMap<Domain,Codomain> - Class in com.myjavatools.lib.foundation
    FunctionalMap is a helper class that implements Map which maps keys from Domain set to values of Domain (a.k.a.
    FunctionalMap(Function<Domain, Codomain>, Set<Domain>) - Constructor for class com.myjavatools.lib.foundation.FunctionalMap
    constructor

    G

    gc() - Static method in class com.myjavatools.lib.Tools
    Collects garbage, reports back
    get(Object, Object) - Method in interface com.myjavatools.lib.BigMap
     
    get(Object, Object, Object) - Method in interface com.myjavatools.lib.BigMap
     
    get(Object, Object, Object, Object) - Method in interface com.myjavatools.lib.BigMap
     
    get(Object[]) - Method in interface com.myjavatools.lib.BigMap
     
    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() - 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)
    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.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.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

    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(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

    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
    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<X>) - Static method in class com.myjavatools.lib.foundation.Maps
    Maps a List using Map.
    map(Map<X, Y>, Collection<X>) - Static method in class com.myjavatools.lib.foundation.Maps
    Maps a Collection using Map.
    map(Map<X, Y>, Iterator<X>) - Static method in class com.myjavatools.lib.foundation.Maps
    Maps an Iterator using Map.
    map(Map<X, Y>, Iterable<X>) - Static method in class com.myjavatools.lib.foundation.Maps
    Maps an Iterable using Map.
    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(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(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

    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.
    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(Object, Object, Object) - Method in interface com.myjavatools.lib.BigMap
     
    put(Object, Object, Object, Object) - Method in interface com.myjavatools.lib.BigMap
     
    put(Object, Object, Object, Object, Object) - Method in interface com.myjavatools.lib.BigMap
     
    put(Object[]) - Method in interface com.myjavatools.lib.BigMap
     

    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() - Method in class com.myjavatools.lib.foundation.Iterators.EmptyIterator
     
    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
    restrict(Map<X, Y>, Collection<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.
    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.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(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
    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.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
    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<X>) - Method in class com.myjavatools.lib.foundation.Function
    Restricts this function to a specified X Set, returning a Map on that set
    toMap(Collection<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(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(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

    union(Collection<T>, Collection<T>) - Static method in class com.myjavatools.lib.foundation.Objects
    Deprecated. since 5.0; can do it using ordinary Set.addAll()
    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() - 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

    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