com.g2forge.alexandria.adt.map.implementations.MapMapBuilder Maven / Gradle / Ivy
package com.g2forge.alexandria.adt.map.implementations;
import java.util.Map;
import com.g2forge.alexandria.adt.map.IMapBuilder;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class MapMapBuilder, K, V> implements IMapBuilder {
protected final M map;
@Override
public IMapBuilder add(K key, V value) {
map.put(key, value);
return this;
}
@Override
public M get() {
return map;
}
}