private static void putValue(VertexBuffer.Format format, Buffer buf1, Buffer buf2, int index) {
        switch (format) {
            case Byte:
            case Half:
            case UnsignedByte:
                byte b = ((ByteBuffer) buf2).get(index);
                ((ByteBuffer) buf1).put(b);
                break;
            case Short:
            case UnsignedShort:
                short s = ((ShortBuffer) buf2).get(index);
                ((ShortBuffer) buf1).put(s);
                break;

            case Int:
            case UnsignedInt:
                int i = ((IntBuffer) buf2).get(index);
                ((IntBuffer) buf1).put(i);
                break;
            case Float:
                float f = ((FloatBuffer) buf2).get(index);
                ((FloatBuffer) buf1).put(f);
                break;
            case Double:
                double d = ((DoubleBuffer) buf2).get(index);
                ((DoubleBuffer) buf1).put(d);
                break;
            default:
                throw new UnsupportedOperationException("Unrecognized buffer format: " + format);
        }
    }
A private constructor to inhibit instantiation of this class.
jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java