Code example for LinkedHashMap

Methods: put

0
    public ReadableObjectId findObjectId(Object id,
            ObjectIdGenerator<?> generator)
    { 
        final ObjectIdGenerator.IdKey key = generator.key(id);
        if (_objectIds == null) {
            _objectIds = new LinkedHashMap<ObjectIdGenerator.IdKey, ReadableObjectId>();
        } else { 
            ReadableObjectId entry = _objectIds.get(key);
            if (entry != null) {
                return entry;
            } 
        } 
        ReadableObjectId entry = new ReadableObjectId(id);
        _objectIds.put(key, entry);
        return entry;
    } 
 
    @Override 
    public ObjectIdGenerator<?> objectIdGeneratorInstance(Annotated annotated,
            ObjectIdInfo objectIdInfo)
        throws JsonMappingException