LimeWire Collection Component API
A B C D E F G H I K L M N O P Q R S T U V X

A

a - Variable in class org.limewire.collection.IntPair
 
add(E) - Method in class org.limewire.collection.Buffer
Same as addFirst(x).
add(E) - Method in class org.limewire.collection.FixedSizeArrayHashSet
 
add(T) - Method in class org.limewire.collection.FixedSizeExpiringSet
 
add(E) - Method in class org.limewire.collection.FixedsizeForgetfulHashSet
Adds the specified element to this set if it is not already present.
add(E) - Method in class org.limewire.collection.FixedSizeLIFOSet
 
add(E) - Method in class org.limewire.collection.FixedSizeSortedList
 
add(E) - Method in class org.limewire.collection.FixedSizeSortedSet
Adds the object to the set.
add(E) - Method in class org.limewire.collection.IdentityHashSet
Adds the specified element to this set if it is not already present.
add(int) - Method in class org.limewire.collection.IntBuffer
Same as addFirst(x).
add(Range) - Method in class org.limewire.collection.IntervalSet
 
add(IntervalSet) - Method in class org.limewire.collection.IntervalSet
Adds a whole IntervalSet into this IntervalSet.
add(int) - Method in class org.limewire.collection.IntSet
 
add(E) - Method in class org.limewire.collection.LIFOSet
Adds the given element to the head of the set.
add(T) - Method in class org.limewire.collection.MultiCollection
 
add(E) - Method in class org.limewire.collection.SortedList
 
add(Integer) - Method in class org.limewire.collection.SparseIntSet
 
add(String, V) - Method in class org.limewire.collection.StringTrie
Maps the given key (which may be empty) to the given value.
add(int, E) - Method in class org.limewire.collection.TreeList
Adds a new element to the list.
add(int, byte[]) - Method in class org.limewire.collection.TreeStorage
 
addAll(Collection<? extends T>) - Method in class org.limewire.collection.FixedSizeExpiringSet
Adds all the elements in collection to this.
addAll(Collection<? extends E>) - Method in class org.limewire.collection.FixedSizeSortedSet
Adds all the elements of the specified collection to this set.
addAll(IntSet) - Method in class org.limewire.collection.IntSet
 
addAll(Collection<? extends E>) - Method in class org.limewire.collection.LIFOSet
 
addAll(Collection<? extends T>) - Method in class org.limewire.collection.MultiCollection
 
addAll(Collection<? extends Integer>) - Method in class org.limewire.collection.SparseIntSet
 
addEntry(String) - Method in interface org.limewire.collection.AutoCompleteDictionary
Adds an entry to the dictionary.
addEntry(String) - Method in class org.limewire.collection.StringTrieSet
Adds a value to the set.
addFirst(E) - Method in class org.limewire.collection.Buffer
 
addFirst(int) - Method in class org.limewire.collection.IntBuffer
 
addLast(E) - Method in class org.limewire.collection.Buffer
 
addLast(E) - Method in class org.limewire.collection.DoublyLinkedList
Inserts an object at the end of the list, returning its corresponding element.
addLast(int) - Method in class org.limewire.collection.IntBuffer
 
and(BitSet) - Method in class org.limewire.collection.BitSet
Performs a logical AND of this target bit set with the argument bit set.
andNot(BitSet) - Method in class org.limewire.collection.BitSet
Clears all of the bits in this BitSet whose corresponding bit is set in the specified BitSet.
AndView - Class in org.limewire.collection
Provides a logical conjunction, 'And', operation on BitFields.
AndView(BitField, BitField...) - Constructor for class org.limewire.collection.AndView
 
apply(I) - Method in interface org.limewire.collection.Function
Applies this function to argument, returning the result.
ApproximateMatcher - Class in org.limewire.collection
Determines if two strings are considered "approximately equal" if one string can be transformed into the other string through some series of inserts, deletes and substitutions.
ApproximateMatcher() - Constructor for class org.limewire.collection.ApproximateMatcher
 
ApproximateMatcher(int) - Constructor for class org.limewire.collection.ApproximateMatcher
Like ApproximateMatcher() except that the new matcher can compare strings of the given size without any significant allocations.
asKey(Object) - Method in class org.limewire.collection.PatriciaTrie
Gets the key as a 'K'.
AutoCompleteDictionary - Interface in org.limewire.collection
Defines the interface for an auto-complete dictionary.
average() - Method in class org.limewire.collection.NumericBuffer
 

B

b - Variable in class org.limewire.collection.IntPair
 
BitField - Interface in org.limewire.collection
Defines the interface to manipulate a fixed size field of bits.
BitFieldSet - Class in org.limewire.collection
Provides a BitField implementation for a BitSet object.
BitFieldSet(BitSet, int) - Constructor for class org.limewire.collection.BitFieldSet
Constructs a BitField view over the passed bitset with the specified size.
bitIndex(CharSequence, int, int, CharSequence, int, int) - Method in class org.limewire.collection.CharSequenceKeyAnalyzer
 
