Package 

Class MemoizeKt

  • All Implemented Interfaces:

    
    public final class MemoizeKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <R extends Any> Function1<Integer, R> memoizeFixed(Function1<Integer, R> $self, Integer size) Memoize function using a fixed-sized cache.
      final static <R extends Any> Function2<Integer, Integer, R> memoizeFixed(Function2<Integer, Integer, R> $self, Integer size1, Integer size2) Memoize function using a fixed-sized cache.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • memoizeFixed

         final static <R extends Any> Function1<Integer, R> memoizeFixed(Function1<Integer, R> $self, Integer size)

        Memoize function using a fixed-sized cache.

        Parameters:
        size - Fixed size of the cache, allowing for parameter values between [0, size)
      • memoizeFixed

         final static <R extends Any> Function2<Integer, Integer, R> memoizeFixed(Function2<Integer, Integer, R> $self, Integer size1, Integer size2)

        Memoize function using a fixed-sized cache.

        Parameters:
        size1 - Fixed size of the cache for the first parameter, allowing for values between [0, size1)
        size2 - Fixed size of the cache for the second parameter, allowing for values between [0, size2)