Skip navigation links
A B C D E F G H I J K L M N O P R S T U V W 

A

AbstractMultimap<K,V,C extends java.util.Collection<V>> - Class in org.greenrobot.essentials.collections
Combines a Map with List values to provide simple way to store multiple values for a key (multimap).
AbstractMultimap(Map<K, C>) - Constructor for class org.greenrobot.essentials.collections.AbstractMultimap
 
add(long) - Method in class org.greenrobot.essentials.collections.LongHashSet
Adds the given value to the set.
add(long) - Method in class org.greenrobot.essentials.collections.LongHashSet.Synchronized
 
addDays(long, int) - Static method in class org.greenrobot.essentials.DateUtils
 
addDays(Calendar, int) - Static method in class org.greenrobot.essentials.DateUtils
 
appendUtf8(File, CharSequence) - Static method in class org.greenrobot.essentials.io.FileUtils
 
available() - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Returns the number of bytes available and can be get without additional puts.
available() - Method in class org.greenrobot.essentials.io.LimitedInputStream
 
available() - Method in class org.greenrobot.essentials.io.PipelineOutputStream.PipelineInputStream
 

B

Base64 - Class in org.greenrobot.essentials
Encodes and decodes to and from Base64 notation.
Base64.InputStream - Class in org.greenrobot.essentials
A Base64.InputStream will read data from another java.io.InputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.
Base64.OutputStream - Class in org.greenrobot.essentials
A Base64.OutputStream will write data to another java.io.OutputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.

C

capacity() - Method in class org.greenrobot.essentials.io.CircularByteBuffer
The capacity (size) is the maximum of bytes that can be stored inside this buffer.
Checksum128 - Interface in org.greenrobot.essentials.hash
Checksum interface to access 128 bit in various ways.
CircularByteBuffer - Class in org.greenrobot.essentials.io
A circular byte buffer (also called ring buffer) allows putting and and getting bytes in a FIFO way.
CircularByteBuffer() - Constructor for class org.greenrobot.essentials.io.CircularByteBuffer
 
CircularByteBuffer(int) - Constructor for class org.greenrobot.essentials.io.CircularByteBuffer
 
cleanUpObsoleteEntries() - Method in class org.greenrobot.essentials.ObjectCache
Iterates over all entries to check for obsolete ones (time expired or reference cleared).
clear() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
clear() - Method in class org.greenrobot.essentials.collections.LongHashMap
 
clear() - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
 
clear() - Method in class org.greenrobot.essentials.collections.LongHashSet
 
clear() - Method in class org.greenrobot.essentials.collections.LongHashSet.Synchronized
 
clear() - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Clears all data from the buffer.
clear() - Method in class org.greenrobot.essentials.ObjectCache
Clears all cached entries.
close() - Method in class org.greenrobot.essentials.Base64.OutputStream
Flushes and closes (I think, in the superclass) the stream.
close() - Method in class org.greenrobot.essentials.io.LimitedInputStream
 
close() - Method in class org.greenrobot.essentials.io.PipelineOutputStream
 
close() - Method in class org.greenrobot.essentials.io.PipelineOutputStream.PipelineInputStream
 
contains(long) - Method in class org.greenrobot.essentials.collections.LongHashSet
 
contains(long) - Method in class org.greenrobot.essentials.collections.LongHashSet.Synchronized
 
containsElement(K, V) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
containsElement(V) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
containsKey(Object) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
containsKey(long) - Method in class org.greenrobot.essentials.collections.LongHashMap
 
containsKey(long) - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
 
containsKey(KEY) - Method in class org.greenrobot.essentials.ObjectCache
 
containsKeyWithValue(KEY) - Method in class org.greenrobot.essentials.ObjectCache
 
containsValue(Object) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
copyAllBytes(InputStream, OutputStream) - Static method in class org.greenrobot.essentials.io.IoUtils
Copies all available data from in to out without closing any stream.
copyFile(File, File) - Static method in class org.greenrobot.essentials.io.FileUtils
Copies a file to another location.
copyFile(String, String) - Static method in class org.greenrobot.essentials.io.FileUtils
Copies a file to another location.
countElements(K) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
countElements() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
create() - Static method in class org.greenrobot.essentials.collections.Multimap
 
create(Multimap.ListType) - Static method in class org.greenrobot.essentials.collections.Multimap
 
create() - Static method in class org.greenrobot.essentials.collections.MultimapSet
 
create(MultimapSet.SetType) - Static method in class org.greenrobot.essentials.collections.MultimapSet
 