bitIndex(K, int, int, K, int, int) - Method in interface org.limewire.collection.PatriciaTrie.KeyAnalyzer
Returns the n-th different bit between key and found.
BitNumbers - Class in org.limewire.collection
Allows storage & retrieval of numbers based on the index of an on or off bit in a byte[] or a hexadecimal String representation of that byte[].
BitNumbers(byte[]) - Constructor for class org.limewire.collection.BitNumbers
Constructs a BitNumbers backed by the given byte[].
BitNumbers(int) - Constructor for class org.limewire.collection.BitNumbers
Constructs a BitNumbers large enough to store numbers up to size.
BitNumbers(String) - Constructor for class org.limewire.collection.BitNumbers
Constructs a BitNumbers based on the given hex string.
BitSet - Class in org.limewire.collection
Contains a vector of bits that grows as needed.
BitSet() - Constructor for class org.limewire.collection.BitSet
Creates a new bit set.
BitSet(int) - Constructor for class org.limewire.collection.BitSet
Creates a bit set whose initial size is large enough to explicitly represent bits with indices in the range 0 through nbits-1.
bitsPerElement() - Method in class org.limewire.collection.CharSequenceKeyAnalyzer
 
bitsPerElement() - Method in interface org.limewire.collection.PatriciaTrie.KeyAnalyzer
Returns the number of bits per element in the key.
BucketQueue<E> - Class in org.limewire.collection
Provides a discrete-case priority queue.
BucketQueue(int, int) - Constructor for class org.limewire.collection.BucketQueue
 
BucketQueue(int[]) - Constructor for class org.limewire.collection.BucketQueue
 
BucketQueue(BucketQueue<? extends E>) - Constructor for class org.limewire.collection.BucketQueue
"Copy constructor": constructs a a new shallow copy of other.
buf - Variable in class org.limewire.collection.Buffer
 
Buffer<E> - Class in org.limewire.collection
Provides a simple fixed-size double-ended queue, a circular buffer.
Buffer(int) - Constructor for class org.limewire.collection.Buffer
 
Buffer(Buffer<? extends E>) - Constructor for class org.limewire.collection.Buffer
"Copy constructor": constructs a new shallow copy of other.
ByteArrayCache - Class in org.limewire.collection
A cache of byte[].
ByteArrayCache() - Constructor for class org.limewire.collection.ByteArrayCache
Constructs a new ByteArraCache using the default size of 512 & length of 1024
ByteArrayCache(int, int) - Constructor for class org.limewire.collection.ByteArrayCache
Constructs a new ByteArrayCache using the given maxSize & length.

C

call() - Method in interface org.limewire.collection.NECallable
 
call() - Method in interface org.limewire.collection.SECallable
 
Cancellable - Interface in org.limewire.collection
Defines an interface to determine if operations are cancellable.
canonicalCase(String) - Method in class org.limewire.collection.StringTrie
Returns the canonical version of the given string.
capacity() - Method in class org.limewire.collection.FixedsizePriorityQueue
Returns the maximum number of elements this can hold.
cardinality() - Method in interface org.limewire.collection.BitField
 
cardinality() - Method in class org.limewire.collection.BitFieldSet
 
cardinality() - Method in class org.limewire.collection.BitSet
Returns the number of bits set to true in this BitSet.
cardinality() - Method in class org.limewire.collection.NotView
 
caseInsensitiveStringComparator() - Static method in class org.limewire.collection.Comparators
Instance assessor for the Comparator for case insensitive Strings.
ceilingEntry(K) - Method in class org.limewire.collection.PatriciaTrie
Returns a key-value mapping associated with the least key greater than or equal to the given key, or null if there is no such key.
CharSequenceKeyAnalyzer - Class in org.limewire.collection
Analyzes CharSequence keys with case sensitivity.
CharSequenceKeyAnalyzer() - Constructor for class org.limewire.collection.CharSequenceKeyAnalyzer
 
clear() - Method in interface org.limewire.collection.AutoCompleteDictionary
Clears the dictionary.
clear(int) - Method in class org.limewire.collection.BitSet
Sets the bit specified by the index to false.
clear(int, int) - Method in class org.limewire.collection.BitSet
Sets the bits from the specified fromIndex(inclusive) to the specified toIndex(exclusive) to false.
clear() - Method in class org.limewire.collection.BitSet
Sets all of the bits in this BitSet to false.
clear() - Method in class org.limewire.collection.BucketQueue
Removes all elements from the queue.
clear() - Method in class org.limewire.collection.Buffer
 
clear() - Method in class org.limewire.collection.ByteArrayCache
Clears all items in the cache.
clear() - Method in class org.limewire.collection.DoublyLinkedList
Removes all entries from this list
clear() - Method in class org.limewire.collection.FixedSizeArrayHashMap
 
clear() - Method in class org.limewire.collection.FixedSizeArrayHashSet
 
clear() - Method in class org.limewire.collection.FixedSizeExpiringSet
 
clear() - Method in class org.limewire.collection.FixedsizeForgetfulHashSet
Removes all of the elements from this set.
clear() - Method in class org.limewire.collection.FixedsizeHashMap
clears all entries from the map.
clear() - Method in class org.limewire.collection.FixedsizePriorityQueue
 
clear() - Method in class org.limewire.collection.FixedSizeSortedSet
Clears this FixedSizeSortedSet.
clear() - Method in class org.limewire.collection.IdentityHashSet
Removes all of the elements from this set.
clear() - Method in class org.limewire.collection.IntBuffer
 
clear() - Method in class org.limewire.collection.IntervalSet
 
clear() - Method in class org.limewire.collection.IntHashMap
Clears this hashtable so that it contains no keys.
clear() - Method in class org.limewire.collection.LIFOSet
 
clear() - Method in class org.limewire.collection.LongHashMap
Clears this hashtable so that it contains no keys.
clear() - Method in class org.limewire.collection.MultiCollection
 
