A B C D E F G H I J K L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
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
- applyK1(int) - Method in class org.greenrobot.essentials.hash.Murmur3A
- applyKs(long, long) - Method in class org.greenrobot.essentials.hash.Murmur3F
- available - Variable in class org.greenrobot.essentials.io.CircularByteBuffer
- 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
- BIG_ENDIAN - Static variable in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
- buffer - Variable in class org.greenrobot.essentials.io.CircularByteBuffer
- buffer - Variable in class org.greenrobot.essentials.io.PipelineOutputStream
- BUFFER_SIZE - Static variable in class org.greenrobot.essentials.io.IoUtils
- BYTE_ARRAY_OFFSET - Static variable in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
-
Set only if UNALIGNED == true.
- bytesLeft - Variable in class org.greenrobot.essentials.io.LimitedInputStream
C
- C1 - Static variable in class org.greenrobot.essentials.hash.Murmur3A
- C1 - Static variable in class org.greenrobot.essentials.hash.Murmur3F
- C2 - Static variable in class org.greenrobot.essentials.hash.Murmur3A
- C2 - Static variable in class org.greenrobot.essentials.hash.Murmur3F
- CacheEntry(Reference<V>, V) - Constructor for class org.greenrobot.essentials.ObjectCache.CacheEntry
- calendarThreadLocal - Static variable in class org.greenrobot.essentials.DateUtils
- capacity - Variable in class org.greenrobot.essentials.collections.LongHashMap
- capacity - Variable in class org.greenrobot.essentials.collections.LongHashSet
- capacity - Variable in class org.greenrobot.essentials.io.CircularByteBuffer
- capacity() - Method in class org.greenrobot.essentials.io.CircularByteBuffer
-
The capacity (size) is the maximum of bytes that can be stored inside this buffer.
- CHAR_ARRAY_OFFSET - Static variable in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
-
Set only if UNALIGNED == true.
- checkCleanUpObsoleteEntries() - Method in class org.greenrobot.essentials.ObjectCache
- checkFinished() - Method in class org.greenrobot.essentials.hash.Murmur3F
- checkPipelineInput() - Method in class org.greenrobot.essentials.io.PipelineOutputStream
- checksum - Variable in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
- 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.io.LimitedInputStream
- close() - Method in class org.greenrobot.essentials.io.PipelineOutputStream
- close() - Method in class org.greenrobot.essentials.io.PipelineOutputStream.PipelineInputStream
- closedIn - Variable in class org.greenrobot.essentials.io.PipelineOutputStream
- closedOut - Variable in class org.greenrobot.essentials.io.PipelineOutputStream
- 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(long) - Method in class org.greenrobot.essentials.collections.LongHashMap
- containsKey(long) - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
- containsKey(Object) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
- 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() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
- countElements(K) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
- countEvicted - Variable in class org.greenrobot.essentials.ObjectCache
- countExpired - Variable in class org.greenrobot.essentials.ObjectCache
- countHit - Variable in class org.greenrobot.essentials.ObjectCache
- countMiss - Variable in class org.greenrobot.essentials.ObjectCache
- countPut - Variable in class org.greenrobot.essentials.ObjectCache
- countPutCountSinceEviction - Variable in class org.greenrobot.essentials.ObjectCache
- countRefCleared - Variable in class org.greenrobot.essentials.ObjectCache
- create() - Static method in class org.greenrobot.essentials.collections.Multimap
- create() - Static method in class org.greenrobot.essentials.collections.MultimapSet
- create(Multimap.ListType) - Static method in class org.greenrobot.essentials.collections.Multimap
- 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() - 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.LongHashMap
-
Creates a synchronized (thread-safe) LongHashSet using the given initial capacity.
- 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.
- 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
- deleteDirRecursive(File) - Static method in class org.greenrobot.essentials.io.FileUtils
-
Deletes all files within the given directory recursively (including subdirectories).
- deleteDirRecursiveBestEffort(File) - Static method in class org.greenrobot.essentials.io.FileUtils
-
Deletes all files within the given directory recursively (including subdirectories).
- deleteDirRecursiveInternal(File, boolean) - Static method in class org.greenrobot.essentials.io.FileUtils
- digest(String, String, String) - Static method in class org.greenrobot.essentials.StringUtils
-
Generates a digest (hex string) for the given string
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.
- 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
- Entry(long, LongHashSet.Entry) - Constructor for class org.greenrobot.essentials.collections.LongHashSet.Entry
- Entry(long, T, LongHashMap.Entry<T>) - Constructor for class org.greenrobot.essentials.collections.LongHashMap.Entry
- 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
- expirationMillis - Variable 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
- finished - Variable in class org.greenrobot.essentials.hash.Murmur3F
- finishedH1 - Variable in class org.greenrobot.essentials.hash.Murmur3F
- finishedH2 - Variable in class org.greenrobot.essentials.hash.Murmur3F
- fmix64(long) - Method in class org.greenrobot.essentials.hash.Murmur3F
- 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() - 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(long) - Method in class org.greenrobot.essentials.collections.LongHashMap
- get(long) - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
- get(Object) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
- 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
- getIntBE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils.SafeImpl
- getIntBE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
-
Big endian.
- getIntLE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils
- getIntLE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils.SafeImpl
- getIntLE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
-
Little endian.
- getIntLE(char[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils
- getIntLE(char[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils.SafeImpl
-
Little endian.
- getIntLE(char[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
-
Little endian.
- getLongBE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils
- getLongBE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils.SafeImpl
- getLongBE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
-
Big endian.
- getLongLE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils
- getLongLE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils.SafeImpl
- getLongLE(byte[], int) - Method in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
-
Little endian.
- 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
- getPaddedHexString(long) - Method in class org.greenrobot.essentials.hash.Murmur3F
- getSha1(File) - Static method in class org.greenrobot.essentials.io.FileUtils
- getSha1(InputStream) - Static method in class org.greenrobot.essentials.io.IoUtils
- getSha256(File) - Static method in class org.greenrobot.essentials.io.FileUtils
- getSha256(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
- getValue(KEY, ObjectCache.CacheEntry<VALUE>) - Method in class org.greenrobot.essentials.ObjectCache
- 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
- getValueForRemoved(ObjectCache.CacheEntry<VALUE>) - Method in class org.greenrobot.essentials.ObjectCache
- 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.
- guessUnalignedFromOsArch() - Static method in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
H
- h1 - Variable in class org.greenrobot.essentials.hash.Murmur3A
- h1 - Variable in class org.greenrobot.essentials.hash.Murmur3F
- h2 - Variable in class org.greenrobot.essentials.hash.Murmur3F
- hash - Variable in class org.greenrobot.essentials.hash.FNV32
- hash - Variable in class org.greenrobot.essentials.hash.FNV64
- hashCode() - Method in class org.greenrobot.essentials.collections.AbstractMultimap
- hex(byte[]) - Static method in class org.greenrobot.essentials.StringUtils
- HEX_CHARS - Static variable in class org.greenrobot.essentials.StringUtils
I
- idxGet - Variable in class org.greenrobot.essentials.io.CircularByteBuffer
- idxPut - Variable in class org.greenrobot.essentials.io.CircularByteBuffer
- in - Variable in class org.greenrobot.essentials.io.LimitedInputStream
- INITIAL_VALUE - Static variable in class org.greenrobot.essentials.hash.FNV32
- INITIAL_VALUE - Static variable in class org.greenrobot.essentials.hash.FNV64
- initialValue() - Method in class org.greenrobot.essentials.DateUtils.DefaultCalendarThreadLocal
- initUnaligned() - Static method in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
- initUnsafe() - Static method in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
- initUnsafeInstance() - Static method in class org.greenrobot.essentials.PrimitiveArrayUtils
-
If sun.misc.Unsafe is available, this will init the static instance with a fast implementation.
- inputStream - Variable in class org.greenrobot.essentials.io.PipelineOutputStream
- instanceSafe - Static variable in class org.greenrobot.essentials.PrimitiveArrayUtils
- instanceUnsafe - Static variable in class org.greenrobot.essentials.PrimitiveArrayUtils
- 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
- isExpiring - Variable in class org.greenrobot.essentials.ObjectCache
- isStrongReference - Variable in class org.greenrobot.essentials.ObjectCache
J
- join(int[], String) - Static method in class org.greenrobot.essentials.StringUtils
-
Joins the given ints using the given separator into a single string.
- 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(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
- key - Variable in class org.greenrobot.essentials.collections.LongHashSet.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
- length - Variable in class org.greenrobot.essentials.hash.Murmur3A
- length - Variable in class org.greenrobot.essentials.hash.Murmur3F
- 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
- LINKED - org.greenrobot.essentials.collections.Multimap.ListType
-
Aka LinkedList
- listType - Variable in class org.greenrobot.essentials.collections.Multimap
- ListType() - Constructor for enum org.greenrobot.essentials.collections.Multimap.ListType
- loadFactor - Variable in class org.greenrobot.essentials.collections.LongHashSet
- 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.Entry - Class in org.greenrobot.essentials.collections
- 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
- maxSize - Variable in class org.greenrobot.essentials.ObjectCache
- 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
- MULTIPLIER - Static variable in class org.greenrobot.essentials.hash.FNV32
- MULTIPLIER - Static variable in class org.greenrobot.essentials.hash.FNV64
- 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
- next - Variable in class org.greenrobot.essentials.collections.LongHashMap.Entry
- next - Variable in class org.greenrobot.essentials.collections.LongHashSet.Entry
- nextCleanUpTimestamp - Variable in class org.greenrobot.essentials.ObjectCache
- notifyBuffer() - Method in class org.greenrobot.essentials.io.PipelineOutputStream
O
- ObjectCache<KEY,VALUE> - Class in org.greenrobot.essentials
-
An in-memory object cache supporting soft/weak/strong references, maximum size (clearing the entries that were put 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.CacheEntry<V> - Class in org.greenrobot.essentials
- ObjectCache.ReferenceType - Enum in org.greenrobot.essentials
- 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
- out - Variable in class org.greenrobot.essentials.io.RepeaterInputStream
P
- parseHex(String) - Static method in class org.greenrobot.essentials.StringUtils
- parseHexDigit(char) - Static method in class org.greenrobot.essentials.StringUtils
- partialK1 - Variable in class org.greenrobot.essentials.hash.Murmur3A
- partialK1 - Variable in class org.greenrobot.essentials.hash.Murmur3F
- partialK1Pos - Variable in class org.greenrobot.essentials.hash.Murmur3A
- partialK2 - Variable in class org.greenrobot.essentials.hash.Murmur3F
- partialPos - Variable in class org.greenrobot.essentials.hash.Murmur3F
- 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 - Static variable in class org.greenrobot.essentials.hash.Murmur3A
- primitiveArrayUtils - Static variable in class org.greenrobot.essentials.hash.Murmur3F
- PrimitiveArrayUtils - Class in org.greenrobot.essentials
-
Retrieves int and long values from byte arrays.
- PrimitiveArrayUtils() - Constructor for class org.greenrobot.essentials.PrimitiveArrayUtils
- PrimitiveArrayUtils.SafeImpl - Class in org.greenrobot.essentials
- PrimitiveArrayUtils.UnsafeImpl - Class in org.greenrobot.essentials
- 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(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(long, T) - Method in class org.greenrobot.essentials.collections.LongHashMap
- put(long, T) - Method in class org.greenrobot.essentials.collections.LongHashMap.Synchronized
- put(KEY, VALUE) - Method in class org.greenrobot.essentials.ObjectCache
-
Stores an new entry in the cache.
- put(K, C) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
- 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
- rawBuffer() - Method in class org.greenrobot.essentials.io.CircularByteBuffer
-
Usually you should prefer one of the get() methods.
- rawIndexGet() - Method in class org.greenrobot.essentials.io.CircularByteBuffer
-
The index to get (read) from.
- rawIndexPut() - Method in class org.greenrobot.essentials.io.CircularByteBuffer
-
The index to put (write) to.
- read() - Method in class org.greenrobot.essentials.io.LimitedInputStream
- read() - Method in class org.greenrobot.essentials.io.PipelineOutputStream.PipelineInputStream
- read() - Method in class org.greenrobot.essentials.io.RepeaterInputStream
- read(byte[]) - Method in class org.greenrobot.essentials.io.LimitedInputStream
- read(byte[]) - Method in class org.greenrobot.essentials.io.RepeaterInputStream
- read(byte[], int, int) - Method in class org.greenrobot.essentials.io.LimitedInputStream
- read(byte[], int, int) - Method in class org.greenrobot.essentials.io.PipelineOutputStream.PipelineInputStream
- read(byte[], int, int) - 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
- reference - Variable in class org.greenrobot.essentials.ObjectCache.CacheEntry
- referenceStrong - Variable in class org.greenrobot.essentials.ObjectCache.CacheEntry
- referenceType - Variable in class org.greenrobot.essentials.ObjectCache
- ReferenceType() - Constructor for enum org.greenrobot.essentials.ObjectCache.ReferenceType
- REGULAR - org.greenrobot.essentials.collections.Multimap.ListType
-
Aka ArrayList
- REGULAR - org.greenrobot.essentials.collections.MultimapSet.SetType
-
Aka HashSet
- 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(Object) - Method in class org.greenrobot.essentials.collections.AbstractMultimap
- 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 entities and a very limited number text represented entities (apos, quot, gt, lt, and amp).
S
- safeClose(Closeable) - Static method in class org.greenrobot.essentials.io.IoUtils
-
Closes the given resource (e.g.
- SafeImpl() - Constructor for class org.greenrobot.essentials.PrimitiveArrayUtils.SafeImpl
- seed - Variable in class org.greenrobot.essentials.hash.Murmur3A
- seed - Variable in class org.greenrobot.essentials.hash.Murmur3F
- 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.
- setType - Variable in class org.greenrobot.essentials.collections.MultimapSet
- SetType() - Constructor for enum org.greenrobot.essentials.collections.MultimapSet.SetType
- 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.
- sha256(String) - Static method in class org.greenrobot.essentials.StringUtils
-
Generates the SHA-256 digest (64 hex characters) for a given String based on UTF-8.
- size - Variable in class org.greenrobot.essentials.collections.LongHashMap
- size - Variable in class org.greenrobot.essentials.collections.LongHashSet
- 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
- SOFT - org.greenrobot.essentials.ObjectCache.ReferenceType
- 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
- STRONG - org.greenrobot.essentials.ObjectCache.ReferenceType
- Synchronized(int) - Constructor for class org.greenrobot.essentials.collections.LongHashMap.Synchronized
- Synchronized(int) - Constructor for class org.greenrobot.essentials.collections.LongHashSet.Synchronized
T
- table - Variable in class org.greenrobot.essentials.collections.LongHashMap
- table - Variable in class org.greenrobot.essentials.collections.LongHashSet
- THREAD_SAFE - org.greenrobot.essentials.collections.Multimap.ListType
-
Aka CopyOnWriteArrayList
- THREAD_SAFE - org.greenrobot.essentials.collections.MultimapSet.SetType
-
Aka CopyOnWriteArraySet
- threshold - Variable in class org.greenrobot.essentials.collections.LongHashMap
- threshold - Variable in class org.greenrobot.essentials.collections.LongHashSet
- timeCreated - Variable in class org.greenrobot.essentials.ObjectCache.CacheEntry
- toString() - Method in class org.greenrobot.essentials.ObjectCache
U
- UNALIGNED - Static variable in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
- UNSAFE - Static variable in class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
-
Set only if UNALIGNED == true.
- UnsafeImpl() - Constructor for class org.greenrobot.essentials.PrimitiveArrayUtils.UnsafeImpl
- update(byte[]) - Method in class org.greenrobot.essentials.hash.Murmur3A
- update(byte[]) - Method in class org.greenrobot.essentials.hash.Murmur3F
- 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(byte[], int, int) - Method in class org.greenrobot.essentials.hash.FNV32
- update(byte[], int, int) - Method in class org.greenrobot.essentials.hash.FNV64
- update(byte[], int, int) - Method in class org.greenrobot.essentials.hash.Murmur3A
- update(byte[], int, int) - Method in class org.greenrobot.essentials.hash.Murmur3F
- update(byte[], int, int) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
- 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).
- 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(int) - Method in class org.greenrobot.essentials.hash.FNV32
- update(int) - Method in class org.greenrobot.essentials.hash.FNV64
- update(int) - Method in class org.greenrobot.essentials.hash.Murmur3A
- update(int) - Method in class org.greenrobot.essentials.hash.Murmur3F
- update(int) - Method in class org.greenrobot.essentials.hash.PrimitiveDataChecksum
- 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(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).
- 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.PrimitiveDataChecksum
- updateInt(int...) - 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
- updateLong(long...) - Method in class org.greenrobot.essentials.hash.Murmur3A
- updateLongBE(long) - Method in class org.greenrobot.essentials.hash.Murmur3F
-
Consider
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.PrimitiveDataChecksum
- updateShort(short...) - Method in class org.greenrobot.essentials.hash.Murmur3A
- 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).
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 - Variable in class org.greenrobot.essentials.ObjectCache
- 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
- waitForBuffer() - Method in class org.greenrobot.essentials.io.PipelineOutputStream
- WEAK - org.greenrobot.essentials.ObjectCache.ReferenceType
- 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
All Classes All Packages