Interface PersistenceSizedArrayLengthController
- All Known Implementing Classes:
PersistenceSizedArrayLengthController.Fitting
,PersistenceSizedArrayLengthController.Limited
,PersistenceSizedArrayLengthController.Unrestricted
public interface PersistenceSizedArrayLengthController
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PersistenceSizedArrayLengthController.Fitting
static class
PersistenceSizedArrayLengthController.Limited
static class
PersistenceSizedArrayLengthController.Unrestricted
-
Method Summary
Modifier and Type Method Description int
controlArrayLength(int specifiedCapacity, int actualElementCount)
static PersistenceSizedArrayLengthController.Fitting
Fitting()
Recommended for communication (prevents array bombs).static PersistenceSizedArrayLengthController.Limited
Limited(int maximumCapacity)
static PersistenceSizedArrayLengthController.Unrestricted
Unrestricted()
Recommended for storing data (does not change program behavior).
-
Method Details
-
controlArrayLength
int controlArrayLength(int specifiedCapacity, int actualElementCount) -
Unrestricted
Recommended for storing data (does not change program behavior). -
Fitting
Recommended for communication (prevents array bombs). -
Limited
-