Package org.jf.dexlib2.dexbacked.util
Class FixedSizeSet<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractSet<T>
org.jf.dexlib2.dexbacked.util.FixedSizeSet<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>
This provides a wrapper around AbstractSet to allow easy implementation when backed by a list that can be randomly
accessed.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
FixedSizeSet
public FixedSizeSet()
-
-
Method Details
-
iterator
-
readItem
Reads the item atindex- Parameters:
index- The index of the item. This is guaranteed to be in [0, size)- Returns:
- The item at the given index
-