Package net.imglib2.blocks
Interface TempArray<T>
-
- Type Parameters:
T- a primitive array type
- All Known Implementing Classes:
TempArrayImpl
public interface TempArray<T>Provides a temporary array of typeT.get(int)returns an array of typeTwith at least the specified length. Ifgetis called multiple times, it will either return a previously returned array if it has at least requested length, or allocate a new array, if the requested length exceeds the previously allocated length.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T> TempArray<T>forPrimitiveType(PrimitiveType primitiveType)Tget(int minSize)TempArray<T>newInstance()
-
-
-
Method Detail
-
get
T get(int minSize)
-
forPrimitiveType
static <T> TempArray<T> forPrimitiveType(PrimitiveType primitiveType)
-
-