Interface ToIntFunctor<T extends Attributes.Any>

Type Parameters:
T - the chunk's attribute
All Superinterfaces:
AutoCloseable, Context, SafeCloseable
All Known Subinterfaces:
ToIntegerCast<T>
All Known Implementing Classes:
ByteToIntegerCast, ByteToIntegerCastWithOffset, CharToIntegerCast, CharToIntegerCastWithOffset, IntToIntegerCast, IntToIntegerCastWithOffset, LongToIntegerCast, LongToIntegerCastWithOffset, ShortToIntegerCast, ShortToIntegerCastWithOffset, ToIntFunctor.Identity

public interface ToIntFunctor<T extends Attributes.Any> extends Context
A function that transforms a Chunk to an IntChunk.
  • Method Details

    • apply

      IntChunk<? extends T> apply(Chunk<? extends T> input)
      Apply this function to the input chunk, returning an output chunk. The result is owned by this Context.
      Parameters:
      input - the chunk to transform
      Returns:
      the result IntChunk
    • makeIdentity

      static <T extends Attributes.Any> ToIntFunctor.Identity<T> makeIdentity()