Class OutOfBoundsConstantValue<T>

Type Parameters:
T -
All Implemented Interfaces:
EuclideanSpace, Localizable, Bounded, OutOfBounds<T>, Positionable, RandomAccess<T>, RealLocalizable, Sampler<T>, Typed<T>

public class OutOfBoundsConstantValue<T> extends AbstractOutOfBoundsValue<T>
  • Field Details

    • value

      protected final T value
  • Constructor Details

  • Method Details

    • get

      public final T get()
      Description copied from interface: Sampler
      Access the actual T instance providing access to a pixel, sub-pixel or integral region value the Sampler points at.
    • copy

      public final OutOfBoundsConstantValue<T> copy()
      Returns:
      - A new Sampler in the same state accessing the same values. It does NOT copy T, just the state of the Sampler. 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 an ArrayCursor for example)
    • copyIfType

      static <T> T copyIfType(T t)