createGZIPInputStream(InputStream, int) - Static method in class org.greenrobot.essentials.io.LimitedInputStream
 
createNewCollection() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
createNewCollection() - Method in class org.greenrobot.essentials.collections.Multimap
 
createNewCollection() - Method in class org.greenrobot.essentials.collections.MultimapSet
 
createSynchronized() - Static method in class org.greenrobot.essentials.collections.LongHashMap
Creates a synchronized (thread-safe) LongHashSet.
createSynchronized(int) - Static method in class org.greenrobot.essentials.collections.LongHashMap
Creates a synchronized (thread-safe) LongHashSet using the given initial capacity.
createSynchronized() - Static method in class org.greenrobot.essentials.collections.LongHashSet
Creates a synchronized (thread-safe) LongHashSet.
createSynchronized(int) - Static method in class org.greenrobot.essentials.collections.LongHashSet
Creates a synchronized (thread-safe) LongHashSet using the given initial capacity.

D

DateUtils - Class in org.greenrobot.essentials
Simple Date and time utils.
DateUtils() - Constructor for class org.greenrobot.essentials.DateUtils
 
DateUtils.DefaultCalendarThreadLocal - Class in org.greenrobot.essentials
Calendar objects are rather expensive: for heavy usage it's a good idea to use a single instance per thread instead of calling Calendar.getInstance() multiple times.
DECODE - Static variable in class org.greenrobot.essentials.Base64
Specify decoding in first bit.
decode(byte[]) - Static method in class org.greenrobot.essentials.Base64
Low-level access to decoding ASCII characters in the form of a byte array.
decode(byte[], int, int, int) - Static method in class org.greenrobot.essentials.Base64
Low-level access to decoding ASCII characters in the form of a byte array.
decode(String) - Static method in class org.greenrobot.essentials.Base64
Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.
decode(String, int) - Static method in class org.greenrobot.essentials.Base64
Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.
decodeFileToFile(String, String) - Static method in class org.greenrobot.essentials.Base64
Reads infile and decodes it to outfile.
decodeFromFile(String) - Static method in class org.greenrobot.essentials.Base64
Convenience method for reading a base64-encoded file and decoding it.
decodeToFile(String, String) - Static method in class org.greenrobot.essentials.Base64
Convenience method for decoding data to a file.
decodeToObject(String) - Static method in class org.greenrobot.essentials.Base64
Attempts to decode Base64 data and deserialize a Java Object within.
decodeToObject(String, int, ClassLoader) - Static method in class org.greenrobot.essentials.Base64
Attempts to decode Base64 data and deserialize a Java Object within.
decodeUrl(String) - Static method in class org.greenrobot.essentials.StringUtils
URL-Decodes a given string using UTF-8.
decodeUrlIso(String) - Static method in class org.greenrobot.essentials.StringUtils
URL-Decodes a given string using ISO-8859-1.
DEFAULT_CAPACITY - Static variable in class org.greenrobot.essentials.collections.LongHashMap
 
DEFAULT_CAPACITY - Static variable in class org.greenrobot.essentials.collections.LongHashSet
 
DefaultCalendarThreadLocal() - Constructor for class org.greenrobot.essentials.DateUtils.DefaultCalendarThreadLocal
 
digest(String, String, String) - Static method in class org.greenrobot.essentials.StringUtils
Generates a digest (hex string) for the given string
DO_BREAK_LINES - Static variable in class org.greenrobot.essentials.Base64
Do break lines when encoding.
DONT_GUNZIP - Static variable in class org.greenrobot.essentials.Base64
Specify that gzipped data should not be automatically gunzipped.

E

