Interface MapWithScope.Allocator<A,​B,​S>

  • Enclosing class:

    public static interface MapWithScope.Allocator<A,​B,​S>
    Allocate a B, given some A. Only called once per instance of B if the ScopePolicy map is non-null.
    • Method Detail

      • alloc

        B alloc​(S scope,
                A item)
        Allocate - return the same B for a given A. "same" means .equals, not ==
      • create

        B create()
        Create a fresh, unique (to within policy) B
      • reset

        void reset()