Class ListSpinnerBigIntegerList
- All Implemented Interfaces:
Iterable<BigInteger>, Collection<BigInteger>, List<BigInteger>
Items for Spinner providing an BigInteger range without actually creating a list with all values.
Beware: because this is still based on the list inteface, the maximum size of the list is limited by the type used for the index in the list: an integer (Integer.MAX_VALUE).
So the difference between the from and to values (to-from) cannot be larger than Integer.MAX_VALUE.
What this class allows is that this range can be anywhere in the BigInteger's range.
-
Field Summary
FieldsFields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionListSpinnerBigIntegerList(BigInteger from, BigInteger to) ListSpinnerBigIntegerList(BigInteger from, BigInteger to, BigInteger step) -
Method Summary
Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
from
-
size
private int size -
step
-
-
Constructor Details
-
ListSpinnerBigIntegerList
public ListSpinnerBigIntegerList() -
ListSpinnerBigIntegerList
- Parameters:
from-to-
-
ListSpinnerBigIntegerList
- Parameters:
from-to-step-
-
-
Method Details
-
get
- Specified by:
getin interfaceList<BigInteger>- Specified by:
getin classAbstractList<BigInteger>
-
indexOf
- Specified by:
indexOfin interfaceList<BigInteger>- Overrides:
indexOfin classAbstractList<BigInteger>
-
size
public int size()- Specified by:
sizein interfaceCollection<BigInteger>- Specified by:
sizein interfaceList<BigInteger>- Specified by:
sizein classAbstractCollection<BigInteger>
-