ellipsize(String, int) - Static method in class org.greenrobot.essentials.StringUtils
Cuts the string at the end if it's longer than maxLength and appends "..." to it.
ellipsize(String, int, String) - Static method in class org.greenrobot.essentials.StringUtils
Cuts the string at the end if it's longer than maxLength and appends the given end string to it.
ENCODE - Static variable in class org.greenrobot.essentials.Base64
Specify encoding in first bit.
encode(ByteBuffer, ByteBuffer) - Static method in class org.greenrobot.essentials.Base64
Performs Base64 encoding on the raw ByteBuffer, writing it to the encoded ByteBuffer.
encode(ByteBuffer, CharBuffer) - Static method in class org.greenrobot.essentials.Base64
Performs Base64 encoding on the raw ByteBuffer, writing it to the encoded CharBuffer.
encodeBytes(byte[]) - Static method in class org.greenrobot.essentials.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int) - Static method in class org.greenrobot.essentials.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int, int) - Static method in class org.greenrobot.essentials.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int, int, int) - Static method in class org.greenrobot.essentials.Base64
Encodes a byte array into Base64 notation.
encodeBytesToBytes(byte[]) - Static method in class org.greenrobot.essentials.Base64
Similar to Base64.encodeBytes(byte[]) but returns a byte array instead of instantiating a String.
encodeBytesToBytes(byte[], int, int, int) - Static method in class org.greenrobot.essentials.Base64
Similar to Base64.encodeBytes(byte[], int, int, int) but returns a byte array instead of instantiating a String.
encodeFileToFile(String, String) - Static method in class org.greenrobot.essentials.Base64
Reads infile and encodes it to outfile.
encodeFromFile(String) - Static method in class org.greenrobot.essentials.Base64
Convenience method for reading a binary file and base64-encoding it.
encodeObject(Serializable) - Static method in class org.greenrobot.essentials.Base64
Serializes an object and returns the Base64-encoded version of that serialized object.
encodeObject(Serializable, int) - Static method in class org.greenrobot.essentials.Base64
Serializes an object and returns the Base64-encoded version of that serialized object.
encodeToFile(byte[], String) - Static method in class org.greenrobot.essentials.Base64
Convenience method for encoding data to a file.
encodeUrl(String) - Static method in class org.greenrobot.essentials.StringUtils
URL-Encodes a given string using UTF-8 (some web pages have problems with UTF-8 and umlauts, consider StringUtils.encodeUrlIso(String) also).
encodeUrlIso(String) - Static method in class org.greenrobot.essentials.StringUtils
URL-encodes a given string using ISO-8859-1, which may work better with web pages and umlauts compared to UTF-8.
entries() - Method in class org.greenrobot.essentials.collections.LongHashMap
Returns all entries in no particular order.
entries() - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
 
entrySet() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
equals(Object) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
evictToTargetSize(int) - Method in class org.greenrobot.essentials.ObjectCache
 

F

FileUtils - Class in org.greenrobot.essentials.io
Utils for dealing with files.
FileUtils() - Constructor for class org.greenrobot.essentials.io.FileUtils
 
findLinesContaining(String, String) - Static method in class org.greenrobot.essentials.StringUtils
 
