Class Registry<T extends Identifiable>

java.lang.Object
net.orbyfied.j8.registry.Registry<T>
Type Parameters:
T - The type of registry item. Restricted to ? extends Identifiable
All Implemented Interfaces:
Iterable<T>, Identifiable, net.orbyfied.j8.util.functional.KeyProvider<Identifier>, net.orbyfied.j8.util.functional.ValueProvider<T>

public class Registry<T extends Identifiable> extends Object implements Identifiable, Iterable<T>, net.orbyfied.j8.util.functional.KeyProvider<Identifier>, net.orbyfied.j8.util.functional.ValueProvider<T>
Class for mapped and linear storage of uniquely identified items using an Identifier. Utilizes a HashMap and ArrayList for mapped and linear storage respectively. Every registry has it's own identifier as well. But most importantly, it allows for the addition of mapping and listing modules and services to add functionality.