public final class LargeMemoryUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
capAtMaxInt(long length)
Returns a min(Integer.MAX_VALUE, length).
|
static int |
checkedCastToInt(long length)
Casts length to an int, but raises an exception the value is outside
the range of an int.
|
Copyright © 2023 The Apache Software Foundation. All rights reserved.