Class PrimitiveTypeProperties<P, A extends ArrayDataAccess<A>>
java.lang.Object
net.imglib2.blocks.PrimitiveTypeProperties<P,A>
- Type Parameters:
P- a primitive array type, e.g.,byte[].A- the correspondingArrayDataAccesstype.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final IntFunction<P> private static final EnumMap<PrimitiveType, PrimitiveTypeProperties<?, ?>> (package private) final ToIntFunction<P> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrimitiveTypeProperties(Class<P> primitiveArrayClass, IntFunction<P> createPrimitiveArray, ToIntFunction<P> primitiveArrayLength, Function<P, A> wrapAsAccess) -
Method Summary
Modifier and TypeMethodDescription(package private) Pallocate(int length) Allocate a primitive array (typeP) withlengthelements.(package private) static PrimitiveTypeProperties<?, ?> get(PrimitiveType primitiveType) (package private) intGet the length of a primitive array (typeP).(package private) AWrap a primitive arraydatainto a correspondingArrayDataAccess.
-
Field Details
-
primitiveArrayClass
-
createPrimitiveArray
-
primitiveArrayLength
-
wrapAsAccess
-
creators
-
-
Constructor Details
-
PrimitiveTypeProperties
private PrimitiveTypeProperties(Class<P> primitiveArrayClass, IntFunction<P> createPrimitiveArray, ToIntFunction<P> primitiveArrayLength, Function<P, A> wrapAsAccess)
-
-
Method Details
-
get
-
wrap
-
allocate
Allocate a primitive array (typeP) withlengthelements. -
length
Get the length of a primitive array (typeP).
-