flushBase64() - Method in class org.greenrobot.essentials.Base64.OutputStream
Method added by PHIL.
FNV32 - Class in org.greenrobot.essentials.hash
Hash function FNV-1a (http://www.isthe.com/chongo/tech/comp/fnv).
FNV32() - Constructor for class org.greenrobot.essentials.hash.FNV32
 
FNV64 - Class in org.greenrobot.essentials.hash
Hash function FNV-1a (http://www.isthe.com/chongo/tech/comp/fnv).
FNV64() - Constructor for class org.greenrobot.essentials.hash.FNV64
 
free() - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Returns the number of free bytes available that can still be put without additional gets.

G

get(Object) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
get(long) - Method in class org.greenrobot.essentials.collections.LongHashMap
 
get(long) - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
 
get() - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Gets a single byte return or -1 if no data is available.
get(byte[]) - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Gets as many of the requested bytes as available from this buffer.
get(byte[], int, int) - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Gets as many of the requested bytes as available from this buffer.
get(KEY) - Method in class org.greenrobot.essentials.ObjectCache
Get the cached entry or null if no valid cached entry is found.
getBytesLeft() - Method in class org.greenrobot.essentials.io.LimitedInputStream
 
getCountEvicted() - Method in class org.greenrobot.essentials.ObjectCache
 
getCountExpired() - Method in class org.greenrobot.essentials.ObjectCache
 
getCountHit() - Method in class org.greenrobot.essentials.ObjectCache
 
getCountMiss() - Method in class org.greenrobot.essentials.ObjectCache
 
getCountPut() - Method in class org.greenrobot.essentials.ObjectCache
 
getCountRefCleared() - Method in class org.greenrobot.essentials.ObjectCache
 
getDayAsReadableInt(long) - Static method in class org.greenrobot.essentials.DateUtils
Readable yyyyMMdd int representation of a day, which is also sortable.
getDayAsReadableInt(Calendar) - Static method in class org.greenrobot.essentials.DateUtils
Readable yyyyMMdd representation of a day, which is also sortable.
getDayDifference(long, long) - Static method in class org.greenrobot.essentials.DateUtils
 
getDayDifferenceOfReadableInts(int, int) - Static method in class org.greenrobot.essentials.DateUtils
 
getDigest(InputStream, String) - Static method in class org.greenrobot.essentials.io.IoUtils
 
getInputStream() - Method in class org.greenrobot.essentials.io.PipelineOutputStream
 
getInstance() - Static method in class org.greenrobot.essentials.PrimitiveArrayUtils
 
getInstanceSafe() - Static method in class org.greenrobot.essentials.PrimitiveArrayUtils
 
getIntBE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils
 
getIntLE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils
 
getIntLE(char[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils
 
getLongBE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils
 
getLongLE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils
 
getMaxSize() - Method in class org.greenrobot.essentials.ObjectCache
 
getMd5(File) - Static method in class org.greenrobot.essentials.io.FileUtils
 
getMd5(InputStream) - Static method in class org.greenrobot.essentials.io.IoUtils
 
getSha1(File) - Static method in class org.greenrobot.essentials.io.FileUtils
 
getSha1(InputStream) - Static method in class org.greenrobot.essentials.io.IoUtils
 
getStatsStringRemoved() - Method in class org.greenrobot.essentials.ObjectCache
Often used in addition to ObjectCache.toString() to print out states: details why entries were removed.
getTimeForDay(int, int, int) - Static method in class org.greenrobot.essentials.DateUtils
 
getTimeForDay(Calendar, int, int, int) - Static method in class org.greenrobot.essentials.DateUtils
 
getTimeFromDayReadableInt(int) - Static method in class org.greenrobot.essentials.DateUtils
Returns midnight of the given day.
getTimeFromDayReadableInt(Calendar, int, int) - Static method in class org.greenrobot.essentials.DateUtils
 
getValue() - Method in class org.greenrobot.essentials.hash.FNV32
 
getValue() - Method in class org.greenrobot.essentials.hash.FNV64
 
getValue() - Method in class org.greenrobot.essentials.hash.Murmur3A
 
getValue() - Method in class org.greenrobot.essentials.hash.Murmur3F
 
getValue() - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
 
getValueBigInteger() - Method in interface org.greenrobot.essentials.hash.Checksum128
Positive value.
getValueBigInteger() - Method in class org.greenrobot.essentials.hash.Murmur3F
Positive value.
getValueBytesBigEndian() - Method in interface org.greenrobot.essentials.hash.Checksum128
Big endian is the default in Java / network byte order.
getValueBytesBigEndian() - Method in class org.greenrobot.essentials.hash.Murmur3F
 
getValueBytesLittleEndian() - Method in interface org.greenrobot.essentials.hash.Checksum128
Big endian is used by most machines natively.
getValueBytesLittleEndian() - Method in class org.greenrobot.essentials.hash.Murmur3F
 
getValueHexString() - Method in interface org.greenrobot.essentials.hash.Checksum128
Padded with leading 0s to ensure length of 32.
getValueHexString() - Method in class org.greenrobot.essentials.hash.Murmur3F
Padded with leading 0s to ensure length of 32.
getValueHigh() - Method in interface org.greenrobot.essentials.hash.Checksum128
Returns the higher 64 bits of the 128 bit hash.
getValueHigh() - Method in class org.greenrobot.essentials.hash.Murmur3F
Returns the higher 64 bits of the 128 bit hash.
GZIP - Static variable in class org.greenrobot.essentials.Base64
Specify that data should be gzip-compressed in second bit.

H

hashCode() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
hex(byte[]) - Static method in class org.greenrobot.essentials.StringUtils
 

I

initialValue() - Method in class org.greenrobot.essentials.DateUtils.DefaultCalendarThreadLocal
 
InputStream(InputStream) - Constructor for class org.greenrobot.essentials.Base64.InputStream
Constructs a Base64.InputStream in DECODE mode.
InputStream(InputStream, int) - Constructor for class org.greenrobot.essentials.Base64.InputStream
Constructs a Base64.InputStream in either ENCODE or DECODE mode.
IoUtils - Class in org.greenrobot.essentials.io
Utils for dealing with IO (streams, readers, ...).
IoUtils() - Constructor for class org.greenrobot.essentials.io.IoUtils
 
isEmpty() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 

J

join(Iterable<?>, String) - Static method in class org.greenrobot.essentials.StringUtils
Joins the given iterable objects using the given separator into a single string.
join(int[], String) - Static method in class org.greenrobot.essentials.StringUtils
Joins the given ints using the given separator into a single string.
join(String[], String) - Static method in class org.greenrobot.essentials.StringUtils
Joins the given Strings using the given separator into a single string.

K

key - Variable in class org.greenrobot.essentials.collections.LongHashMap.Entry
 
keys() - Method in class org.greenrobot.essentials.collections.LongHashMap
Returns all keys in no particular order.
keys() - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
 
keys() - Method in class org.greenrobot.essentials.collections.LongHashSet
Returns all keys in no particular order.
keys() - Method in class org.greenrobot.essentials.collections.LongHashSet.Synchronized
 
keySet() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
keySet() - Method in class org.greenrobot.essentials.ObjectCache
 

L

LimitedInputStream - Class in org.greenrobot.essentials.io
Wraps around an InputStream and limits the amount of bytes that can be read from it.
LimitedInputStream(InputStream, int) - Constructor for class org.greenrobot.essentials.io.LimitedInputStream
 
LongHashMap<T> - Class in org.greenrobot.essentials.collections
An minimalistic hash map optimized for long keys.
LongHashMap() - Constructor for class org.greenrobot.essentials.collections.LongHashMap
 
LongHashMap(int) - Constructor for class org.greenrobot.essentials.collections.LongHashMap
 
LongHashMap.Entry<T> - Class in org.greenrobot.essentials.collections
 
LongHashMap.Synchronized<T> - Class in org.greenrobot.essentials.collections
 
LongHashSet - Class in org.greenrobot.essentials.collections
An minimalistic hash set optimized for long values.
LongHashSet() - Constructor for class org.greenrobot.essentials.collections.LongHashSet
 
LongHashSet(int) - Constructor for class org.greenrobot.essentials.collections.LongHashSet
 
LongHashSet.Synchronized - Class in org.greenrobot.essentials.collections
 

M

map - Variable in class org.greenrobot.essentials.collections.AbstractMultimap
 
mark(int) - Method in class org.greenrobot.essentials.io.RepeaterInputStream
 
markSupported() - Method in class org.greenrobot.essentials.io.RepeaterInputStream
 
md5(String) - Static method in class org.greenrobot.essentials.StringUtils
Generates the MD5 digest (32 hex characters) for a given String based on UTF-8.
Multimap<K,V> - Class in org.greenrobot.essentials.collections
Combines a Map with List values to provide simple way to store multiple values for a key.
Multimap(Map<K, List<V>>, Multimap.ListType) - Constructor for class org.greenrobot.essentials.collections.Multimap
 
Multimap.ListType - Enum in org.greenrobot.essentials.collections
 
MultimapSet<K,V> - Class in org.greenrobot.essentials.collections
Combines a Map with Set values to provide simple way to store multiple values for a key.
MultimapSet(Map<K, Set<V>>, MultimapSet.SetType) - Constructor for class org.greenrobot.essentials.collections.MultimapSet
 
MultimapSet.SetType - Enum in org.greenrobot.essentials.collections
 
Murmur3A - Class in org.greenrobot.essentials.hash
Murmur3A (murmurhash3_x86_32)
Murmur3A() - Constructor for class org.greenrobot.essentials.hash.Murmur3A
 
Murmur3A(int) - Constructor for class org.greenrobot.essentials.hash.Murmur3A
 
Murmur3F - Class in org.greenrobot.essentials.hash
Murmur3F (MurmurHash3_x64_128)
Murmur3F() - Constructor for class org.greenrobot.essentials.hash.Murmur3F
 
Murmur3F(int) - Constructor for class org.greenrobot.essentials.hash.Murmur3F
 

N

NO_OPTIONS - Static variable in class org.greenrobot.essentials.Base64
No options specified.

O

ObjectCache<KEY,VALUE> - Class in org.greenrobot.essentials
An in-memory object cache supporting soft/weak/strong references, maximum size (clearing the entries putted first), and time-based expiration.
ObjectCache(ObjectCache.ReferenceType, int, long) - Constructor for class org.greenrobot.essentials.ObjectCache
Create a cache according to the given configuration.
ObjectCache.ReferenceType - Enum in org.greenrobot.essentials
 
ORDERED - Static variable in class org.greenrobot.essentials.Base64
Encode using the special "ordered" dialect of Base64 described here: http://www.faqs.org/qa/rfcc-1940.html.
org.greenrobot.essentials - package org.greenrobot.essentials
 
org.greenrobot.essentials.collections - package org.greenrobot.essentials.collections
 
org.greenrobot.essentials.hash - package org.greenrobot.essentials.hash
 
org.greenrobot.essentials.io - package org.greenrobot.essentials.io
 
OutputStream(OutputStream) - Constructor for class org.greenrobot.essentials.Base64.OutputStream
Constructs a Base64.OutputStream in ENCODE mode.
OutputStream(OutputStream, int) - Constructor for class org.greenrobot.essentials.Base64.OutputStream
Constructs a Base64.OutputStream in either ENCODE or DECODE mode.

P

parseHex(String) - Static method in class org.greenrobot.essentials.StringUtils
 
parseHexDigit(char) - Static method in class org.greenrobot.essentials.StringUtils
 
peek() - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Return the first byte a get would return or -1 if no data is available.
PipelineInputStream() - Constructor for class org.greenrobot.essentials.io.PipelineOutputStream.PipelineInputStream
 
PipelineOutputStream - Class in org.greenrobot.essentials.io
Replacement for Java's PipedOutputStream: all data written to this stream will get available in the integrated InputStream (see PipelineOutputStream.getInputStream()).
PipelineOutputStream() - Constructor for class org.greenrobot.essentials.io.PipelineOutputStream
 
PipelineOutputStream(int) - Constructor for class org.greenrobot.essentials.io.PipelineOutputStream
 
PipelineOutputStream.PipelineInputStream - Class in org.greenrobot.essentials.io
 
PrimitiveArrayUtils - Class in org.greenrobot.essentials
Retrieves int and long values from byte arrays using sun.misc.Unsafe for fast access.
PrimitiveArrayUtils() - Constructor for class org.greenrobot.essentials.PrimitiveArrayUtils
 
PrimitiveDataChecksum - Class in org.greenrobot.essentials.hash
Wrapper for Checksum that accepts all kind of primitive data to update the hash.
PrimitiveDataChecksum(Checksum) - Constructor for class org.greenrobot.essentials.hash.PrimitiveDataChecksum
 
put(K, C) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
put(long, T) - Method in class org.greenrobot.essentials.collections.LongHashMap
 
put(long, T) - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
 
put(byte) - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Puts a single byte if the buffer is not yet full.
put(byte[]) - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Puts as many of the given bytes as possible into this buffer.
put(byte[], int, int) - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Puts as many of the given bytes as possible into this buffer.
put(KEY, VALUE) - Method in class org.greenrobot.essentials.ObjectCache
Stores an new entry in the cache.
putAll(Map<? extends K, ? extends C>) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
putAll(Map<KEY, VALUE>) - Method in class org.greenrobot.essentials.ObjectCache
Stores all entries contained in the given map in the cache.
putElement(K, V) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
putElements(K, Collection<V>) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 

R

read() - Method in class org.greenrobot.essentials.Base64.InputStream
Reads enough of the input stream to convert to/from Base64 and returns the next byte.
read(byte[], int, int) - Method in class org.greenrobot.essentials.Base64.InputStream
Calls Base64.InputStream.read() repeatedly until the end of stream is reached or len bytes are read.
read() - Method in class org.greenrobot.essentials.io.LimitedInputStream
 
read(byte[], int, int) - Method in class org.greenrobot.essentials.io.LimitedInputStream
 
read(byte[]) - Method in class org.greenrobot.essentials.io.LimitedInputStream
 
read(byte[], int, int) - Method in class org.greenrobot.essentials.io.PipelineOutputStream.PipelineInputStream
 
read() - Method in class org.greenrobot.essentials.io.PipelineOutputStream.PipelineInputStream
 
read() - Method in class org.greenrobot.essentials.io.RepeaterInputStream
 
read(byte[], int, int) - Method in class org.greenrobot.essentials.io.RepeaterInputStream
 
read(byte[]) - Method in class org.greenrobot.essentials.io.RepeaterInputStream
 
readAllBytes(InputStream) - Static method in class org.greenrobot.essentials.io.IoUtils
 
readAllBytesAndClose(InputStream) - Static method in class org.greenrobot.essentials.io.IoUtils
 
readAllChars(Reader) - Static method in class org.greenrobot.essentials.io.IoUtils
 
readAllCharsAndClose(Reader) - Static method in class org.greenrobot.essentials.io.IoUtils
 
readBytes(File) - Static method in class org.greenrobot.essentials.io.FileUtils
 
readChars(File, String) - Static method in class org.greenrobot.essentials.io.FileUtils
 
readObject(File) - Static method in class org.greenrobot.essentials.io.FileUtils
To read an object in a quick & dirty way.
readUtf8(File) - Static method in class org.greenrobot.essentials.io.FileUtils
 
remove(Object) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
remove(long) - Method in class org.greenrobot.essentials.collections.LongHashMap
 
remove(long) - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
 
remove(long) - Method in class org.greenrobot.essentials.collections.LongHashSet
Removes the given value to the set.
remove(long) - Method in class org.greenrobot.essentials.collections.LongHashSet.Synchronized
 
remove(KEY) - Method in class org.greenrobot.essentials.ObjectCache
Removes an entry from the cache.
removeElement(K, V) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
RepeaterInputStream - Class in org.greenrobot.essentials.io
Repeats an input stream to an additional OutputStream.
RepeaterInputStream(InputStream, OutputStream) - Constructor for class org.greenrobot.essentials.io.RepeaterInputStream
 
reserveRoom(int) - Method in class org.greenrobot.essentials.collections.LongHashMap
Target load: 0,6
reserveRoom(int) - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
 
reserveRoom(int) - Method in class org.greenrobot.essentials.collections.LongHashSet
Target load: 0,6
reserveRoom(int) - Method in class org.greenrobot.essentials.collections.LongHashSet.Synchronized
 
reset() - Method in class org.greenrobot.essentials.hash.FNV32
 
reset() - Method in class org.greenrobot.essentials.hash.FNV64
 
reset() - Method in class org.greenrobot.essentials.hash.Murmur3A
 
reset() - Method in class org.greenrobot.essentials.hash.Murmur3F
 
reset() - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
 
reset() - Method in class org.greenrobot.essentials.io.RepeaterInputStream
 
resolveEntity(String) - Static method in class org.greenrobot.essentials.StringUtils
Simple HTML/XML entity resolving: Only supports unicode enitities and a very limited number text represented entities (apos, quot, gt, lt, and amp).
resumeEncoding() - Method in class org.greenrobot.essentials.Base64.OutputStream
Resumes encoding of the stream.

S

safeClose(Closeable) - Static method in class org.greenrobot.essentials.io.IoUtils
Closes the given resource (e.g. stream, reader, writer, etc.) inside a try/catch.
setCapacity(int) - Method in class org.greenrobot.essentials.collections.LongHashMap
 
setCapacity(int) - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
 
setCapacity(int) - Method in class org.greenrobot.essentials.collections.LongHashSet
 
setCapacity(int) - Method in class org.greenrobot.essentials.collections.LongHashSet.Synchronized
 
setLoadFactor(float) - Method in class org.greenrobot.essentials.collections.LongHashSet
 
setTime(Calendar, int, int, int, int) - Static method in class org.greenrobot.essentials.DateUtils
Sets hour, minutes, seconds and milliseconds to the given values.
sha1(String) - Static method in class org.greenrobot.essentials.StringUtils
Generates the SHA-1 digest (40 hex characters) for a given String based on UTF-8.
size() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
size() - Method in class org.greenrobot.essentials.collections.LongHashMap
 
size() - Method in class org.greenrobot.essentials.collections.LongHashSet
 
size() - Method in class org.greenrobot.essentials.ObjectCache
 
skip(int) - Method in class org.greenrobot.essentials.io.CircularByteBuffer
Skips the given count of bytes, but at most the currently available count.
skip(long) - Method in class org.greenrobot.essentials.io.LimitedInputStream
 
skip(long) - Method in class org.greenrobot.essentials.io.PipelineOutputStream.PipelineInputStream
 
split(String, char) - Static method in class org.greenrobot.essentials.StringUtils
Splits a String based on a single character, which is usually faster than regex-based String.split().
splitLines(String, boolean) - Static method in class org.greenrobot.essentials.StringUtils
 
StringUtils - Class in org.greenrobot.essentials
Utilities for working with strings like splitting, joining, url-encoding, hex, and digests.
StringUtils() - Constructor for class org.greenrobot.essentials.StringUtils
 
suspendEncoding() - Method in class org.greenrobot.essentials.Base64.OutputStream
Suspends encoding of the stream.
Synchronized(int) - Constructor for class org.greenrobot.essentials.collections.LongHashMap.Synchronized
 
Synchronized(int) - Constructor for class org.greenrobot.essentials.collections.LongHashSet.Synchronized
 

T

toString() - Method in class org.greenrobot.essentials.ObjectCache
 

U

update(int) - Method in class org.greenrobot.essentials.hash.FNV32
 
update(byte[], int, int) - Method in class org.greenrobot.essentials.hash.FNV32
 
update(int) - Method in class org.greenrobot.essentials.hash.FNV64
 
update(byte[], int, int) - Method in class org.greenrobot.essentials.hash.FNV64
 
update(int) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
update(byte[], int, int) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
update(byte[]) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
update(int) - Method in class org.greenrobot.essentials.hash.Murmur3F
 
update(byte[]) - Method in class org.greenrobot.essentials.hash.Murmur3F
 
update(byte[], int, int) - Method in class org.greenrobot.essentials.hash.Murmur3F
 
update(int) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
 
update(byte[], int, int) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
 
update(byte[]) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
Note: leaves the checksum untouched if given value is null (provide a special value for stronger hashing).
update(short[]) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
Note: leaves the checksum untouched if given value is null (provide a special value for stronger hashing).
update(int[]) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
Note: leaves the checksum untouched if given value is null (provide a special value for stronger hashing).
update(long[]) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
Note: leaves the checksum untouched if given value is null (provide a special value for stronger hashing).
update(float[]) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
Note: leaves the checksum untouched if given value is null (provide a special value for stronger hashing).
update(double[]) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
Note: leaves the checksum untouched if given value is null (provide a special value for stronger hashing).
updateBoolean(boolean) - Method in class org.greenrobot.essentials.hash.Murmur3A
updates a byte with 0 for false and 1 for true
updateBoolean(boolean) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
updates a byte with 0 for false and 1 for true
updateChecksum(File, Checksum) - Static method in class org.greenrobot.essentials.io.FileUtils
 
updateChecksum(InputStream, Checksum) - Static method in class org.greenrobot.essentials.io.IoUtils
 
updateDouble(double) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
updateDouble(double) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
 
updateFloat(float) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
updateFloat(float) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
 
updateInt(int) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
updateInt(int...) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
updateInt(int) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
 
updateLong(long) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
updateLong(long...) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
updateLong(long) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
 
updateLongBE(long) - Method in class org.greenrobot.essentials.hash.Murmur3F
Consider Murmur3F.updateLongLE(long) for better performance if you do not rely on big endian (BE) byte order.
updateLongLE(long) - Method in class org.greenrobot.essentials.hash.Murmur3F
Special update method to hash long values very efficiently using Java's native little endian (LE) byte order.
updateShort(short) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
updateShort(short...) - Method in class org.greenrobot.essentials.hash.Murmur3A
 
updateShort(short) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
 
updateUtf8(String) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
Note: leaves the checksum untouched if given value is null (provide a special value for stronger hashing).
updateUtf8(String[]) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
Note: leaves the checksum untouched if given value is null (provide a special value for stronger hashing).
URL_SAFE - Static variable in class org.greenrobot.essentials.Base64
Encode using Base64-like encoding that is URL- and Filename-safe as described in Section 4 of RFC3548: http://www.faqs.org/rfcs/rfc3548.html.

V

value - Variable in class org.greenrobot.essentials.collections.LongHashMap.Entry
 
valueOf(String) - Static method in enum org.greenrobot.essentials.collections.Multimap.ListType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.greenrobot.essentials.collections.MultimapSet.SetType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.greenrobot.essentials.ObjectCache.ReferenceType
Returns the enum constant of this type with the specified name.
values() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 
values() - Static method in enum org.greenrobot.essentials.collections.Multimap.ListType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.greenrobot.essentials.collections.MultimapSet.SetType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.greenrobot.essentials.ObjectCache.ReferenceType
Returns an array containing the constants of this enum type, in the order they are declared.
valuesElements() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
 

W

write(int) - Method in class org.greenrobot.essentials.Base64.OutputStream
Writes the byte to the output stream after converting to/from Base64 notation.
write(byte[], int, int) - Method in class org.greenrobot.essentials.Base64.OutputStream
Calls Base64.OutputStream.write(int) repeatedly until len bytes are written.
write(byte[], int, int) - Method in class org.greenrobot.essentials.io.PipelineOutputStream
 
write(int) - Method in class org.greenrobot.essentials.io.PipelineOutputStream
 
writeAllCharsAndClose(Writer, CharSequence) - Static method in class org.greenrobot.essentials.io.IoUtils
 
writeBytes(File, byte[]) - Static method in class org.greenrobot.essentials.io.FileUtils
 
writeChars(File, String, CharSequence, boolean) - Static method in class org.greenrobot.essentials.io.FileUtils
 
writeObject(File, Object) - Static method in class org.greenrobot.essentials.io.FileUtils
To store an object in a quick & dirty way.
writeUtf8(File, CharSequence) - Static method in class org.greenrobot.essentials.io.FileUtils
 
A B C D E F G H I J K L M N O P R S T U V W 
Skip navigation links

Available under the Apache License, Version 2.0 - Copyright © 2012-2016 greenrobot.org. All Rights Reserved.