org.inria.ns.reflex.util
Interface EntryBuilder

All Known Subinterfaces:
EntryFactory, EntryMap
All Known Implementing Classes:
DeferredEntryMap, EntryFactory.Impl, EntryMap.Impl, NamedItemBuilder

public interface EntryBuilder

An entry builder can create a map entry.

It is preferrable to use a builder instead of creating directly a map entry for allowing entries to implement other interfaces.

Author:
Philippe Poulard

Method Summary
 Map.Entry newEntry(Object key, Object value)
          Create a new entry of the rigth class that has the given key and the given value.
 

Method Detail

newEntry

Map.Entry newEntry(Object key,
                   Object value)
Create a new entry of the rigth class that has the given key and the given value.

Parameters:
key - The key of the entry.
value - The value of the entry.
Returns:
The entry.