fulmine.util.reference
Interface IObjectBuilder<KEY,TYPE>

Type Parameters:
KEY - the type of the key representing the object to build
TYPE - the type of the object this builds

public interface IObjectBuilder<KEY,TYPE>

Builds objects identified by a key.

Author:
Ramon Servadei

Method Summary
 TYPE create(KEY key)
          Create an object represented by the key.
 

Method Detail

create

TYPE create(KEY key)
Create an object represented by the key. Multiple calls to this method with the same key (as defined by Object.equals(Object) method) may return object instances that are identical as defined by Object.equals(Object).

Parameters:
key - the key representing the object to create
Returns:
the object for the key


Copyright © 2007-2009. All Rights Reserved.