Package net.hydromatic.morel.type
Class TupleType.IntStringCache
java.lang.Object
net.hydromatic.morel.type.TupleType.IntStringCache
- Enclosing class:
TupleType
Cache of the string representations of integers.
Ensures that we do not continually re-compute the strings, and provides lists of the first N integers (0-based or 1-based) as needed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
list
Marked volatile to ensure that the cache is not optimized away.
-
-
Constructor Details
-
IntStringCache
private IntStringCache()
-
-
Method Details
-
ensure
Returns a list of strings that is at leastminimumSizelong. -
subList
-