clear() - Method in class org.limewire.collection.PatriciaTrie
Clears the Trie (i.e.
clear() - Method in class org.limewire.collection.PowerOf2ByteArrayCache
Erases all data in the cache.
clear() - Method in class org.limewire.collection.RoundRobinQueue
 
clear() - Method in class org.limewire.collection.RRProcessingQueue
 
clear(Object) - Method in class org.limewire.collection.RRProcessingQueue
 
clear() - Method in class org.limewire.collection.StringTrie
Makes this empty.
clear() - Method in class org.limewire.collection.StringTrieSet
Clears all items in the dictionary.
clear() - Method in class org.limewire.collection.TreeList
Clears the list, removing all entries.
clone() - Method in class org.limewire.collection.BitSet
Cloning this BitSet produces a new BitSet that is equal to it.
clone() - Method in class org.limewire.collection.BucketQueue
Returns a shallow copy of this, of type BucketQueue
clone() - Method in class org.limewire.collection.Buffer
Returns a shallow copy of this, of type Buffer
clone() - Method in class org.limewire.collection.FixedSizeArrayHashMap
 
clone() - Method in class org.limewire.collection.FixedSizeArrayHashSet
 
clone() - Method in class org.limewire.collection.FixedsizeForgetfulHashMap
Returns a shallow copy of this Map instance: the keys and values themselves are not cloned.
clone() - Method in class org.limewire.collection.FixedsizeForgetfulHashSet
Returns a shallow copy of this FixedsizeForgetfulHashSet instance: the elements themselves are not cloned.
clone() - Method in class org.limewire.collection.FixedSizeSortedSet
 
clone() - Method in class org.limewire.collection.IdentityHashSet
Returns a shallow copy of this IdentityHashSet instance: the elements themselves are not cloned.
clone() - Method in class org.limewire.collection.IntBuffer
Returns a shallow copy of this, of type IntBuffer
clone() - Method in class org.limewire.collection.IntervalSet
Clones the IntervalSet.
compact() - Method in class org.limewire.collection.BitSet
Compacts this BitTable.
compact() - Method in class org.limewire.collection.SparseIntSet
compacts this set to occupy 4*size() bytes of memory.
comparator() - Method in class org.limewire.collection.PatriciaTrie
Returns the KeyAnalyzer as a comparator.
comparator() - Method in class org.limewire.collection.SortedList
 
Comparators - Class in org.limewire.collection
Provides a way to compare various data types with static methods.
Comparators.ByteArrayComparator - Class in org.limewire.collection
Compares two byte arrays.
Comparators.ByteArrayComparator() - Constructor for class org.limewire.collection.Comparators.ByteArrayComparator
 
Comparators.CaseInsensitiveStringComparator - Class in org.limewire.collection
Compares String objects without regard to case.
Comparators.CaseInsensitiveStringComparator() - Constructor for class org.limewire.collection.Comparators.CaseInsensitiveStringComparator
 
compare(CharSequence, CharSequence) - Method in class org.limewire.collection.CharSequenceKeyAnalyzer
 
compare(byte[], byte[]) - Method in class org.limewire.collection.Comparators.ByteArrayComparator
 
compare(String, String) - Method in class org.limewire.collection.Comparators.CaseInsensitiveStringComparator
 
compareTo(Pair) - Method in class org.limewire.collection.Pair
 
contains(Object) - Method in class org.limewire.collection.Buffer
Returns true if the input object x is in the buffer.
contains(DoublyLinkedList.ListElement<E>) - Method in class org.limewire.collection.DoublyLinkedList
Returns true if this contains the given ListElement.
contains(Object) - Method in class org.limewire.collection.FixedSizeArrayHashSet
 
contains(Object) - Method in class org.limewire.collection.FixedSizeExpiringSet
 
contains(Object) - Method in class org.limewire.collection.FixedsizeForgetfulHashSet
Returns true if this set contains the specified element.
contains(E) - Method in class org.limewire.collection.FixedsizePriorityQueue
Returns true if this contains o.
contains(Object) - Method in class org.limewire.collection.FixedSizeSortedSet
Determines if this set contains the specified object.
contains(Object) - Method in class org.limewire.collection.IdentityHashSet
Returns true if this set contains the specified element.
contains(int) - Method in class org.limewire.collection.IntBuffer
Returns true if the input object x is in the buffer.
contains(Range) - Method in class org.limewire.collection.IntervalSet
 
contains(Object) - Method in class org.limewire.collection.IntHashMap
Tests if some key maps into the specified value in this hashtable.
contains(int) - Method in class org.limewire.collection.IntSet
 
contains(Object) - Method in class org.limewire.collection.LIFOSet
 
contains(Object) - Method in class org.limewire.collection.LongHashMap
Tests if some key maps into the specified value in this hashtable.
contains(Object) - Method in class org.limewire.collection.MultiCollection
 
contains(Object) - Method in class org.limewire.collection.SparseIntSet
 
contains(String) - Method in class org.limewire.collection.StringTrieSet
Determines whether or not the Set contains this String.
contains(Object) - Method in class org.limewire.collection.TreeList
Searches for the presence of an object in the list.
containsAll(Collection<?>) - Method in class org.limewire.collection.FixedSizeExpiringSet
(non-Javadoc)
containsAll(Collection<?>) - Method in class org.limewire.collection.LIFOSet
 
containsAll(Collection<?>) - Method in class org.limewire.collection.MultiCollection
 
containsAny(Range) - Method in class org.limewire.collection.IntervalSet
 
containsKey(int) - Method in class org.limewire.collection.IntHashMap
Tests if the specified object is a key in this hashtable.
containsKey(long) - Method in class org.limewire.collection.LongHashMap
Tests if the specified object is a key in this hashtable.
containsKey(Object) - Method in class org.limewire.collection.PatriciaTrie
Returns true if this trie contains the specified Key This may throw ClassCastException if the object is not of type K.
containsValue(Object) - Method in class org.limewire.collection.IntHashMap
Returns true if this HashMap maps one or more keys to this value.
containsValue(Object) - Method in class org.limewire.collection.LongHashMap
Returns true if this HashMap maps one or more keys to this value.
containsValue(Object) - Method in class org.limewire.collection.PatriciaTrie
Returns true if this Trie contains the specified value.
createArray(int) - Method in class org.limewire.collection.Buffer
 
createArray(int) - Method in class org.limewire.collection.NumericBuffer
 
createIntBitMask(int) - Static method in class org.limewire.collection.CharSequenceKeyAnalyzer
 
createRange(long, long) - Static method in class org.limewire.collection.Range
 
createRange(long) - Static method in class org.limewire.collection.Range
 
createSingletonSet(long, long) - Static method in class org.limewire.collection.IntervalSet
Creates an interval set representing a single Interval.
current - Variable in class org.limewire.collection.MultiIterator
 

D

decode(long, Integer...) - Method in class org.limewire.collection.IntervalSet
decodes an interval set encoded with: http://www.limewire.org/wiki/index.php?title=HashTreeRangeEncoding
delete(Range) - Method in class org.limewire.collection.IntervalSet
Deletes any overlap of existing intervals with the Interval to delete.
delete(IntervalSet) - Method in class org.limewire.collection.IntervalSet
Deletes all intervals in the specified set from this set.
DoublyLinkedList<E> - Class in org.limewire.collection
Provides a doubly-linked list.
DoublyLinkedList() - Constructor for class org.limewire.collection.DoublyLinkedList
Creates new empty DoublyLinkedList
DoublyLinkedList.ListElement<E> - Class in org.limewire.collection
Represents an immutable element of the linked list.
DualIterator<T> - Class in org.limewire.collection
Provides an iterator that iterates over two other iterators, in order.
DualIterator(Iterator<T>, Iterator<T>) - Constructor for class org.limewire.collection.DualIterator
Constructs a new DualIterator backed by two iterators.

E

EMPTY_BN - Static variable in class org.limewire.collection.BitNumbers
A convenient shared immutable empty BitNumbers.
EMPTY_ITERATOR - Static variable in class org.limewire.collection.EmptyIterator
A constant EmptyIterator.
EmptyIterator - Class in org.limewire.collection
Provides an unmodifiable empty iterator.
EmptyIterator() - Constructor for class org.limewire.collection.EmptyIterator
 
emptyIterator() - Static method in class org.limewire.collection.EmptyIterator
 
encode(long) - Method in class org.limewire.collection.IntervalSet
encodes the current interval set as defined in http://www.limewire.org/wiki/index.php?title=HashTreeRangeEncoding
enqueue(T) - Method in class org.limewire.collection.RoundRobinQueue
enqueues the specified object in the round-robin queue.
enqueue(T) - Method in class org.limewire.collection.RoundRobinSetQueue
 
entrySet() - Method in class org.limewire.collection.FixedSizeArrayHashMap
 
entrySet() - Method in class org.limewire.collection.PatriciaTrie
 
EQUAL_BIT_KEY - Static variable in interface org.limewire.collection.PatriciaTrie.KeyAnalyzer
Returned by bitIndex if key and found key are equal.
equals(Object) - Method in class org.limewire.collection.BitNumbers
 
equals(Object) - Method in class org.limewire.collection.BitSet
Compares this object against the specified object.
equals(Object) - Method in class org.limewire.collection.FixedSizeSortedSet
 
equals(Object) - Method in class org.limewire.collection.IntervalSet
Compares two IntervalSets
equals(Object) - Method in class org.limewire.collection.KeyValue
Compares the instance of this class with another instance.
equals(Object) - Method in class org.limewire.collection.Range
 
execute(Runnable, Object) - Method in class org.limewire.collection.RRProcessingQueue
 
extractMax() - Method in class org.limewire.collection.BucketQueue
 
extractMax() - Method in class org.limewire.collection.FixedsizePriorityQueue
 

F

fileComparator() - Static method in class org.limewire.collection.Comparators
Instance assessor for the Comparator for Files.
fileToNodeId(int) - Method in class org.limewire.collection.TreeStorage
 
first() - Method in class org.limewire.collection.Buffer
Returns the head of this, or throws NoSuchElementException if this is empty.
first() - Method in class org.limewire.collection.FixedSizeSortedSet
Returns the first element in the sorted set.
first() - Method in class org.limewire.collection.IntBuffer
Returns the head of this, or throws NoSuchElementException if this is empty.
first() - Method in class org.limewire.collection.SortedList
 
firstKey() - Method in class org.limewire.collection.PatriciaTrie
 
FixedSizeArrayHashMap<K,V> - Class in org.limewire.collection
A fixed size HashMap that provides indexed access.
FixedSizeArrayHashMap(int) - Constructor for class org.limewire.collection.FixedSizeArrayHashMap
Creates a FixedSizeArrayHashMap with the specified maxmium capacity.
FixedSizeArrayHashMap(int, Map<? extends K, ? extends V>) - Constructor for class org.limewire.collection.FixedSizeArrayHashMap
Creates a new FixedSizeArrayHashMap with the provided maximum capacity and adds elements from the specified Map.
FixedSizeArrayHashMap(Map<? extends K, ? extends V>) - Constructor for class org.limewire.collection.FixedSizeArrayHashMap
Creates a new FixedSizeArrayHashMap with the maximum capacity of the size of the provided Map and adds all the elements of that Map.
FixedSizeArrayHashMap(int, int, float) - Constructor for class org.limewire.collection.FixedSizeArrayHashMap
 
FixedSizeArrayHashMap(int, int) - Constructor for class org.limewire.collection.FixedSizeArrayHashMap
 
FixedSizeArrayHashSet<E> - Class in org.limewire.collection
Provides a fixed size HashSet with index access.
FixedSizeArrayHashSet(int) - Constructor for class org.limewire.collection.FixedSizeArrayHashSet
creates a FixedSizeArrayHashSet with the specified maximum capacity.
FixedSizeArrayHashSet(Collection<? extends E>) - Constructor for class org.limewire.collection.FixedSizeArrayHashSet
Creates a FixedSizeArrayHashSet with maximum capacity the size of the provided collection and adds all the elements of that collection.
FixedSizeArrayHashSet(int, Collection<? extends E>) - Constructor for class org.limewire.collection.FixedSizeArrayHashSet
Creates a FixedSizeArrayHashSet with the provided maximum capacity and adds elements from the provided collection.
FixedSizeArrayHashSet(int, int, float) - Constructor for class org.limewire.collection.FixedSizeArrayHashSet
 
FixedSizeArrayHashSet(int, int) - Constructor for class org.limewire.collection.FixedSizeArrayHashSet
 
FixedSizeExpiringSet<T> - Class in org.limewire.collection
Maintains, at most, a fixed size of objects in a Set for a specified time.
FixedSizeExpiringSet() - Constructor for class org.limewire.collection.FixedSizeExpiringSet
Simple constructor for the FixedSizeExpiringSet.
FixedSizeExpiringSet(int) - Constructor for class org.limewire.collection.FixedSizeExpiringSet
Constructor for the FixedSizeExpiringSet.
FixedSizeExpiringSet(int, long) - Constructor for class org.limewire.collection.FixedSizeExpiringSet
Constructor for the FixedSizeExpiringSet
FixedsizeForgetfulHashMap<K,V> - Class in org.limewire.collection
Provides a better-defined replacement policy version of ForgetfulHashMap.
FixedsizeForgetfulHashMap(int) - Constructor for class org.limewire.collection.FixedsizeForgetfulHashMap
Create a new instance that holds only the last "size" entries.
FixedsizeForgetfulHashMap(int, int) - Constructor for class org.limewire.collection.FixedsizeForgetfulHashMap
Create a new instance that holds only the last "size" entries, using the given initialCapacity and a loadFactor of 0.75.
FixedsizeForgetfulHashMap(int, int, float) - Constructor for class org.limewire.collection.FixedsizeForgetfulHashMap
Create a new instance that holds only the last "size" entries, using the given initialCapacity & loadFactor.
FixedsizeForgetfulHashSet<E> - Class in org.limewire.collection
Stores a fixed size of elements as a Set and removes elements when that size is reached.
FixedsizeForgetfulHashSet(int) - Constructor for class org.limewire.collection.FixedsizeForgetfulHashSet
Constructs a new, empty set.
FixedsizeForgetfulHashSet(int, int) - Constructor for class org.limewire.collection.FixedsizeForgetfulHashSet
Constructs a new, empty set, using the given initialCapacity.
FixedsizeForgetfulHashSet(int, int, float) - Constructor for class org.limewire.collection.FixedsizeForgetfulHashSet
Constructs a new, empty set, using the given initialCapacity & loadFactor.
FixedsizeHashMap<K,V> - Class in org.limewire.collection
Implements a fixed size HashMap.
FixedsizeHashMap(int) - Constructor for class org.limewire.collection.FixedsizeHashMap
Create a new hashMap that stores only the specified number of entries
FixedSizeLIFOSet<E> - Class in org.limewire.collection
A fixed size Set where the last added element is the first item in the list.
FixedSizeLIFOSet(int) - Constructor for class org.limewire.collection.FixedSizeLIFOSet
 
FixedSizeLIFOSet(int, FixedSizeLIFOSet.EjectionPolicy) - Constructor for class org.limewire.collection.FixedSizeLIFOSet
 
FixedSizeLIFOSet(int, int, float) - Constructor for class org.limewire.collection.FixedSizeLIFOSet
 
FixedSizeLIFOSet(int, int, float, FixedSizeLIFOSet.EjectionPolicy) - Constructor for class org.limewire.collection.FixedSizeLIFOSet
 
FixedSizeLIFOSet.EjectionPolicy - Enum in org.limewire.collection
The EjectionPolicy controls which element should be removed from the Set if has reached its maximum capacity.
FixedsizePriorityQueue<E> - Class in org.limewire.collection
Provides a priority queue with bounded size in an AVL tree.
FixedsizePriorityQueue(Comparator<? super E>, int) - Constructor for class org.limewire.collection.FixedsizePriorityQueue
Creates a new FixedsizePriorityQueue that will hold at most capacity elements.
FixedSizeSortedList<E> - Class in org.limewire.collection
Gives a sorted list of elements with a maximum size.
FixedSizeSortedList(int) - Constructor for class org.limewire.collection.FixedSizeSortedList
 
FixedSizeSortedList(Collection<? extends E>, Comparator<? super E>, int) - Constructor for class org.limewire.collection.FixedSizeSortedList
 
FixedSizeSortedList(Collection<? extends E>, int) - Constructor for class org.limewire.collection.FixedSizeSortedList
 
FixedSizeSortedList(Comparator<? super E>, int) - Constructor for class org.limewire.collection.FixedSizeSortedList
 
FixedSizeSortedSet<E> - Class in org.limewire.collection
Gives a sorted Set of elements with a maximum size.
FixedSizeSortedSet() - Constructor for class org.limewire.collection.FixedSizeSortedSet
Constructs a FixedSizeSortedSet with a maximum size of 50.
FixedSizeSortedSet(int) - Constructor for class org.limewire.collection.FixedSizeSortedSet
Constructs a FixedSizeSortedSet with a specified maximum size.
FixedSizeSortedSet(Comparator<? super E>) - Constructor for class org.limewire.collection.FixedSizeSortedSet
Constructs a FixedSizeSortedSet with the specified comparator for the SortedSet and a maximum size of 50.
FixedSizeSortedSet(Comparator<? super E>, int) - Constructor for class org.limewire.collection.FixedSizeSortedSet
Constructs a FixedSizeSortedSet with the specified comparator and maximum size.
flip(int) - Method in class org.limewire.collection.BitSet
Sets the bit at the specified index to to the complement of its current value.
flip(int, int) - Method in class org.limewire.collection.BitSet
Sets each bit from the specified fromIndex(inclusive) to the specified toIndex(exclusive) to the complement of its current value.
floorEntry(K) - Method in class org.limewire.collection.PatriciaTrie
Returns a key-value mapping associated with the greatest key less than or equal to the given key, or null if there is no such key.
followRight(PatriciaTrie.TrieEntry<K, V>) - Method in class org.limewire.collection.PatriciaTrie
Traverses down the right path until it finds an uplink.
ForgetfulHashMap<K,V> - Class in org.limewire.collection
A mapping that "forgets" keys and values using a FIFO replacement policy, much like a cache.
ForgetfulHashMap(int) - Constructor for class org.limewire.collection.ForgetfulHashMap
Create a new ForgetfulHashMap that holds only the last "size" entries.
Function<I,O> - Interface in org.limewire.collection
Defines the interface for passing a type as an argument to a method, with a return value of a type.

G

generate(byte[], byte[]) - Method in interface org.limewire.collection.NodeGenerator
 
generate(byte[], byte[]) - Method in class org.limewire.collection.NodeGenerator.NullGenerator
 
get(int) - Method in class org.limewire.collection.AndView
 
get(int) - Method in interface org.limewire.collection.BitField
 
get(int) - Method in class org.limewire.collection.BitFieldSet
 
get(int) - Method in class org.limewire.collection.BitSet
Returns the value of the bit with the specified index.
get(int, int) - Method in class org.limewire.collection.BitSet
Returns a new BitSet composed of bits from this BitSet from fromIndex(inclusive) to toIndex(exclusive).
get(int) - Method in class org.limewire.collection.Buffer
If i<0 or i>=getSize(), throws IndexOutOfBoundsException.
get() - Method in class org.limewire.collection.ByteArrayCache
Attempts to retrieve a new byte[].
get(int) - Method in class org.limewire.collection.FixedSizeArrayHashSet
 
get(K) - Method in class org.limewire.collection.FixedsizeHashMap
Returns the value mapped to the given key
get(E) - Method in class org.limewire.collection.FixedSizeSortedSet
Retrieves the element that has an equals comparison with this object and is in this FixedSizeSortedSet.
get(int) - Method in class org.limewire.collection.IntBuffer
If i<0 or i>=getSize(), throws IndexOutOfBoundsException.
get(int) - Method in class org.limewire.collection.IntHashMap
Returns the value to which the specified key is mapped in this map.
get(long) - Method in class org.limewire.collection.LongHashMap
Returns the value to which the specified key is mapped in this map.
get(int) - Method in class org.limewire.collection.NotView
 
get(int) - Method in class org.limewire.collection.OrView
 
get(Object) - Method in class org.limewire.collection.PatriciaTrie
Returns the Value whose Key equals our lookup Key or null if no such key exists.
get(int) - Method in class org.limewire.collection.PowerOf2ByteArrayCache
 
get(int) - Method in interface org.limewire.collection.RandomAccessCollection
Retrieves the element at index i.
get(String) - Method in class org.limewire.collection.StringTrie
Returns the value associated with the given key, or null if none.
get(int) - Method in class org.limewire.collection.TreeList
Gets the element at the specified index.
get(int) - Method in class org.limewire.collection.TreeStorage
 
get(int) - Method in class org.limewire.collection.XorView
 
getActualMemoryUsed() - Method in class org.limewire.collection.SparseIntSet
 
getAllIntervals() - Method in class org.limewire.collection.IntervalSet
 
getAllIntervalsAsList() - Method in class org.limewire.collection.IntervalSet
 
getAverageSize() - Method in class org.limewire.collection.QueueCounter
 
getCacheSize() - Method in class org.limewire.collection.ByteArrayCache
Returns the size of all cached bytes.
getCacheSize() - Method in class org.limewire.collection.PowerOf2ByteArrayCache
 
getCapacity() - Method in class org.limewire.collection.Buffer
Returns the number of elements that this can hold, i.e., the max size that was passed to the constructor.
getCapacity() - Method in class org.limewire.collection.IntBuffer
Returns the number of elements that this can hold, i.e., the max size that was passed to the constructor.
getCreated() - Method in class org.limewire.collection.ByteArrayCache
Returns the number of byte[]'s this cache has created.
getElement() - Method in class org.limewire.collection.Pair
 
getEntryAt(int) - Method in class org.limewire.collection.FixedSizeArrayHashMap
 
getEntryAt(int) - Method in interface org.limewire.collection.RandomAccessMap
Retrieves the entry at index i.
getFirst() - Method in class org.limewire.collection.IntervalSet
Returns the first element without modifying this IntervalSet.
getFirst() - Method in class org.limewire.collection.Tuple
Returns the first object.
getFirstPartition() - Method in class org.limewire.collection.ListPartitioner
 
getHigh() - Method in class org.limewire.collection.LongInterval
 
getHigh() - Method in class org.limewire.collection.Range
 
getIterator() - Method in class org.limewire.collection.StringTrie
Returns all values (entire Trie)
getKey() - Method in class org.limewire.collection.DoublyLinkedList.ListElement
returns the key stored in this element
getKey() - Method in class org.limewire.collection.KeyValue
Returns the key(key) in the key value pair
getKey() - Method in class org.limewire.collection.Pair
 
getKeyAnalyzer() - Method in class org.limewire.collection.PatriciaTrie
Returns the KeyAnalyzer that constructed the trie.
getKeyAt(int) - Method in class org.limewire.collection.FixedSizeArrayHashMap
 
getKeyAt(int) - Method in interface org.limewire.collection.RandomAccessMap
Retrieves the key at index i.
getLast() - Method in class org.limewire.collection.IntervalSet
Returns the last element without modifying this IntervalSet.
getLastPartition() - Method in class org.limewire.collection.ListPartitioner
 
getLength() - Method in class org.limewire.collection.ByteArrayCache
Returns the length of the byte[]'s this creates.
getLow() - Method in class org.limewire.collection.LongInterval
 
getLow() - Method in class org.limewire.collection.Range
 
getMax() - Method in class org.limewire.collection.BitNumbers
Returns the maximum number that can be stored in this BitNumbers.
getMax() - Method in class org.limewire.collection.BucketQueue
 
getMax() - Method in class org.limewire.collection.FixedsizePriorityQueue
Returns the highest priority element of this.
getMaxSize() - Method in class org.limewire.collection.ByteArrayCache
Returns the maximum number of byte[]'s this will create.
getMin() - Method in class org.limewire.collection.FixedsizePriorityQueue
Returns the lowest priority element of this.
getNeededIntervals(long) - Method in class org.limewire.collection.IntervalSet
 
getNumberOfIntervals() - Method in class org.limewire.collection.IntervalSet
 
getOverlapIntervals(Range) - Method in class org.limewire.collection.IntervalSet
 
getPartition(int) - Method in class org.limewire.collection.ListPartitioner
 
getPrefixedBy(K) - Method in class org.limewire.collection.PatriciaTrie
Returns a view of this Trie of all elements that are prefixed by the given key.
getPrefixedBy(K, int) - Method in class org.limewire.collection.PatriciaTrie
Returns a view of this Trie of all elements that are prefixed by the length of the key.
getPrefixedBy(K, int, int) - Method in class org.limewire.collection.PatriciaTrie
Returns a view of this Trie of all elements that are prefixed by the key, starting at the given offset and for the given length.
getPrefixedBy(String) - Method in class org.limewire.collection.StringTrie
Returns an iterator (of V) of the values mapped by keys in this that start with the given prefix, in any order.
getPrefixedBy(String, int, int) - Method in class org.limewire.collection.StringTrie
Same as getPrefixedBy(prefix.substring(startOffset, stopOffset).
getPrefixedBy(String) - Method in class org.limewire.collection.StringTrieSet
Return all the Strings that can be prefixed by this String.
getPrefixedBy(K) - Method in interface org.limewire.collection.Trie
Returns a view of this Trie of all elements that are prefixed by the given key.
getPrefixedBy(K, int) - Method in interface org.limewire.collection.Trie
Returns a view of this Trie of all elements that are prefixed by the length of the key.
getPrefixedBy(K, int, int) - Method in interface org.limewire.collection.Trie
Returns a view of this Trie of all elements that are prefixed by the key, starting at the given offset and for the given length.
getPrefixedByBits(K, int) - Method in class org.limewire.collection.PatriciaTrie
Returns a view of this Trie of all elements that are prefixed by the number of bits in the given Key.
getPrefixedByBits(K, int) - Method in interface org.limewire.collection.Trie
Returns a view of this Trie of all elements that are prefixed by the number of bits in the given Key.
getQuick() - Method in class org.limewire.collection.ByteArrayCache
Attempts to retrieve a new byte[].
getRunnable() - Method in class org.limewire.collection.Periodic
 
getSecond() - Method in class org.limewire.collection.Tuple
Returns the second object.
getSize() - Method in class org.limewire.collection.Buffer
Returns the number of elements in this.
getSize() - Method in class org.limewire.collection.IntBuffer
Returns the number of elements in this.
getSize() - Method in class org.limewire.collection.IntervalSet
 
getUnitsInUse() - Method in class org.limewire.collection.BitSet
Returns the number of units in use.
getUsedNodes() - Method in class org.limewire.collection.TreeStorage
 
getValue() - Method in class org.limewire.collection.KeyValue
Returns the value corresponding to this entry.
getValueAt(int) - Method in class org.limewire.collection.FixedSizeArrayHashMap
 
getValueAt(int) - Method in interface org.limewire.collection.RandomAccessMap
Retrieves the value at index i.
getVerifiedNodes() - Method in class org.limewire.collection.TreeStorage
 

H

hashCode() - Method in class org.limewire.collection.BitNumbers
 
hashCode() - Method in class org.limewire.collection.BitSet
Returns a hash code value for this bit set.
hashCode() - Method in class org.limewire.collection.FixedSizeSortedSet
 
hashCode() - Method in class org.limewire.collection.KeyValue
Returns the hash code value for this map entry.
hashCode() - Method in class org.limewire.collection.Range
 
hasNext() - Method in class org.limewire.collection.DualIterator
Determines if there are any elements left in either iterator.
hasNext() - Method in class org.limewire.collection.EmptyIterator
 
hasNext() - Method in class org.limewire.collection.IntSet.IntSetIterator
 
hasNext() - Method in class org.limewire.collection.MultiIterator
 
hasNext() - Method in class org.limewire.collection.StringTrie.NodeIterator
 
headMap(K) - Method in class org.limewire.collection.PatriciaTrie
 
higherEntry(K) - Method in class org.limewire.collection.PatriciaTrie
Returns an entry strictly higher than the given key, or null if no such entry exists.

I

IdentityHashSet<E> - Class in org.limewire.collection
A set equivalent of IdentityHashMap.
IdentityHashSet() - Constructor for class org.limewire.collection.IdentityHashSet
Constructs a new, empty set; the backing IdentityHashMap instance has default initial capacity (16) and load factor (0.75).
IdentityHashSet(Collection<? extends E>) - Constructor for class org.limewire.collection.IdentityHashSet
Constructs a new set containing the elements in the specified collection.
IdentityHashSet(int) - Constructor for class org.limewire.collection.IdentityHashSet
Constructs a new, empty set; the backing IdentityHashMap instance has the specified initial capacity and default load factor, which is 0.75.
indexOf(Object) - Method in class org.limewire.collection.TreeList
Searches for the index of an object in the list.
initialize() - Method in class org.limewire.collection.Buffer
Initializes the internal buf if necessary.
insert(E, int) - Method in class org.limewire.collection.BucketQueue
 
insert(E) - Method in class org.limewire.collection.FixedsizePriorityQueue
Adds x to this, possibly removing some lower priority entry if necessary to ensure this.size()<=this.capacity().
insert(E) - Method in class org.limewire.collection.FixedSizeSortedList
 
IntBuffer - Class in org.limewire.collection
Provides a fixed-size double-ended queue, a circular buffer.
IntBuffer(int) - Constructor for class org.limewire.collection.IntBuffer
 
IntBuffer(IntBuffer) - Constructor for class org.limewire.collection.IntBuffer
"Copy constructor": constructs a new shallow copy of other.
intCompareTo(Integer, Integer) - Static method in class org.limewire.collection.Comparators
Compares two Integer objects numerically.
integerComparator() - Static method in class org.limewire.collection.Comparators
Instance assessor for the Comparator for Integers.
intersects(BitSet) - Method in class org.limewire.collection.BitSet
Returns true if the specified BitSet has any bits set to true that are also set to true in this BitSet.
IntervalSet - Class in org.limewire.collection
Provides an interval of ranges (a "range" version of IntSet).
IntervalSet() - Constructor for class org.limewire.collection.IntervalSet
 
IntervalSet.ByteIntervals - Class in org.limewire.collection
Allows you to keep int and long intervals in the same location.
IntHashMap<V> - Class in org.limewire.collection
A hash map that uses primitive ints for the key rather than objects.
IntHashMap() - Constructor for class org.limewire.collection.IntHashMap
Constructs a new, empty hashtable with a default capacity and load factor, which is 20 and 0.75 respectively.
IntHashMap(int) - Constructor for class org.limewire.collection.IntHashMap
Constructs a new, empty hashtable with the specified initial capacity and default load factor, which is 0.75.
IntHashMap(int, float) - Constructor for class org.limewire.collection.IntHashMap
Constructs a new, empty hashtable with the specified initial capacity and the specified load factor.
IntHashMap(IntHashMap<? extends V>) - Constructor for class org.limewire.collection.IntHashMap
Copy constructor
IntPair - Class in org.limewire.collection
Provides the storage of two integers.
IntPair(int, int) - Constructor for class org.limewire.collection.IntPair
 
ints - Variable in class org.limewire.collection.IntervalSet.ByteIntervals
 
IntSet - Class in org.limewire.collection
Represents a set of distinct integers.
IntSet() - Constructor for class org.limewire.collection.IntSet
 
IntSet(int) - Constructor for class org.limewire.collection.IntSet
 
IntSet.IntSetIterator - Class in org.limewire.collection
Yields a sequence of int's (not Object's) in order, without removal support.
inverseDoubleComparator() - Static method in class org.limewire.collection.Comparators
 
inverseIntegerComparator() - Static method in class org.limewire.collection.Comparators
 
inverseLongComparator() - Static method in class org.limewire.collection.Comparators
Instance assessor for the inverse Comparator for Longs.
invert(long) - Method in class org.limewire.collection.IntervalSet
Creates an IntervalSet that is the negative to this IntervalSet.
isBitSet(CharSequence, int, int) - Method in class org.limewire.collection.CharSequenceKeyAnalyzer
 
isBitSet(K, int, int) - Method in interface org.limewire.collection.PatriciaTrie.KeyAnalyzer
Returns whether or not a bit is set
isBufferAvailable() - Method in class org.limewire.collection.ByteArrayCache
Determines if there's space in the cache for another byte[].
isCancelled() - Method in interface org.limewire.collection.Cancellable
 
isEmpty() - Method in class org.limewire.collection.BitNumbers
Returns true if no set bits exist.
isEmpty() - Method in class org.limewire.collection.BitSet
Returns true if this BitSet contains no bits that are set to true.
isEmpty() - Method in class org.limewire.colle