All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.parzivail.util.data.NamedBufferUtil Maven / Gradle / Ivy

There is a newer version: 0.0.114+1.20.2
Show newest version
package com.parzivail.util.data;

import java.util.HashMap;

public class NamedBufferUtil
{
	private static final HashMap floatBuffers = new HashMap<>();
	private static final HashMap intBuffers = new HashMap<>();

	public static float[] getF(String name, float... init)
	{
		if (!floatBuffers.containsKey(name))
			floatBuffers.put(name, init);
		return floatBuffers.get(name);
	}

	public static int[] getI(String name, int... init)
	{
		if (!intBuffers.containsKey(name))
			intBuffers.put(name, init);
		return intBuffers.get(name);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy