Class TypeUtils.ConstantSampler<T>
java.lang.Object
net.imglib2.converter.readwrite.TypeUtils.ConstantSampler<T>
- Enclosing class:
TypeUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
t
-
-
Constructor Details
-
ConstantSampler
-
-
Method Details
-
get
-
getType
Description copied from interface:TypedGet an instance ofT.It should not be assumed that the returned
Tinstance is an independent copy. In particular, repeated calls togetType()may return the same instance. -
copy
- Specified by:
copyin interfaceSampler<T>- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for anArrayCursorfor example)
-