// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.builtin.hytalegenerator;

import java.util.HashMap;
import java.util.Map;

public class Indexer
{
    private Map<Object, Integer> ids;
    
    public Indexer() {
        this.ids = new HashMap<Object, Integer>();
    }
    
    public int getIdFor(final Object o) {
        return this.ids.computeIfAbsent(o, k -> this.ids.size());
    }
    
    public int size() {
        return this.ids.size();
    }
}
