Class FunctionRandomAccessible.FunctionRandomAccess

    • Field Detail

      • t

        private final T t
      • function

        private final java.util.function.BiConsumer<Localizable,​? super T> function
    • Constructor Detail

      • FunctionRandomAccess

        public FunctionRandomAccess()
    • Method Detail

      • get

        public 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.
        Specified by:
        get in interface Sampler<T>
      • getType

        public T getType()
        Description copied from interface: Typed
        Get an instance of T.

        It should not be assumed that the returned T instance is an independent copy. In particular, repeated calls to getType() may return the same instance.

        Specified by:
        getType in interface Sampler<T>
        Specified by:
        getType in interface Typed<T>
        Returns:
        an instance of T