Class Memories

java.lang.Object
io.mokamint.node.Memories

public final class Memories extends Object
A provider of memories of things.
  • Method Details

    • of

      public static <T> Memory<T> of(int maximalSize)
      Yields a memory with the given maximal size, initially empty.
      Type Parameters:
      T - the type of the things that will be contained in the memory
      Parameters:
      maximalSize - the maximal size (maximal number of stored elements)
      Returns:
      the memory