org.apache.jena.riot.system
Interface MapWithScope.Allocator<A,B,S>

Enclosing class:
MapWithScope<A,B,S>

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 Summary
 B alloc(S scope, A item)
          Allocate - return the same B for a given A.
 B create()
          Create a fresh, unique (to within policy) B
 void reset()
           
 

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()


Licenced under the Apache License, Version 2.0