/* * This file is part of l2jserver . * * l2jserver is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * l2jserver is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with l2jserver. If not, see . */ package com.l2jserver.model.id.provider; import com.l2jserver.model.id.ID; /** * ID objects should never be directly instantiated and an provider * implementation must be used to create and generate them. *

* * The ID provider is used to create instances of IDs. It will automatically * make sure the ID is free before allocating it. *

* The provider will also make sure only a single instance for each raw ID * exits, that is for any given ID instance for raw value 1 only a single * object will be created and following calls will always return the same * object. * * @author Rogiel */ public interface IDProvider> { /** * Creates the ID object for an EXISTING ID. * * @param id * @return */ T resolveID(I id); }