T
- the NativeLongAccessType
this is attached toA
- the LongAccess
family (ByteLongAccess
,
DoubleLongAccess
, and so on)public final class NativeLongAccessTypeFactory<T extends NativeLongAccessType<T>,A> extends Object
NativeLongAccessTypeFactory
is used to
create
a linked type T
for a matching NativeLongAccessImg
.
It also provides
information about the primitive
java type that backs the type T
.
NativeLongAccessTypeFactory
binds a {code PrimitiveType} enum
constant to a Access
interface (ByteAccess
,
DoubleAccess
, and so on). Instances can only be constructed via
static methods BYTE(Function)
, DOUBLE(Function)
, etc. to
prevent non-matching combinations of Access
interface and
PrimitiveType
constant.
public PrimitiveType getPrimitiveType()
NativeType T
.T
public T createLinkedType(NativeLongAccessImg<T,? extends A> img)
T
instance which is linked to img
. This
means that the instance will ask img
for the Access
that
stores the pixel data.img
- a matching NativeLongAccessImg
T
that is linked to on img
.public static <T extends NativeLongAccessType<T>,A extends ByteLongAccess> NativeLongAccessTypeFactory<T,A> BYTE(Function<NativeLongAccessImg<T,? extends A>,T> createLinkedType)
public static <T extends NativeLongAccessType<T>,A extends CharLongAccess> NativeLongAccessTypeFactory<T,A> CHAR(Function<NativeLongAccessImg<T,? extends A>,T> createLinkedType)
public static <T extends NativeLongAccessType<T>,A extends ShortLongAccess> NativeLongAccessTypeFactory<T,A> SHORT(Function<NativeLongAccessImg<T,? extends A>,T> createLinkedType)
public static <T extends NativeLongAccessType<T>,A extends IntLongAccess> NativeLongAccessTypeFactory<T,A> INT(Function<NativeLongAccessImg<T,? extends A>,T> createLinkedType)
public static <T extends NativeLongAccessType<T>,A extends LongLongAccess> NativeLongAccessTypeFactory<T,A> LONG(Function<NativeLongAccessImg<T,? extends A>,T> createLinkedType)
public static <T extends NativeLongAccessType<T>,A extends FloatLongAccess> NativeLongAccessTypeFactory<T,A> FLOAT(Function<NativeLongAccessImg<T,? extends A>,T> createLinkedType)
public static <T extends NativeLongAccessType<T>,A extends DoubleLongAccess> NativeLongAccessTypeFactory<T,A> DOUBLE(Function<NativeLongAccessImg<T,? extends A>,T> createLinkedType)
Copyright © 2015–2022 ImgLib2. All rights reserved.