Interface ToIntFunctor<T extends Any>

Type Parameters:
T - the chunk's attribute
All Superinterfaces:
AutoCloseable, 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 Any> extends SafeCloseable
A function that transforms a Chunk to an IntChunk.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    IntChunk<? extends T>
    apply(Chunk<? extends T> input)
    Apply this function to the input chunk, returning an output chunk.
    default void
     
    static <T extends Any>
    ToIntFunctor.Identity<T>
     
  • 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 ToIntFunctor.
      Parameters:
      input - the chunk to transform
      Returns:
      the result IntChunk
    • close

      default void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface SafeCloseable
    • makeIdentity

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